f080c1f09f22d21d78c8901a6ca33c77e75560d5
[policy/apex-pdp.git] / context / context-management / src / test / java / org / onap / policy / apex / context / impl / DummyContextAlbumImpl.java
1 /*-
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
8  * 
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  * 
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.
16  * 
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.apex.context.impl;
22
23 import java.util.Collection;
24 import java.util.Map;
25 import java.util.Set;
26
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;
34
35 /**
36  * Dummy album implementation class.
37  *
38  */
39 public class DummyContextAlbumImpl implements ContextAlbum {
40
41     /**
42      * {@inheritDoc}.
43      */
44     @Override
45     public void clear() {
46         throw new NotImplementedException("Not Implemeted on dummy class");
47     }
48
49     /**
50      * {@inheritDoc}.
51      */
52     @Override
53     public boolean containsKey(Object key) {
54         throw new NotImplementedException("Not Implemeted on dummy class");
55     }
56
57     /**
58      * {@inheritDoc}.
59      */
60     @Override
61     public boolean containsValue(Object value) {
62         throw new NotImplementedException("Not Implemeted on dummy class");
63     }
64
65     /**
66      * {@inheritDoc}.
67      */
68     @Override
69     public Set<Entry<String, Object>> entrySet() {
70         throw new NotImplementedException("Not Implemeted on dummy class");
71     }
72
73     /**
74      * {@inheritDoc}.
75      */
76     @Override
77     public Object get(Object key) {
78         throw new NotImplementedException("Not Implemeted on dummy class");
79     }
80
81     /**
82      * {@inheritDoc}.
83      */
84     @Override
85     public boolean isEmpty() {
86         throw new NotImplementedException("Not Implemeted on dummy class");
87     }
88
89     /**
90      * {@inheritDoc}.
91      */
92     @Override
93     public Set<String> keySet() {
94         throw new NotImplementedException("Not Implemeted on dummy class");
95     }
96
97     /**
98      * {@inheritDoc}.
99      */
100     @Override
101     public Object put(String key, Object value) {
102         throw new NotImplementedException("Not Implemeted on dummy class");
103     }
104
105     /**
106      * {@inheritDoc}.
107      */
108     @Override
109     public void putAll(Map<? extends String, ? extends Object> map) {
110         throw new NotImplementedException("Not Implemeted on dummy class");
111
112     }
113
114     /**
115      * {@inheritDoc}.
116      */
117     @Override
118     public Object remove(Object key) {
119         throw new NotImplementedException("Not Implemeted on dummy class");
120     }
121
122     /**
123      * {@inheritDoc}.
124      */
125     @Override
126     public int size() {
127         throw new NotImplementedException("Not Implemeted on dummy class");
128     }
129
130     /**
131      * {@inheritDoc}.
132      */
133     @Override
134     public Collection<Object> values() {
135         throw new NotImplementedException("Not Implemeted on dummy class");
136     }
137
138     /**
139      * {@inheritDoc}.
140      */
141     @Override
142     public AxArtifactKey getKey() {
143         throw new NotImplementedException("Not Implemeted on dummy class");
144     }
145
146     /**
147      * {@inheritDoc}.
148      */
149     @Override
150     public String getName() {
151         throw new NotImplementedException("Not Implemeted on dummy class");
152     }
153
154     /**
155      * {@inheritDoc}.
156      */
157     @Override
158     public AxContextAlbum getAlbumDefinition() {
159         throw new NotImplementedException("Not Implemeted on dummy class");
160     }
161
162     /**
163      * {@inheritDoc}.
164      */
165     @Override
166     public SchemaHelper getSchemaHelper() {
167         throw new NotImplementedException("Not Implemeted on dummy class");
168     }
169
170     /**
171      * {@inheritDoc}.
172      */
173     @Override
174     public void lockForReading(String key) throws ContextException {
175         throw new NotImplementedException("Not Implemeted on dummy class");
176
177     }
178
179     /**
180      * {@inheritDoc}.
181      */
182     @Override
183     public void lockForWriting(String key) throws ContextException {
184         throw new NotImplementedException("Not Implemeted on dummy class");
185
186     }
187
188     /**
189      * {@inheritDoc}.
190      */
191     @Override
192     public void unlockForReading(String key) throws ContextException {
193         throw new NotImplementedException("Not Implemeted on dummy class");
194
195     }
196
197     /**
198      * {@inheritDoc}.
199      */
200     @Override
201     public void unlockForWriting(String key) throws ContextException {
202         throw new NotImplementedException("Not Implemeted on dummy class");
203
204     }
205
206     /**
207      * {@inheritDoc}.
208      */
209     @Override
210     public AxConcept[] getUserArtifactStack() {
211         throw new NotImplementedException("Not Implemeted on dummy class");
212     }
213
214     /**
215      * {@inheritDoc}.
216      */
217     @Override
218     public void setUserArtifactStack(AxConcept[] userArtifactStack) {
219         throw new NotImplementedException("Not Implemeted on dummy class");
220
221     }
222
223     /**
224      * {@inheritDoc}.
225      */
226     @Override
227     public void flush() throws ContextException {
228         throw new NotImplementedException("Not Implemeted on dummy class");
229
230     }
231
232 }