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.core.engine.executor.context;
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 context album for testing.
38 public class DummyContextAlbum implements ContextAlbum {
39 private final AxArtifactKey key;
45 public DummyContextAlbum(AxArtifactKey key) {
53 * @see java.util.Map#clear()
57 throw new NotImplementedException("Not implemented on dummy class");
63 * @see java.util.Map#containsKey(java.lang.Object)
66 public boolean containsKey(Object key) {
67 throw new NotImplementedException("Not implemented on dummy class");
73 * @see java.util.Map#containsValue(java.lang.Object)
76 public boolean containsValue(Object value) {
77 throw new NotImplementedException("Not implemented on dummy class");
83 * @see java.util.Map#entrySet()
86 public Set<Entry<String, Object>> entrySet() {
87 throw new NotImplementedException("Not implemented on dummy class");
93 * @see java.util.Map#get(java.lang.Object)
96 public Object get(Object key) {
97 throw new NotImplementedException("Not implemented on dummy class");
103 * @see java.util.Map#isEmpty()
106 public boolean isEmpty() {
107 throw new NotImplementedException("Not implemented on dummy class");
113 * @see java.util.Map#keySet()
116 public Set<String> keySet() {
117 throw new NotImplementedException("Not implemented on dummy class");
123 * @see java.util.Map#put(java.lang.Object, java.lang.Object)
126 public Object put(String key, Object value) {
127 throw new NotImplementedException("Not implemented on dummy class");
133 * @see java.util.Map#putAll(java.util.Map)
136 public void putAll(Map<? extends String, ? extends Object> map) {
137 throw new NotImplementedException("Not implemented on dummy class");
143 * @see java.util.Map#remove(java.lang.Object)
146 public Object remove(Object key) {
147 throw new NotImplementedException("Not implemented on dummy class");
153 * @see java.util.Map#size()
157 throw new NotImplementedException("Not implemented on dummy class");
163 * @see java.util.Map#values()
166 public Collection<Object> values() {
167 throw new NotImplementedException("Not implemented on dummy class");
173 * @see org.onap.policy.apex.context.ContextAlbum#getKey()
176 public AxArtifactKey getKey() {
183 * @see org.onap.policy.apex.context.ContextAlbum#getName()
186 public String getName() {
187 throw new NotImplementedException("Not implemented on dummy class");
193 * @see org.onap.policy.apex.context.ContextAlbum#getAlbumDefinition()
196 public AxContextAlbum getAlbumDefinition() {
197 throw new NotImplementedException("Not implemented on dummy class");
203 * @see org.onap.policy.apex.context.ContextAlbum#getSchemaHelper()
206 public SchemaHelper getSchemaHelper() {
207 throw new NotImplementedException("Not implemented on dummy class");
213 * @see org.onap.policy.apex.context.ContextAlbum#lockForReading(java.lang.String)
216 public void lockForReading(String key) throws ContextException {
217 throw new NotImplementedException("Not implemented on dummy class");
223 * @see org.onap.policy.apex.context.ContextAlbum#lockForWriting(java.lang.String)
226 public void lockForWriting(String key) throws ContextException {
227 throw new NotImplementedException("Not implemented on dummy class");
233 * @see org.onap.policy.apex.context.ContextAlbum#unlockForReading(java.lang.String)
236 public void unlockForReading(String key) throws ContextException {
237 throw new NotImplementedException("Not implemented on dummy class");
243 * @see org.onap.policy.apex.context.ContextAlbum#unlockForWriting(java.lang.String)
246 public void unlockForWriting(String key) throws ContextException {
247 throw new NotImplementedException("Not implemented on dummy class");
253 * @see org.onap.policy.apex.context.ContextAlbum#getUserArtifactStack()
256 public AxConcept[] getUserArtifactStack() {
257 throw new NotImplementedException("Not implemented on dummy class");
264 * org.onap.policy.apex.context.ContextAlbum#setUserArtifactStack(org.onap.policy.apex.model.basicmodel.concepts.
268 public void setUserArtifactStack(AxConcept[] userArtifactStack) {
275 * @see org.onap.policy.apex.context.ContextAlbum#flush()
278 public void flush() throws ContextException {
279 throw new NotImplementedException("Not implemented on dummy class");