2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2018 Ericsson. All rights reserved.
4 * ================================================================================
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 * SPDX-License-Identifier: Apache-2.0
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.apex.context.impl;
23 import java.util.Collection;
27 import org.apache.commons.lang3.NotImplementedException;
28 import org.onap.policy.apex.context.ContextAlbum;
29 import org.onap.policy.apex.context.ContextException;
30 import org.onap.policy.apex.context.SchemaHelper;
31 import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey;
32 import org.onap.policy.apex.model.basicmodel.concepts.AxConcept;
33 import org.onap.policy.apex.model.contextmodel.concepts.AxContextAlbum;
36 * Dummy album implementation class.
39 public class DummyContextAlbumImpl implements ContextAlbum {
44 * @see java.util.Map#clear()
48 throw new NotImplementedException("Not Implemeted on dummy class");
54 * @see java.util.Map#containsKey(java.lang.Object)
57 public boolean containsKey(Object key) {
58 throw new NotImplementedException("Not Implemeted on dummy class");
64 * @see java.util.Map#containsValue(java.lang.Object)
67 public boolean containsValue(Object value) {
68 throw new NotImplementedException("Not Implemeted on dummy class");
74 * @see java.util.Map#entrySet()
77 public Set<Entry<String, Object>> entrySet() {
78 throw new NotImplementedException("Not Implemeted on dummy class");
84 * @see java.util.Map#get(java.lang.Object)
87 public Object get(Object key) {
88 throw new NotImplementedException("Not Implemeted on dummy class");
94 * @see java.util.Map#isEmpty()
97 public boolean isEmpty() {
98 throw new NotImplementedException("Not Implemeted on dummy class");
104 * @see java.util.Map#keySet()
107 public Set<String> keySet() {
108 throw new NotImplementedException("Not Implemeted on dummy class");
114 * @see java.util.Map#put(java.lang.Object, java.lang.Object)
117 public Object put(String key, Object value) {
118 throw new NotImplementedException("Not Implemeted on dummy class");
124 * @see java.util.Map#putAll(java.util.Map)
127 public void putAll(Map<? extends String, ? extends Object> map) {
128 throw new NotImplementedException("Not Implemeted on dummy class");
135 * @see java.util.Map#remove(java.lang.Object)
138 public Object remove(Object key) {
139 throw new NotImplementedException("Not Implemeted on dummy class");
145 * @see java.util.Map#size()
149 throw new NotImplementedException("Not Implemeted on dummy class");
155 * @see java.util.Map#values()
158 public Collection<Object> values() {
159 throw new NotImplementedException("Not Implemeted on dummy class");
165 * @see org.onap.policy.apex.context.ContextAlbum#getKey()
168 public AxArtifactKey getKey() {
169 throw new NotImplementedException("Not Implemeted on dummy class");
175 * @see org.onap.policy.apex.context.ContextAlbum#getName()
178 public String getName() {
179 throw new NotImplementedException("Not Implemeted on dummy class");
185 * @see org.onap.policy.apex.context.ContextAlbum#getAlbumDefinition()
188 public AxContextAlbum getAlbumDefinition() {
189 throw new NotImplementedException("Not Implemeted on dummy class");
195 * @see org.onap.policy.apex.context.ContextAlbum#getSchemaHelper()
198 public SchemaHelper getSchemaHelper() {
199 throw new NotImplementedException("Not Implemeted on dummy class");
205 * @see org.onap.policy.apex.context.ContextAlbum#lockForReading(java.lang.String)
208 public void lockForReading(String key) throws ContextException {
209 throw new NotImplementedException("Not Implemeted on dummy class");
216 * @see org.onap.policy.apex.context.ContextAlbum#lockForWriting(java.lang.String)
219 public void lockForWriting(String key) throws ContextException {
220 throw new NotImplementedException("Not Implemeted on dummy class");
227 * @see org.onap.policy.apex.context.ContextAlbum#unlockForReading(java.lang.String)
230 public void unlockForReading(String key) throws ContextException {
231 throw new NotImplementedException("Not Implemeted on dummy class");
238 * @see org.onap.policy.apex.context.ContextAlbum#unlockForWriting(java.lang.String)
241 public void unlockForWriting(String key) throws ContextException {
242 throw new NotImplementedException("Not Implemeted on dummy class");
249 * @see org.onap.policy.apex.context.ContextAlbum#getUserArtifactStack()
252 public AxConcept[] getUserArtifactStack() {
253 throw new NotImplementedException("Not Implemeted on dummy class");
260 * org.onap.policy.apex.context.ContextAlbum#setUserArtifactStack(org.onap.policy.apex.model.basicmodel.concepts.
264 public void setUserArtifactStack(AxConcept[] userArtifactStack) {
265 throw new NotImplementedException("Not Implemeted on dummy class");
272 * @see org.onap.policy.apex.context.ContextAlbum#flush()
275 public void flush() throws ContextException {
276 throw new NotImplementedException("Not Implemeted on dummy class");