9109ec6947b53b000e1d5a6338d2bc4674ef74b6
[policy/apex-pdp.git] /
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      * (non-Javadoc)
43      * 
44      * @see java.util.Map#clear()
45      */
46     @Override
47     public void clear() {
48         throw new NotImplementedException("Not Implemeted on dummy class");
49     }
50
51     /*
52      * (non-Javadoc)
53      * 
54      * @see java.util.Map#containsKey(java.lang.Object)
55      */
56     @Override
57     public boolean containsKey(Object key) {
58         throw new NotImplementedException("Not Implemeted on dummy class");
59     }
60
61     /*
62      * (non-Javadoc)
63      * 
64      * @see java.util.Map#containsValue(java.lang.Object)
65      */
66     @Override
67     public boolean containsValue(Object value) {
68         throw new NotImplementedException("Not Implemeted on dummy class");
69     }
70
71     /*
72      * (non-Javadoc)
73      * 
74      * @see java.util.Map#entrySet()
75      */
76     @Override
77     public Set<Entry<String, Object>> entrySet() {
78         throw new NotImplementedException("Not Implemeted on dummy class");
79     }
80
81     /*
82      * (non-Javadoc)
83      * 
84      * @see java.util.Map#get(java.lang.Object)
85      */
86     @Override
87     public Object get(Object key) {
88         throw new NotImplementedException("Not Implemeted on dummy class");
89     }
90
91     /*
92      * (non-Javadoc)
93      * 
94      * @see java.util.Map#isEmpty()
95      */
96     @Override
97     public boolean isEmpty() {
98         throw new NotImplementedException("Not Implemeted on dummy class");
99     }
100
101     /*
102      * (non-Javadoc)
103      * 
104      * @see java.util.Map#keySet()
105      */
106     @Override
107     public Set<String> keySet() {
108         throw new NotImplementedException("Not Implemeted on dummy class");
109     }
110
111     /*
112      * (non-Javadoc)
113      * 
114      * @see java.util.Map#put(java.lang.Object, java.lang.Object)
115      */
116     @Override
117     public Object put(String key, Object value) {
118         throw new NotImplementedException("Not Implemeted on dummy class");
119     }
120
121     /*
122      * (non-Javadoc)
123      * 
124      * @see java.util.Map#putAll(java.util.Map)
125      */
126     @Override
127     public void putAll(Map<? extends String, ? extends Object> map) {
128         throw new NotImplementedException("Not Implemeted on dummy class");
129
130     }
131
132     /*
133      * (non-Javadoc)
134      * 
135      * @see java.util.Map#remove(java.lang.Object)
136      */
137     @Override
138     public Object remove(Object key) {
139         throw new NotImplementedException("Not Implemeted on dummy class");
140     }
141
142     /*
143      * (non-Javadoc)
144      * 
145      * @see java.util.Map#size()
146      */
147     @Override
148     public int size() {
149         throw new NotImplementedException("Not Implemeted on dummy class");
150     }
151
152     /*
153      * (non-Javadoc)
154      * 
155      * @see java.util.Map#values()
156      */
157     @Override
158     public Collection<Object> values() {
159         throw new NotImplementedException("Not Implemeted on dummy class");
160     }
161
162     /*
163      * (non-Javadoc)
164      * 
165      * @see org.onap.policy.apex.context.ContextAlbum#getKey()
166      */
167     @Override
168     public AxArtifactKey getKey() {
169         throw new NotImplementedException("Not Implemeted on dummy class");
170     }
171
172     /*
173      * (non-Javadoc)
174      * 
175      * @see org.onap.policy.apex.context.ContextAlbum#getName()
176      */
177     @Override
178     public String getName() {
179         throw new NotImplementedException("Not Implemeted on dummy class");
180     }
181
182     /*
183      * (non-Javadoc)
184      * 
185      * @see org.onap.policy.apex.context.ContextAlbum#getAlbumDefinition()
186      */
187     @Override
188     public AxContextAlbum getAlbumDefinition() {
189         throw new NotImplementedException("Not Implemeted on dummy class");
190     }
191
192     /*
193      * (non-Javadoc)
194      * 
195      * @see org.onap.policy.apex.context.ContextAlbum#getSchemaHelper()
196      */
197     @Override
198     public SchemaHelper getSchemaHelper() {
199         throw new NotImplementedException("Not Implemeted on dummy class");
200     }
201
202     /*
203      * (non-Javadoc)
204      * 
205      * @see org.onap.policy.apex.context.ContextAlbum#lockForReading(java.lang.String)
206      */
207     @Override
208     public void lockForReading(String key) throws ContextException {
209         throw new NotImplementedException("Not Implemeted on dummy class");
210
211     }
212
213     /*
214      * (non-Javadoc)
215      * 
216      * @see org.onap.policy.apex.context.ContextAlbum#lockForWriting(java.lang.String)
217      */
218     @Override
219     public void lockForWriting(String key) throws ContextException {
220         throw new NotImplementedException("Not Implemeted on dummy class");
221
222     }
223
224     /*
225      * (non-Javadoc)
226      * 
227      * @see org.onap.policy.apex.context.ContextAlbum#unlockForReading(java.lang.String)
228      */
229     @Override
230     public void unlockForReading(String key) throws ContextException {
231         throw new NotImplementedException("Not Implemeted on dummy class");
232
233     }
234
235     /*
236      * (non-Javadoc)
237      * 
238      * @see org.onap.policy.apex.context.ContextAlbum#unlockForWriting(java.lang.String)
239      */
240     @Override
241     public void unlockForWriting(String key) throws ContextException {
242         throw new NotImplementedException("Not Implemeted on dummy class");
243
244     }
245
246     /*
247      * (non-Javadoc)
248      * 
249      * @see org.onap.policy.apex.context.ContextAlbum#getUserArtifactStack()
250      */
251     @Override
252     public AxConcept[] getUserArtifactStack() {
253         throw new NotImplementedException("Not Implemeted on dummy class");
254     }
255
256     /*
257      * (non-Javadoc)
258      * 
259      * @see
260      * org.onap.policy.apex.context.ContextAlbum#setUserArtifactStack(org.onap.policy.apex.model.basicmodel.concepts.
261      * AxConcept[])
262      */
263     @Override
264     public void setUserArtifactStack(AxConcept[] userArtifactStack) {
265         throw new NotImplementedException("Not Implemeted on dummy class");
266
267     }
268
269     /*
270      * (non-Javadoc)
271      * 
272      * @see org.onap.policy.apex.context.ContextAlbum#flush()
273      */
274     @Override
275     public void flush() throws ContextException {
276         throw new NotImplementedException("Not Implemeted on dummy class");
277
278     }
279
280 }