Platform Hardening for DG - Part 8
[appc.git] / appc-directed-graph / dg-loader / provider / src / test / java / org / onap / sdnc / dg / loader / MockSvcLogicDblibStore.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Copyright (C) 2017 Amdocs
8  * =============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * 
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25 package org.onap.sdnc.dg.loader;
26
27 import java.util.Properties;
28 import org.onap.ccsdk.sli.core.sli.SvcLogicException;
29 import org.onap.ccsdk.sli.core.sli.SvcLogicGraph;
30 import org.onap.ccsdk.sli.core.sli.SvcLogicStore;
31
32 public class MockSvcLogicDblibStore implements SvcLogicStore {
33
34     @Override
35     public boolean hasGraph(String module, String rpc, String version, String mode) {
36         return true;
37     }
38
39     @Override
40     public SvcLogicGraph fetch(String module, String rpc, String version, String mode)
41             throws SvcLogicException {
42         SvcLogicGraph retVal = new SvcLogicGraph();
43         retVal.setMode("sync");
44         retVal.setModule("Appc");
45         retVal.setRpc("unitTestDG");
46         retVal.setVersion("4.0.0");
47         return retVal;
48
49     }
50
51     @Override
52     public void store(SvcLogicGraph graph) throws SvcLogicException {
53
54     }
55
56     @Override
57     public void init(Properties props) throws SvcLogicException {
58         // TODO Auto-generated method stub
59
60     }
61
62
63     public void registerNodeType(String nodeType) throws SvcLogicException {
64         // TODO Auto-generated method stub
65
66     }
67
68     public void unregisterNodeType(String nodeType) throws SvcLogicException {
69         // TODO Auto-generated method stub
70
71     }
72
73
74     public boolean isValidNodeType(String nodeType) throws SvcLogicException {
75         // TODO Auto-generated method stub
76         return true;
77     }
78
79     @Override
80     public void delete(String module, String rpc, String version, String mode)
81             throws SvcLogicException {
82         // TODO Auto-generated method stub
83     }
84
85     @Override
86     public void activate(SvcLogicGraph graph) throws SvcLogicException {
87         // TODO Auto-generated method stub
88     }
89     public void activate(String module, String rpc, String version, String mode)
90             throws SvcLogicException {
91         // TODO Auto-generated method stub
92     }
93 }