2 * ============LICENSE_START=======================================================
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 * ============LICENSE_END=========================================================
25 package org.onap.sdnc.dg.loader;
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;
32 public class MockSvcLogicDblibStore implements SvcLogicStore {
35 public boolean hasGraph(String module, String rpc, String version, String mode) {
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");
52 public void store(SvcLogicGraph graph) throws SvcLogicException {
57 public void init(Properties props) throws SvcLogicException {
58 // TODO Auto-generated method stub
63 public void registerNodeType(String nodeType) throws SvcLogicException {
64 // TODO Auto-generated method stub
69 public void unregisterNodeType(String nodeType) throws SvcLogicException {
70 // TODO Auto-generated method stub
75 public boolean isValidNodeType(String nodeType) throws SvcLogicException {
76 // TODO Auto-generated method stub
81 public void delete(String module, String rpc, String version, String mode)
82 throws SvcLogicException {
83 // TODO Auto-generated method stub
88 public void activate(SvcLogicGraph graph) throws SvcLogicException {
89 // TODO Auto-generated method stub