summaryrefslogtreecommitdiffstats
path: root/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp
diff options
context:
space:
mode:
authorPatrick Brady <pb071s@att.com>2017-12-13 11:19:06 -0800
committerPatrick Brady <pb071s@att.com>2017-12-13 11:19:17 -0800
commit781b1a6df324419c846c84ea983c18fc8362bfd3 (patch)
tree580008010dd50ca32db2ef6dc2e36628cf8c2b5b /appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp
parent161df8a94bb3b0c34ed16fd4fdba078bd1eeef9a (diff)
Third part of onap rename
This part of the commit changes the folder structure on all other folders of appc. Change-Id: I8acfa11cdfcdcd36be0e137245d1dd7324f1abd3 Signed-off-by: Patrick Brady <pb071s@att.com> Issue-ID: APPC-13
Diffstat (limited to 'appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp')
-rw-r--r--appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/Constants.java111
-rw-r--r--appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/LicenseDataAccessService.java50
-rw-r--r--appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/LicenseManager.java44
-rw-r--r--appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/exception/DataAccessException.java48
-rw-r--r--appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/objects/LicenseModel.java48
5 files changed, 0 insertions, 301 deletions
diff --git a/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/Constants.java b/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/Constants.java
deleted file mode 100644
index 64e54be97..000000000
--- a/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/Constants.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * ONAP : APPC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Copyright (C) 2017 Amdocs
- * =============================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- * ============LICENSE_END=========================================================
- */
-
-package org.onap.appc.licmgr;
-
-public class Constants {
-
- private Constants(){}
-
- public static final String CONFIGURE_PATH = "/restconf/config/opendaylight-inventory:nodes/node/";
- public static final String CONNECT_PATH = "/restconf/config/opendaylight-inventory:nodes/node/controller-config/yang-ext:mount/config:modules";
- public static final String CHECK_CONNECTION_PATH = "/restconf/operational/opendaylight-inventory:nodes/node/";
- public static final String DISCONNECT_PATH = "/restconf/config/opendaylight-inventory:nodes/node/controller-config/yang-ext:mount/config:modules/module/odl-sal-netconf-connector-cfg:sal-netconf-connector/";
-
- public static final String CONTROLLER_IP = "127.0.0.1";
- public static final int CONTROLLER_PORT = 8181;
- public static final String PROTOCOL = "http";
-
- public static final String VF_LICENSE = "VF_LICENSE";
-
- // tables and fields
- public static final String NETCONF_SCHEMA = "sdnctl";
- public static final String SDNCTL_SCHEMA = "sdnctl";
- public static final String DEVICE_AUTHENTICATION_TABLE_NAME = "DEVICE_AUTHENTICATION";
- public static final String CONFIGFILES_TABLE_NAME = "CONFIGFILES";
- public static final String DEVICE_INTERFACE_LOG_TABLE_NAME = "DEVICE_INTERFACE_LOG";
- public static final String FILE_CONTENT_TABLE_FIELD_NAME = "FILE_CONTENT";
- public static final String FILE_NAME_TABLE_FIELD_NAME = "FILE_NAME";
- public static final String USER_NAME_TABLE_FIELD_NAME = "USER_NAME";
- public static final String PASSWORD_TABLE_FIELD_NAME = "PASSWORD";
- public static final String PORT_NUMBER_TABLE_FIELD_NAME = "PORT_NUMBER";
- public static final String VNF_TYPE_TABLE_FIELD_NAME = "VNF_TYPE";
- public static final String SERVICE_INSTANCE_ID_FIELD_NAME = "SERVICE_INSTANCE_ID";
- public static final String REQUEST_ID_FIELD_NAME = "REQUEST_ID";
- public static final String CREATION_DATE_FIELD_NAME = "CREATION_DATE";
- public static final String LOG_FIELD_NAME = "LOG";
- public static final String SDC_ARTIFACTS = "ASDC_ARTIFACTS";
-
- // input fields names
- public static final String PAYLOAD = "payload";
-
- // constants fo DG
- public static final String VNF_TYPE_FIELD_NAME = "org.onap.appc.vftype";
- public static final String VNF_VERSION_FIELD_NAME = "org.onap.appc.vfversion";
- public static final String VNF_RESOURCE_VERSION_FIELD_NAME = "org.onap.appc.resource-version";
- public static final String TARGET_VNF_TYPE = "target-vnf-type";
- public static final String FILE_CONTENT_FIELD_NAME = "file-content";
- public static final String CONNECTION_DETAILS_FIELD_NAME = "connection-details";
- public static final String CONFIGURATION_FILE_FIELD_NAME = "configuration-file-name";
- public static final String VNF_HOST_IP_ADDRESS_FIELD_NAME = "vnf-host-ip-address";
- public static final String UPGRADE_VERSION = "upgrade-version";
- public static final String DG_ERROR_FIELD_NAME = "org.onap.appc.dg.error";
- public static final String RESOURCEKEY = "resourceKey";
- public static final String REQ_ID_FIELD_NAME = "org.onap.appc.reqid";
- public static final String API_VERSION_FIELD_NAME = "org.onap.appc.apiversion";
- public static final String MODEL_ENTITLMENT_POOL_UUID_NAME = "model.entitlement.pool.uuid";
- public static final String MODEL_LICENSE_KEY_UUID_NAME = "model.license.key.uuid";
- public static final String ENTITLMENT_POOL_UUID_NAME = "entitlement.pool.uuid";
- public static final String LICENSE_KEY_UUID_NAME = "license.key.uuid";
- public static final String IS_ACQUIRE_LICENSE_REQUIRE ="is.acquire-license.require";
- public static final String IS_RELEASE_LICENSE_REQUIRE ="is.release-license.require";
-
- public static final String AAI_ENTITLMENT_POOL_UUID_NAME = "aai.input.data.entitlement-assignment-group-uuid";
- public static final String AAI_LICENSE_KEY_UUID_NAME = "aai.input.data.license-assignment-group-uuid";
- public static final String AAI_LICENSE_KEY_VALUE = "aai.input.data.license-key";
- public static final String IS_AAI_ENTITLEMENT_UPDATE_REQUIRE = "is.aai-entitlement-update.require";
- public static final String IS_AAI_LICENSE_UPDATE_REQUIRE = "is.aai-license-update.require";
- public static final String IS_ACQUIRE_ENTITLEMENT_REQUIRE ="is.acquire-entitlement.require";
- public static final String IS_RELEASE_ENTITLEMENT_REQUIRE ="is.release-entitlement.require";
-
- public enum SDC_ARTIFACTS_FIELDS {
- SERVICE_UUID,
- DISTRIBUTION_ID,
- SERVICE_NAME,
- SERVICE_DESCRIPTION,
- RESOURCE_UUID,
- RESOURCE_INSTANCE_NAME,
- RESOURCE_NAME,
- RESOURCE_VERSION,
- RESOURCE_TYPE,
- ARTIFACT_UUID,
- ARTIFACT_TYPE,
- ARTIFACT_VERSION,
- ARTIFACT_DESCRIPTION,
- INTERNAL_VERSION,
- CREATION_DATE,
- ARTIFACT_NAME,
- ARTIFACT_CONTENT
- }
-}
diff --git a/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/LicenseDataAccessService.java b/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/LicenseDataAccessService.java
deleted file mode 100644
index f826828c4..000000000
--- a/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/LicenseDataAccessService.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * ONAP : APPC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Copyright (C) 2017 Amdocs
- * =============================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- * ============LICENSE_END=========================================================
- */
-
-package org.onap.appc.licmgr;
-
-import org.onap.appc.licmgr.exception.DataAccessException;
-
-import java.util.Map;
-
-
-@SuppressWarnings("JavaDoc")
-public interface LicenseDataAccessService {
-
- /**
- *
- * @param schema
- */
- void setSchema(String schema);
-
- /**
- *
- * @param vnfType resource name
- * @param vnfVersion resource version
- * @return map contains requested fields as Strings
- * @throws RuntimeException
- */
- Map<String,String> retrieveLicenseModelData(String vnfType, String vnfVersion, String... fields) throws DataAccessException;
-
-}
diff --git a/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/LicenseManager.java b/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/LicenseManager.java
deleted file mode 100644
index f396beba1..000000000
--- a/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/LicenseManager.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * ONAP : APPC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Copyright (C) 2017 Amdocs
- * =============================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- * ============LICENSE_END=========================================================
- */
-
-package org.onap.appc.licmgr;
-
-import org.onap.appc.licmgr.exception.DataAccessException;
-import org.onap.appc.licmgr.objects.LicenseModel;
-
-
-@SuppressWarnings("JavaDoc")
-public interface LicenseManager {
-
- /**
- *
- * @param vnfType
- * @param vnfVersion
- * @return pojo object represented license model
- * @throws DataAccessException
- */
- LicenseModel retrieveLicenseModel(String vnfType, String vnfVersion) throws DataAccessException;
-
-
-}
diff --git a/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/exception/DataAccessException.java b/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/exception/DataAccessException.java
deleted file mode 100644
index ba3def389..000000000
--- a/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/exception/DataAccessException.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * ONAP : APPC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Copyright (C) 2017 Amdocs
- * =============================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- * ============LICENSE_END=========================================================
- */
-
-package org.onap.appc.licmgr.exception;
-
-
-
-public class DataAccessException extends RuntimeException {
-
- private static final long serialVersionUID = -155423437162622414L;
-
- public DataAccessException(){
- }
-
- public DataAccessException(String message){
- super(message);
- }
-
- public DataAccessException(Throwable cause){
- super(cause);
- }
-
- public DataAccessException(String message , Throwable cause){
- super(message , cause);
- }
-
-}
diff --git a/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/objects/LicenseModel.java b/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/objects/LicenseModel.java
deleted file mode 100644
index a2ea85ba2..000000000
--- a/appc-dispatcher/appc-license-manager/appc-license-manager-api/src/main/java/org/openecomp/appc/licmgr/objects/LicenseModel.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * ONAP : APPC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Copyright (C) 2017 Amdocs
- * =============================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- * ============LICENSE_END=========================================================
- */
-
-package org.onap.appc.licmgr.objects;
-
-public class LicenseModel {
-
- private String entitlementPoolUuid;
-
- private String licenseKeyGroupUuid;
-
- public String getEntitlementPoolUuid() {
- return entitlementPoolUuid;
- }
-
- public void setEntitlementPoolUuid(String entitlementPoolUuid) {
- this.entitlementPoolUuid = entitlementPoolUuid;
- }
-
- public String getLicenseKeyGroupUuid() {
- return licenseKeyGroupUuid;
- }
-
- public void setLicenseKeyGroupUuid(String licenseKeyGroupUuid) {
- this.licenseKeyGroupUuid = licenseKeyGroupUuid;
- }
-}