summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main/java/org/openecomp/sdc/common/api
diff options
context:
space:
mode:
Diffstat (limited to 'common-app-api/src/main/java/org/openecomp/sdc/common/api')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/ApplicationErrorCodesEnum.java29
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactGroupTypeEnum.java48
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java75
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/BasicConfiguration.java5
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/ConfigurationListener.java44
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/ConfigurationSource.java9
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/Constants.java261
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/FileChangeCallback.java8
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/FilterDecisionEnum.java5
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckInfo.java160
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckWrapper.java10
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/ResourceType.java9
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/ResponseInfo.java113
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/ToscaNodeTypeInfo.java108
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/ToscaNodeTypeInterface.java20
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/UploadArtifactInfo.java250
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/UserRoleEnum.java19
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/YamlConstants.java13
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/YamlSuffixEnum.java35
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/exception/LoadConfigurationException.java1
20 files changed, 561 insertions, 661 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ApplicationErrorCodesEnum.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ApplicationErrorCodesEnum.java
index fa0f30842b..eb3ca0b396 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ApplicationErrorCodesEnum.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ApplicationErrorCodesEnum.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,21 +17,16 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
public enum ApplicationErrorCodesEnum {
-
- POL5000, // INTERNAL_ERROR
-
- SVC4000, // INVALID_INPUT
-
- SVC4002, // MISSING_INFORMATION
- SVC4003, // RESOURCE_NAME_ALREADY_EXIST
- SVC4004, // MISSING_CATEGORY
- SVC4005, // MISSING_TAGS
- SVC4006, // MISSING_DESCRIPTION
- SVC4007, // BAD_CATEGORY
-
- SVC4030; // RESTRICTED_ACTION
-}
+ POL5000, // INTERNAL_ERROR
+ SVC4000, // INVALID_INPUT
+ SVC4002, // MISSING_INFORMATION
+ SVC4003, // RESOURCE_NAME_ALREADY_EXIST
+ SVC4004, // MISSING_CATEGORY
+ SVC4005, // MISSING_TAGS
+ SVC4006, // MISSING_DESCRIPTION
+ SVC4007, // BAD_CATEGORY
+ SVC4030; // RESTRICTED_ACTION
+}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactGroupTypeEnum.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactGroupTypeEnum.java
index b9b440dc49..e951dc07f6 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactGroupTypeEnum.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactGroupTypeEnum.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,7 +17,6 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
import java.util.ArrayList;
@@ -27,27 +26,24 @@ import lombok.Getter;
@AllArgsConstructor
public enum ArtifactGroupTypeEnum {
-
- INFORMATIONAL("INFORMATIONAL"), DEPLOYMENT("DEPLOYMENT"), LIFE_CYCLE("LIFE_CYCLE"), SERVICE_API("SERVICE_API"), TOSCA("TOSCA"), OTHER("OTHER");
-
- @Getter
- private final String type;
-
- public static ArtifactGroupTypeEnum findType(final String type) {
- for (ArtifactGroupTypeEnum ate : values()) {
- if (ate.getType().equals(type)) {
- return ate;
- }
- }
- return null;
- }
-
- public static List<String> getAllTypes() {
- List<String> types = new ArrayList<>();
- for (ArtifactGroupTypeEnum ate : values()) {
- types.add(ate.getType());
- }
- return types;
- }
-
+ INFORMATIONAL("INFORMATIONAL"), DEPLOYMENT("DEPLOYMENT"), LIFE_CYCLE("LIFE_CYCLE"), SERVICE_API("SERVICE_API"), TOSCA("TOSCA"), OTHER("OTHER");
+ @Getter
+ private final String type;
+
+ public static ArtifactGroupTypeEnum findType(final String type) {
+ for (ArtifactGroupTypeEnum ate : values()) {
+ if (ate.getType().equals(type)) {
+ return ate;
+ }
+ }
+ return null;
+ }
+
+ public static List<String> getAllTypes() {
+ List<String> types = new ArrayList<>();
+ for (ArtifactGroupTypeEnum ate : values()) {
+ types.add(ate.getType());
+ }
+ return types;
+ }
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java
index 766825cdbe..6be6c7f048 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java
@@ -17,7 +17,6 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
import java.util.ArrayList;
@@ -29,12 +28,13 @@ import lombok.AllArgsConstructor;
import lombok.Getter;
/**
- * Represents an artifact type that is used for hard-coded type representation.
+ * Represents an artifact type that is used for hard-coded type representation.
* All artifacts must be configured in the SDC configuration file.
*/
@Getter
@AllArgsConstructor
public enum ArtifactTypeEnum {
+ // @formatter:off
AAI_SERVICE_MODEL("AAI_SERVICE_MODEL"),
AAI_VF_INSTANCE_MODEL("AAI_VF_INSTANCE_MODEL"),
AAI_VF_MODEL("AAI_VF_MODEL"),
@@ -95,6 +95,7 @@ public enum ArtifactTypeEnum {
YANG_MODULE("YANG_MODULE"),
YANG_XML("YANG_XML"),
YANG("YANG");
+ // @formatter:on
private final String type;
@@ -119,67 +120,15 @@ public enum ArtifactTypeEnum {
* @return A set of base artifact types
*/
public static Set<ArtifactTypeEnum> getBaseArtifacts() {
- final List<ArtifactTypeEnum> artifactTypeEnums = Arrays.asList(
- AAI_SERVICE_MODEL,
- AAI_VF_INSTANCE_MODEL,
- AAI_VF_MODEL,
- AAI_VF_MODULE_MODEL,
- ANSIBLE_PLAYBOOK,
- APPC_CONFIG,
- BPEL,
- CHEF,
- CLOUD_TECHNOLOGY_SPECIFIC_ARTIFACT,
- CONTROLLER_BLUEPRINT_ARCHIVE,
- DCAE_DOC,
- DCAE_EVENT,
- DCAE_INVENTORY_BLUEPRINT,
- DCAE_INVENTORY_DOC,
- DCAE_INVENTORY_EVENT,
- DCAE_INVENTORY_JSON,
- DCAE_INVENTORY_POLICY,
- DCAE_INVENTORY_TOSCA,
- DCAE_JSON,
- DCAE_POLICY,
- DCAE_TOSCA,
- DG_XML,
- ETSI_PACKAGE,
- GUIDE,
- HEAT,
- HEAT_ARTIFACT,
- HEAT_ENV,
- HEAT_NESTED,
- HEAT_NET,
- HEAT_VOL,
- ICON,
- LIFECYCLE_OPERATIONS,
- MODEL_INVENTORY_PROFILE,
- MODEL_QUERY_SPEC,
- MURANO_PKG,
- NETWORK_CALL_FLOW,
- ONBOARDED_PACKAGE,
- OTHER,
- PERFORMANCE_COUNTER,
- PLAN,
- PM_DICTIONARY,
- PNF_SW_INFORMATION,
- PUPPET,
- SHELL,
- SHELL_SCRIPT,
- SNMP_POLL,
- SNMP_TRAP,
- TOSCA_CSAR,
- TOSCA_TEMPLATE,
- UCPE_LAYER_2_CONFIGURATION,
- VENDOR_LICENSE,
- VES_EVENTS,
- VF_LICENSE,
- VF_MODULES_METADATA,
- VNF_CATALOG,
- WORKFLOW,
- YANG,
- YANG_MODULE,
- YANG_XML
- );
+ final List<ArtifactTypeEnum> artifactTypeEnums = Arrays
+ .asList(AAI_SERVICE_MODEL, AAI_VF_INSTANCE_MODEL, AAI_VF_MODEL, AAI_VF_MODULE_MODEL, ANSIBLE_PLAYBOOK, APPC_CONFIG, BPEL, CHEF,
+ CLOUD_TECHNOLOGY_SPECIFIC_ARTIFACT, CONTROLLER_BLUEPRINT_ARCHIVE, DCAE_DOC, DCAE_EVENT, DCAE_INVENTORY_BLUEPRINT, DCAE_INVENTORY_DOC,
+ DCAE_INVENTORY_EVENT, DCAE_INVENTORY_JSON, DCAE_INVENTORY_POLICY, DCAE_INVENTORY_TOSCA, DCAE_JSON, DCAE_POLICY, DCAE_TOSCA, DG_XML,
+ ETSI_PACKAGE, GUIDE, HEAT, HEAT_ARTIFACT, HEAT_ENV, HEAT_NESTED, HEAT_NET, HEAT_VOL, ICON, LIFECYCLE_OPERATIONS,
+ MODEL_INVENTORY_PROFILE, MODEL_QUERY_SPEC, MURANO_PKG, NETWORK_CALL_FLOW, ONBOARDED_PACKAGE, OTHER, PERFORMANCE_COUNTER, PLAN,
+ PM_DICTIONARY, PNF_SW_INFORMATION, PUPPET, SHELL, SHELL_SCRIPT, SNMP_POLL, SNMP_TRAP, TOSCA_CSAR, TOSCA_TEMPLATE,
+ UCPE_LAYER_2_CONFIGURATION, VENDOR_LICENSE, VES_EVENTS, VF_LICENSE, VF_MODULES_METADATA, VNF_CATALOG, WORKFLOW, YANG, YANG_MODULE,
+ YANG_XML);
return new HashSet<>(artifactTypeEnums);
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/BasicConfiguration.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/BasicConfiguration.java
index 5152b2af26..ce4e484a27 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/BasicConfiguration.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/BasicConfiguration.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,7 +17,6 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
public class BasicConfiguration {
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ConfigurationListener.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ConfigurationListener.java
index d60ed6dabc..b6b6e52b20 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ConfigurationListener.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ConfigurationListener.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,34 +17,32 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
public class ConfigurationListener {
- private Class<? extends BasicConfiguration> type;
- private FileChangeCallback callBack;
-
- public ConfigurationListener(Class<? extends BasicConfiguration> type, FileChangeCallback callBack) {
- super();
- this.type = type;
- this.callBack = callBack;
- }
+ private Class<? extends BasicConfiguration> type;
+ private FileChangeCallback callBack;
- public Class<? extends BasicConfiguration> getType() {
- return type;
- }
+ public ConfigurationListener(Class<? extends BasicConfiguration> type, FileChangeCallback callBack) {
+ super();
+ this.type = type;
+ this.callBack = callBack;
+ }
- public void setType(Class<? extends BasicConfiguration> type) {
- this.type = type;
- }
+ public Class<? extends BasicConfiguration> getType() {
+ return type;
+ }
- public FileChangeCallback getCallBack() {
- return callBack;
- }
+ public void setType(Class<? extends BasicConfiguration> type) {
+ this.type = type;
+ }
- public void setCallBack(FileChangeCallback callBack) {
- this.callBack = callBack;
- }
+ public FileChangeCallback getCallBack() {
+ return callBack;
+ }
+ public void setCallBack(FileChangeCallback callBack) {
+ this.callBack = callBack;
+ }
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ConfigurationSource.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ConfigurationSource.java
index 12982caec0..cfdac07a0f 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ConfigurationSource.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ConfigurationSource.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,12 +17,11 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
public interface ConfigurationSource {
- <T> T getAndWatchConfiguration(Class<T> className, ConfigurationListener configurationListener);
+ <T> T getAndWatchConfiguration(Class<T> className, ConfigurationListener configurationListener);
- <T> void addWatchConfiguration(Class<T> className, ConfigurationListener configurationListener);
+ <T> void addWatchConfiguration(Class<T> className, ConfigurationListener configurationListener);
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/Constants.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/Constants.java
index b06d55aa67..d44aa3018e 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/Constants.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/Constants.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,144 +17,135 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
public final class Constants {
- public static final String APPLICATION_NAME = "application-name";
- public static final String APPLICATION_VERSION = "application-version";
- public static final String CONFIG_HOME = "config.home";
- public static final String LOG_HOME = "log.home";
- public static final String YAML_SUFFIX = ".yaml";
- public static final String CONFIGURATION_SOURCE_ATTR = "configuration-source";
- public static final String MDC_APP_NAME = "APP_NAME";
- public static final String CONFIGURATION_MANAGER_ATTR = "configuration-manager";
- public static final String HEALTH_CHECK_SERVICE_ATTR = "healthCheckService";
- public static final String REST_CLIENT_ATTR = "rest-client";
- public static final String ARTIFACT_DAO_ATTR = "artifact-dao";
- public static final String UPLOAD_VALIDATORR_ATTR = "upload-validator";
- public static final String THREAD_EXECUTOR_ATTR = "thread-executor";
- public static final String ERROR_LOG_FORMAT = "EVENT = ARTIFACT_UPLOAD USER_ID=%s USER_NAME=%s ACCESS_IP=%s ACCESS_TYPE=%s RURL=%s SC=%d";
- public static final String FIRST_NAME_HEADER = "HTTP_CSP_FIRSTNAME";
- public static final String LAST_NAME_HEADER = "HTTP_CSP_LASTNAME";
- public static final String USER_ID_HEADER = "USER_ID";
- public static final String MD5_HEADER = "Content-MD5";
- public static final String USER_AGENT_HEADER = "User-Agent";
- public static final String CONTENT_LENGTH_HEADER = "Content-Length";
- public static final String CONTENT_DISPOSITION_HEADER = "Content-Disposition";
- public static final String CONTENT_TYPE_HEADER = "Content-Type";
- public static final String ORIGIN_HEADER = "HTTP_IV_REMOTE_ADDRESS";
- public static final String ACCESS_HEADER = "HTTP_CSP_WSTYPE";
- public static final String X_ECOMP_REQUEST_ID_HEADER = "X-ECOMP-RequestID";
- public static final String X_ECOMP_INSTANCE_ID_HEADER = "X-ECOMP-InstanceID";
- public static final String X_ECOMP_SERVICE_ID_HEADER = "X-ECOMP-ServiceID";
- public static final String X_REQUEST_ID = "X-RequestID";
- public static final String X_TRANSACTION_ID_HEADER = "X-TransactionId";
- public static final String X_FROM_APP_ID = "X-FromAppId";
- public static final String PartnerName_Unknown = "UNKNOWN";
- public static final String X_InvocationID = "X-InvocationID";
- public static final String HTTP = "http";
- public static final String HTTPS = "https";
- public static final String HTTP_IV_USER = "HTTP_IV_USER";
- public static final String A4C_CSAR_CONTEXT = "/rest/csars/";
- public static final String WEB_APPLICATION_CONTEXT_WRAPPER_ATTR = "web-application-context-wrapper";
- public static final String CATALOG_BE = "catalog-be";
- public static final String RESOURCE_SUPPORTED_VERSION = "0.0.1";
- public static final String ARTIFACT_ID_FORMAT = "%s:%s:%s"; // resourceName:resourceVersion:artifactName
- public static final String SERVICE_ARTIFACT_ID_FORMAT = "%s:%s:%s:%s"; // serviceName:serviceVersion:nodeTemplateName:artifactName
- public static final String CONTENT_DISPOSITION = "content-disposition";
- public static final String DOWNLOAD_ARTIFACT_LOGIC_ATTR = "downloadArtifactLogic";
- public static final String ASDC_RELEASE_VERSION_ATTR = "SDC-Version";
- public static final String YEAR = "year";
- public static final String MONTH = "month";
- public static final String DAY = "day";
- public static final String HOUR = "hour";
- public static final String MINUTE = "minute";
- public static final String NONE = "none";
- public static final String RESOURCE_OPERATION_MANAGER = "resourceOperationManager";
- public static final String PROPERTY_OPERATION_MANAGER = "propertyOperationManager";
- public static final String SERVICE_OPERATION_MANAGER = "serviceOperationManager";
- public static final String EMPTY_STRING = "";
- public static final String NULL_STRING = "null";
- public static final String DOUBLE_NULL_STRING = "null null";
- public static final String ECOMP_ERROR_MNGR_ATTR = "ecompErrorMngrAttr";
- public static final String AUTHORIZATION_HEADER = "Authorization";
- public static final String ACCEPT_HEADER = "Accept";
- public static final String STANDARD_INTERFACE_TYPE = "standard";
- public static final String MURANO_PKG_ARTIFACT_TYPE = "MURANO-PKG";
-
- // TOSCA
- public static final String TOSCA_META_PATH = "TOSCA-Metadata/TOSCA.meta";
- public static final String TOSCA_META_ENTRY_DEFINITIONS = "Entry-Definitions";
- public static final String USER_DEFINED_RESOURCE_NAMESPACE_PREFIX = "org.openecomp.resource.";
- public static final String USER_DEFINED_SERVICE_NAMESPACE_PREFIX = "org.openecomp.service.";
-
- public static final String IS_BASE = "isBase";
- public static final String HEAT_FILE_PROPS = "heat_file";
- public static final String GROUP_POLICY_NAME_DELIMETER = "..";
- public static final String POLICY_UID_POSTFIX = ".policy";
- public static final String MODULE_NAME_FORMAT = "%s..%s..module-%s";
- public static final String MODULE_DESC_PATTERN = "[\\_\\-\\.a-zA-Z0-9]+";
- public static final String MODULE_OLD_NAME_PATTERN = "([\\w\\_\\-\\.\\s]+)(::module-)(\\d+)";
- public static final String MODULE_NEW_NAME_PATTERN = "([\\w\\_\\-\\.\\s]+\\.\\.)([\\_\\-\\.a-zA-Z0-9]+)(..module-)(\\d+)";
- public static final String MODULE_NAME_DELIMITER = "module-";
- public static final String IMPORT_STRUCTURE = "importStructure";
- public static final String DEFAULT_GROUP_VF_MODULE = "org.openecomp.groups.VfModule";
- public static final String GROUP_TOSCA_HEAT = "org.openecomp.groups.heat.HeatStack";
-
- public static final String ARTIFACT_GROUP_TYPE = "artifactGroupType";
- public static final String ARTIFACT_LABEL = "artifactLabel";
- public static final String ARTIFACT_PAYLOAD_DATA = "payloadData";
- public static final String ARTIFACT_DISPLAY_NAME = "artifactDisplayName";
- public static final String ARTIFACT_DESCRIPTION = "description";
- public static final String ARTIFACT_TYPE = "artifactType";
- public static final String ARTIFACT_NAME = "artifactName";
- public static final String IS_FROM_CSAR = "isFromCsar";
- public static final String ARTIFACT_ID = "uniqueId";
- public static final String REQUIRED_ARTIFACTS = "requiredArtifacts";
- public static final String ARTIFACT_HEAT_PARAMS = "heatParameters";
- public static final String ARTIFACT_ES_ID = "esId";
- public static final String ARTIFACT_TIMEOUT = "timeout";
+ public static final String APPLICATION_NAME = "application-name";
+ public static final String APPLICATION_VERSION = "application-version";
+ public static final String CONFIG_HOME = "config.home";
+ public static final String LOG_HOME = "log.home";
+ public static final String YAML_SUFFIX = ".yaml";
+ public static final String CONFIGURATION_SOURCE_ATTR = "configuration-source";
+ public static final String MDC_APP_NAME = "APP_NAME";
+ public static final String CONFIGURATION_MANAGER_ATTR = "configuration-manager";
+ public static final String HEALTH_CHECK_SERVICE_ATTR = "healthCheckService";
+ public static final String REST_CLIENT_ATTR = "rest-client";
+ public static final String ARTIFACT_DAO_ATTR = "artifact-dao";
+ public static final String UPLOAD_VALIDATORR_ATTR = "upload-validator";
+ public static final String THREAD_EXECUTOR_ATTR = "thread-executor";
+ public static final String ERROR_LOG_FORMAT = "EVENT = ARTIFACT_UPLOAD USER_ID=%s USER_NAME=%s ACCESS_IP=%s ACCESS_TYPE=%s RURL=%s SC=%d";
+ public static final String FIRST_NAME_HEADER = "HTTP_CSP_FIRSTNAME";
+ public static final String LAST_NAME_HEADER = "HTTP_CSP_LASTNAME";
+ public static final String USER_ID_HEADER = "USER_ID";
+ public static final String MD5_HEADER = "Content-MD5";
+ public static final String USER_AGENT_HEADER = "User-Agent";
+ public static final String CONTENT_LENGTH_HEADER = "Content-Length";
+ public static final String CONTENT_DISPOSITION_HEADER = "Content-Disposition";
+ public static final String CONTENT_TYPE_HEADER = "Content-Type";
+ public static final String ORIGIN_HEADER = "HTTP_IV_REMOTE_ADDRESS";
+ public static final String ACCESS_HEADER = "HTTP_CSP_WSTYPE";
+ public static final String X_ECOMP_REQUEST_ID_HEADER = "X-ECOMP-RequestID";
+ public static final String X_ECOMP_INSTANCE_ID_HEADER = "X-ECOMP-InstanceID";
+ public static final String X_ECOMP_SERVICE_ID_HEADER = "X-ECOMP-ServiceID";
+ public static final String X_REQUEST_ID = "X-RequestID";
+ public static final String X_TRANSACTION_ID_HEADER = "X-TransactionId";
+ public static final String X_FROM_APP_ID = "X-FromAppId";
+ public static final String PartnerName_Unknown = "UNKNOWN";
+ public static final String X_InvocationID = "X-InvocationID";
+ public static final String HTTP = "http";
+ public static final String HTTPS = "https";
+ public static final String HTTP_IV_USER = "HTTP_IV_USER";
+ public static final String A4C_CSAR_CONTEXT = "/rest/csars/";
+ public static final String WEB_APPLICATION_CONTEXT_WRAPPER_ATTR = "web-application-context-wrapper";
+ public static final String CATALOG_BE = "catalog-be";
+ public static final String RESOURCE_SUPPORTED_VERSION = "0.0.1";
+ public static final String ARTIFACT_ID_FORMAT = "%s:%s:%s"; // resourceName:resourceVersion:artifactName
- public static final String ABSTRACT = "abstract";
- public static final String GLOBAL_SUBSTITUTION_TYPES_SERVICE_TEMPLATE = "Definitions/GlobalSubstitutionTypesServiceTemplate.yaml";
- public static final String ABSTRACT_SUBSTITUTE_GLOBAL_TYPES_SERVICE_TEMPLATE = "Definitions/AbstractSubstituteGlobalTypesServiceTemplate.yaml";
-
- public static final String VENDOR_LICENSE_MODEL = "vendor-license-model.xml";
- public static final String VENDOR_LICENSE_LABEL = "vendorlicense";
- public static final String VENDOR_LICENSE_DISPLAY_NAME = "Vendor License";
- public static final String VENDOR_LICENSE_DESCRIPTION = " Vendor license file";
-
- public static final String VF_LICENSE_MODEL = "vf-license-model.xml";
- public static final String VF_LICENSE_LABEL = "vflicense";
- public static final String VF_LICENSE_DISPLAY_NAME = "VF License";
- public static final String VF_LICENSE_DESCRIPTION = "VF license file";
- public static final String GET_INPUT = "get_input";
- public static final String GET_ATTRIBUTE = "get_attribute";
- public static final String GET_POLICY = "get_policy";
- public static final String SERVICE_TEMPLATE_FILE_POSTFIX = "ServiceTemplate.yaml";
- public static final String SERVICE_TEMPLATES_CONTAINING_FOLDER = "Definitions/";
- public static final String UNBOUNDED = "unbounded";
-
- //SDC HealthCheck components
- public static final String HC_COMPONENT_FE = "FE";
- public static final String HC_COMPONENT_BE = "BE";
+ public static final String SERVICE_ARTIFACT_ID_FORMAT = "%s:%s:%s:%s"; // serviceName:serviceVersion:nodeTemplateName:artifactName
+ public static final String CONTENT_DISPOSITION = "content-disposition";
+ public static final String DOWNLOAD_ARTIFACT_LOGIC_ATTR = "downloadArtifactLogic";
+ public static final String ASDC_RELEASE_VERSION_ATTR = "SDC-Version";
+ public static final String YEAR = "year";
+ public static final String MONTH = "month";
+ public static final String DAY = "day";
+ public static final String HOUR = "hour";
+ public static final String MINUTE = "minute";
+ public static final String NONE = "none";
+ public static final String RESOURCE_OPERATION_MANAGER = "resourceOperationManager";
+ public static final String PROPERTY_OPERATION_MANAGER = "propertyOperationManager";
+ public static final String SERVICE_OPERATION_MANAGER = "serviceOperationManager";
+ public static final String EMPTY_STRING = "";
+ public static final String NULL_STRING = "null";
+ public static final String DOUBLE_NULL_STRING = "null null";
+ public static final String ECOMP_ERROR_MNGR_ATTR = "ecompErrorMngrAttr";
+ public static final String AUTHORIZATION_HEADER = "Authorization";
+ public static final String ACCEPT_HEADER = "Accept";
+ public static final String STANDARD_INTERFACE_TYPE = "standard";
+ public static final String MURANO_PKG_ARTIFACT_TYPE = "MURANO-PKG";
+ // TOSCA
+ public static final String TOSCA_META_PATH = "TOSCA-Metadata/TOSCA.meta";
+ public static final String TOSCA_META_ENTRY_DEFINITIONS = "Entry-Definitions";
+ public static final String USER_DEFINED_RESOURCE_NAMESPACE_PREFIX = "org.openecomp.resource.";
+ public static final String USER_DEFINED_SERVICE_NAMESPACE_PREFIX = "org.openecomp.service.";
+ public static final String IS_BASE = "isBase";
+ public static final String HEAT_FILE_PROPS = "heat_file";
+ public static final String GROUP_POLICY_NAME_DELIMETER = "..";
+ public static final String POLICY_UID_POSTFIX = ".policy";
+ public static final String MODULE_NAME_FORMAT = "%s..%s..module-%s";
+ public static final String MODULE_DESC_PATTERN = "[\\_\\-\\.a-zA-Z0-9]+";
+ public static final String MODULE_OLD_NAME_PATTERN = "([\\w\\_\\-\\.\\s]+)(::module-)(\\d+)";
+ public static final String MODULE_NEW_NAME_PATTERN = "([\\w\\_\\-\\.\\s]+\\.\\.)([\\_\\-\\.a-zA-Z0-9]+)(..module-)(\\d+)";
+ public static final String MODULE_NAME_DELIMITER = "module-";
+ public static final String IMPORT_STRUCTURE = "importStructure";
+ public static final String DEFAULT_GROUP_VF_MODULE = "org.openecomp.groups.VfModule";
+ public static final String GROUP_TOSCA_HEAT = "org.openecomp.groups.heat.HeatStack";
+ public static final String ARTIFACT_GROUP_TYPE = "artifactGroupType";
+ public static final String ARTIFACT_LABEL = "artifactLabel";
+ public static final String ARTIFACT_PAYLOAD_DATA = "payloadData";
+ public static final String ARTIFACT_DISPLAY_NAME = "artifactDisplayName";
+ public static final String ARTIFACT_DESCRIPTION = "description";
+ public static final String ARTIFACT_TYPE = "artifactType";
+ public static final String ARTIFACT_NAME = "artifactName";
+ public static final String IS_FROM_CSAR = "isFromCsar";
+ public static final String ARTIFACT_ID = "uniqueId";
+ public static final String REQUIRED_ARTIFACTS = "requiredArtifacts";
+ public static final String ARTIFACT_HEAT_PARAMS = "heatParameters";
+ public static final String ARTIFACT_ES_ID = "esId";
+ public static final String ARTIFACT_TIMEOUT = "timeout";
+ public static final String ABSTRACT = "abstract";
+ public static final String GLOBAL_SUBSTITUTION_TYPES_SERVICE_TEMPLATE = "Definitions/GlobalSubstitutionTypesServiceTemplate.yaml";
+ public static final String ABSTRACT_SUBSTITUTE_GLOBAL_TYPES_SERVICE_TEMPLATE = "Definitions/AbstractSubstituteGlobalTypesServiceTemplate.yaml";
+ public static final String VENDOR_LICENSE_MODEL = "vendor-license-model.xml";
+ public static final String VENDOR_LICENSE_LABEL = "vendorlicense";
+ public static final String VENDOR_LICENSE_DISPLAY_NAME = "Vendor License";
+ public static final String VENDOR_LICENSE_DESCRIPTION = " Vendor license file";
+ public static final String VF_LICENSE_MODEL = "vf-license-model.xml";
+ public static final String VF_LICENSE_LABEL = "vflicense";
+ public static final String VF_LICENSE_DISPLAY_NAME = "VF License";
+ public static final String VF_LICENSE_DESCRIPTION = "VF license file";
+ public static final String GET_INPUT = "get_input";
+ public static final String GET_ATTRIBUTE = "get_attribute";
+ public static final String GET_POLICY = "get_policy";
+ public static final String SERVICE_TEMPLATE_FILE_POSTFIX = "ServiceTemplate.yaml";
+ public static final String SERVICE_TEMPLATES_CONTAINING_FOLDER = "Definitions/";
+ public static final String UNBOUNDED = "unbounded";
+ //SDC HealthCheck components
+ public static final String HC_COMPONENT_FE = "FE";
+ public static final String HC_COMPONENT_BE = "BE";
public static final String HC_COMPONENT_CADI = "External API";
- public static final String HC_COMPONENT_JANUSGRAPH = "JANUSGRAPH";
- public static final String HC_COMPONENT_CASSANDRA = "CASSANDRA";
- public static final String HC_COMPONENT_DISTRIBUTION_ENGINE = "DE";
- public static final String HC_COMPONENT_DMAAP_ENGINE = "DMAAP";
- public static final String HC_COMPONENT_DMAAP_PRODUCER = "DMAAP_PRODUCER";
- public static final String HC_COMPONENT_CATALOG_FACADE_MS = "CATALOG_FACADE_MS";
-
- //external HealthCheck components
- public static final String HC_COMPONENT_ON_BOARDING = "ON_BOARDING";
- public static final String HC_COMPONENT_ECOMP_PORTAL = "PORTAL";
+ public static final String HC_COMPONENT_JANUSGRAPH = "JANUSGRAPH";
+ public static final String HC_COMPONENT_CASSANDRA = "CASSANDRA";
+ public static final String HC_COMPONENT_DISTRIBUTION_ENGINE = "DE";
+ public static final String HC_COMPONENT_DMAAP_ENGINE = "DMAAP";
+ public static final String HC_COMPONENT_DMAAP_PRODUCER = "DMAAP_PRODUCER";
+ public static final String HC_COMPONENT_CATALOG_FACADE_MS = "CATALOG_FACADE_MS";
+ //external HealthCheck components
+ public static final String HC_COMPONENT_ON_BOARDING = "ON_BOARDING";
+ public static final String HC_COMPONENT_ECOMP_PORTAL = "PORTAL";
+ //Plugin BL
+ public static final String PLUGIN_BL_COMPONENT = "pluginStatusBL";
-
- //Plugin BL
- public static final String PLUGIN_BL_COMPONENT = "pluginStatusBL";
-
- private Constants(){}
+ private Constants() {
+ }
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/FileChangeCallback.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/FileChangeCallback.java
index 9684c98bd3..0d6b577995 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/FileChangeCallback.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/FileChangeCallback.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,12 +17,10 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
@FunctionalInterface
public interface FileChangeCallback {
- void reconfigure(BasicConfiguration obj);
-
+ void reconfigure(BasicConfiguration obj);
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/FilterDecisionEnum.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/FilterDecisionEnum.java
index 2e0ce9481a..83f6dae28a 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/FilterDecisionEnum.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/FilterDecisionEnum.java
@@ -1,6 +1,3 @@
package org.openecomp.sdc.common.api;
-public enum FilterDecisionEnum {
- EXTERNAL,INTERNAL,NA;
-
-}
+public enum FilterDecisionEnum {EXTERNAL, INTERNAL, NA;}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckInfo.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckInfo.java
index fb1938fb9a..361701a9d7 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckInfo.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckInfo.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,91 +17,85 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
import java.util.List;
public class HealthCheckInfo {
-
- private String healthCheckComponent;
- private HealthCheckStatus healthCheckStatus;
- private String version;
- private String description;
- private List<HealthCheckInfo> componentsInfo;
-
- public void setHealthCheckComponent(String healthCheckComponent) {
- this.healthCheckComponent = healthCheckComponent;
- }
-
- public HealthCheckInfo(String healthCheckComponent, HealthCheckStatus healthCheckStatus,
- String version, String description) {
- super();
- this.healthCheckComponent = healthCheckComponent;
- this.healthCheckStatus = healthCheckStatus;
- this.version = version;
- this.description = description;
- }
-
- public HealthCheckInfo(String healthCheckComponent, HealthCheckStatus healthCheckStatus,
- String version, String description, List<HealthCheckInfo> componentsInfo) {
- super();
- this.healthCheckComponent = healthCheckComponent;
- this.healthCheckStatus = healthCheckStatus;
- this.version = version;
- this.description = description;
- this.componentsInfo = componentsInfo;
-}
- public HealthCheckInfo() {
- super();
- }
-
- public String getHealthCheckComponent() {
- return healthCheckComponent;
- }
-
- public HealthCheckStatus getHealthCheckStatus() {
- return healthCheckStatus;
- }
-
- public void setHealthCheckStatus(HealthCheckStatus healthCheckStatus) {
- this.healthCheckStatus = healthCheckStatus;
- }
-
- public List<HealthCheckInfo> getComponentsInfo() {
- return componentsInfo;
- }
-
- public void setComponentsInfo(List<HealthCheckInfo> componentsInfo) {
- this.componentsInfo = componentsInfo;
- }
-
- public String getVersion() {
- return version;
- }
-
- public void setVersion(String version) {
- this.version = version;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public enum HealthCheckStatus {
- UP, DOWN, UNKNOWN;
- }
-
- @Override
- public String toString() {
- return "HealthCheckInfo [healthCheckComponent=" + healthCheckComponent + ", healthCheckStatus="
- + healthCheckStatus + ", version=" + version + ", description=" + description + ", componentsInfo="
- + componentsInfo + "]";
- }
-
+ private String healthCheckComponent;
+ private HealthCheckStatus healthCheckStatus;
+ private String version;
+ private String description;
+ private List<HealthCheckInfo> componentsInfo;
+
+ public HealthCheckInfo(String healthCheckComponent, HealthCheckStatus healthCheckStatus, String version, String description) {
+ super();
+ this.healthCheckComponent = healthCheckComponent;
+ this.healthCheckStatus = healthCheckStatus;
+ this.version = version;
+ this.description = description;
+ }
+
+ public HealthCheckInfo(String healthCheckComponent, HealthCheckStatus healthCheckStatus, String version, String description,
+ List<HealthCheckInfo> componentsInfo) {
+ super();
+ this.healthCheckComponent = healthCheckComponent;
+ this.healthCheckStatus = healthCheckStatus;
+ this.version = version;
+ this.description = description;
+ this.componentsInfo = componentsInfo;
+ }
+
+ public HealthCheckInfo() {
+ super();
+ }
+
+ public String getHealthCheckComponent() {
+ return healthCheckComponent;
+ }
+
+ public void setHealthCheckComponent(String healthCheckComponent) {
+ this.healthCheckComponent = healthCheckComponent;
+ }
+
+ public HealthCheckStatus getHealthCheckStatus() {
+ return healthCheckStatus;
+ }
+
+ public void setHealthCheckStatus(HealthCheckStatus healthCheckStatus) {
+ this.healthCheckStatus = healthCheckStatus;
+ }
+
+ public List<HealthCheckInfo> getComponentsInfo() {
+ return componentsInfo;
+ }
+
+ public void setComponentsInfo(List<HealthCheckInfo> componentsInfo) {
+ this.componentsInfo = componentsInfo;
+ }
+
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @Override
+ public String toString() {
+ return "HealthCheckInfo [healthCheckComponent=" + healthCheckComponent + ", healthCheckStatus=" + healthCheckStatus + ", version=" + version
+ + ", description=" + description + ", componentsInfo=" + componentsInfo + "]";
+ }
+
+ public enum HealthCheckStatus {UP, DOWN, UNKNOWN;}
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckWrapper.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckWrapper.java
index 80dac70f2a..aeef6a0002 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckWrapper.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckWrapper.java
@@ -17,21 +17,19 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
+import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
-import java.util.List;
-
@Getter
@Setter
@AllArgsConstructor
public class HealthCheckWrapper {
- private List<HealthCheckInfo> componentsInfo;
- private String sdcVersion;
- private String siteMode;
+ private List<HealthCheckInfo> componentsInfo;
+ private String sdcVersion;
+ private String siteMode;
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ResourceType.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ResourceType.java
index b93fed2e0c..61275f7c5b 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ResourceType.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ResourceType.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,9 +17,6 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
-public enum ResourceType {
- RESOURCE, SERVICE
-}
+public enum ResourceType {RESOURCE, SERVICE}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ResponseInfo.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ResponseInfo.java
index 3e8968a481..84715a25b4 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ResponseInfo.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ResponseInfo.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,7 +17,6 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
import com.fasterxml.jackson.core.JsonProcessingException;
@@ -25,59 +24,57 @@ import com.fasterxml.jackson.databind.ObjectMapper;
public class ResponseInfo {
- public enum ResponseStatusEnum {
- SUCCESS("success"), LOGIN_FAILED("loginFailed"), INTERNAL_ERROR("internalError"), MISSING_HEADERS("required headers are missing"), TIMEOUT("timeout"), PARSING_ERROR("parsingFailed");
-
- private String statusDescription;
-
- ResponseStatusEnum(String status) {
- this.statusDescription = status;
- }
-
- public String getStatusDescription() {
- return statusDescription;
- }
- }
-
- private ResponseStatusEnum applicativeStatus;
- private String description;
-
- public ResponseInfo(ResponseStatusEnum applicativeStatus, String description) {
- super();
- this.applicativeStatus = applicativeStatus;
- this.description = description;
- }
-
- public ResponseInfo(ResponseStatusEnum applicativeStatus) {
- super();
- this.applicativeStatus = applicativeStatus;
- }
-
- public ResponseStatusEnum getApplicativeStatus() {
- return applicativeStatus;
- }
-
- public void setApplicativeStatus(ResponseStatusEnum applicativeStatus) {
- this.applicativeStatus = applicativeStatus;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- @Override
- public String toString() {
- ObjectMapper mapper = new ObjectMapper();
- String tostring = super.toString();
- try {
- tostring = mapper.writeValueAsString(this);
- } catch (JsonProcessingException e) {
-
- }
- return tostring;
- }
+ private ResponseStatusEnum applicativeStatus;
+ private String description;
+ public ResponseInfo(ResponseStatusEnum applicativeStatus, String description) {
+ super();
+ this.applicativeStatus = applicativeStatus;
+ this.description = description;
+ }
+
+ public ResponseInfo(ResponseStatusEnum applicativeStatus) {
+ super();
+ this.applicativeStatus = applicativeStatus;
+ }
+
+ public ResponseStatusEnum getApplicativeStatus() {
+ return applicativeStatus;
+ }
+
+ public void setApplicativeStatus(ResponseStatusEnum applicativeStatus) {
+ this.applicativeStatus = applicativeStatus;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @Override
+ public String toString() {
+ ObjectMapper mapper = new ObjectMapper();
+ String tostring = super.toString();
+ try {
+ tostring = mapper.writeValueAsString(this);
+ } catch (JsonProcessingException e) {
+ }
+ return tostring;
+ }
+
+ public enum ResponseStatusEnum {
+ SUCCESS("success"), LOGIN_FAILED("loginFailed"), INTERNAL_ERROR("internalError"), MISSING_HEADERS("required headers are missing"), TIMEOUT(
+ "timeout"), PARSING_ERROR("parsingFailed");
+ private String statusDescription;
+
+ ResponseStatusEnum(String status) {
+ this.statusDescription = status;
+ }
+
+ public String getStatusDescription() {
+ return statusDescription;
+ }
+ }
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ToscaNodeTypeInfo.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ToscaNodeTypeInfo.java
index f6608952d0..18bc4cd308 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ToscaNodeTypeInfo.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ToscaNodeTypeInfo.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,63 +17,61 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
import java.util.List;
public class ToscaNodeTypeInfo {
- private String nodeName;
- private String templateVersion;
- private List<ToscaNodeTypeInterface> interfaces;
- private String iconPath;
- private String templateName;
-
- public String getTemplateName() {
- return templateName;
- }
-
- public void setTemplateName(String templateName) {
- this.templateName = templateName;
- }
-
- public String getNodeName() {
- return nodeName;
- }
-
- public void setNodeName(String nodeName) {
- this.nodeName = nodeName;
- }
-
- public String getTemplateVersion() {
- return templateVersion;
- }
-
- public void setTemplateVersion(String templateVersion) {
- this.templateVersion = templateVersion;
- }
-
- public List<ToscaNodeTypeInterface> getInterfaces() {
- return interfaces;
- }
-
- public void setInterfaces(List<ToscaNodeTypeInterface> interfaces) {
- this.interfaces = interfaces;
- }
-
- public String getIconPath() {
- return iconPath;
- }
-
- public void setIconPath(String iconPath) {
- this.iconPath = iconPath;
- }
-
- @Override
- public String toString() {
- return "ToscaNodeTypeInfo [nodeName=" + nodeName + ", templateVersion=" + templateVersion + ", templateName="
- + templateName + ", interfaces=" + interfaces + ", iconPath=" + iconPath + "]";
- }
-
+ private String nodeName;
+ private String templateVersion;
+ private List<ToscaNodeTypeInterface> interfaces;
+ private String iconPath;
+ private String templateName;
+
+ public String getTemplateName() {
+ return templateName;
+ }
+
+ public void setTemplateName(String templateName) {
+ this.templateName = templateName;
+ }
+
+ public String getNodeName() {
+ return nodeName;
+ }
+
+ public void setNodeName(String nodeName) {
+ this.nodeName = nodeName;
+ }
+
+ public String getTemplateVersion() {
+ return templateVersion;
+ }
+
+ public void setTemplateVersion(String templateVersion) {
+ this.templateVersion = templateVersion;
+ }
+
+ public List<ToscaNodeTypeInterface> getInterfaces() {
+ return interfaces;
+ }
+
+ public void setInterfaces(List<ToscaNodeTypeInterface> interfaces) {
+ this.interfaces = interfaces;
+ }
+
+ public String getIconPath() {
+ return iconPath;
+ }
+
+ public void setIconPath(String iconPath) {
+ this.iconPath = iconPath;
+ }
+
+ @Override
+ public String toString() {
+ return "ToscaNodeTypeInfo [nodeName=" + nodeName + ", templateVersion=" + templateVersion + ", templateName=" + templateName + ", interfaces="
+ + interfaces + ", iconPath=" + iconPath + "]";
+ }
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ToscaNodeTypeInterface.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ToscaNodeTypeInterface.java
index 4095714f4b..3d0a8f9a3c 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ToscaNodeTypeInterface.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ToscaNodeTypeInterface.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,21 +17,19 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
import java.util.List;
public class ToscaNodeTypeInterface {
- List<String> scripts;
-
- public List<String> getScripts() {
- return scripts;
- }
+ List<String> scripts;
- public void setScripts(List<String> scripts) {
- this.scripts = scripts;
- }
+ public List<String> getScripts() {
+ return scripts;
+ }
+ public void setScripts(List<String> scripts) {
+ this.scripts = scripts;
+ }
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/UploadArtifactInfo.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/UploadArtifactInfo.java
index 110dbf34a2..e98cc7a45b 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/UploadArtifactInfo.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/UploadArtifactInfo.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,127 +17,135 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
public class UploadArtifactInfo {
- public UploadArtifactInfo() {
-
- }
-
- public UploadArtifactInfo(String artifactName, String artifactPath, ArtifactTypeEnum artifactType, String artifactDescription) {
- super();
- this.artifactName = artifactName;
- this.artifactPath = artifactPath;
- this.artifactType = artifactType;
- this.artifactDescription = artifactDescription;
- }
-
- public UploadArtifactInfo(String artifactName, String artifactPath, ArtifactTypeEnum artifactType, String artifactDescription, String artifactData) {
- super();
- this.artifactName = artifactName;
- this.artifactPath = artifactPath;
- this.artifactType = artifactType;
- this.artifactDescription = artifactDescription;
- this.artifactData = artifactData;
- }
-
- private String artifactName;
- private String artifactPath;
- private ArtifactTypeEnum artifactType;
- private String artifactDescription;
- private String artifactData;
-
- public String getArtifactName() {
- return artifactName;
- }
-
- public void setArtifactName(String artifactName) {
- this.artifactName = artifactName;
- }
-
- public String getArtifactPath() {
- return artifactPath;
- }
-
- public void setArtifactPath(String artifactPath) {
- this.artifactPath = artifactPath;
- }
-
- public ArtifactTypeEnum getArtifactType() {
- return artifactType;
- }
-
- public void setArtifactType(ArtifactTypeEnum artifactType) {
- this.artifactType = artifactType;
- }
-
- public String getArtifactDescription() {
- return artifactDescription;
- }
-
- public void setArtifactDescription(String artifactDescription) {
- this.artifactDescription = artifactDescription;
- }
-
- public String getArtifactData() {
- return artifactData;
- }
-
- public void setArtifactData(String artifactData) {
- this.artifactData = artifactData;
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((artifactData == null) ? 0 : artifactData.hashCode());
- result = prime * result + ((artifactDescription == null) ? 0 : artifactDescription.hashCode());
- result = prime * result + ((artifactName == null) ? 0 : artifactName.hashCode());
- result = prime * result + ((artifactPath == null) ? 0 : artifactPath.hashCode());
- result = prime * result + ((artifactType == null) ? 0 : artifactType.hashCode());
- return result;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
- UploadArtifactInfo other = (UploadArtifactInfo) obj;
- if (artifactData == null) {
- if (other.artifactData != null)
- return false;
- } else if (!artifactData.equals(other.artifactData))
- return false;
- if (artifactDescription == null) {
- if (other.artifactDescription != null)
- return false;
- } else if (!artifactDescription.equals(other.artifactDescription))
- return false;
- if (artifactName == null) {
- if (other.artifactName != null)
- return false;
- } else if (!artifactName.equals(other.artifactName))
- return false;
- if (artifactPath == null) {
- if (other.artifactPath != null)
- return false;
- } else if (!artifactPath.equals(other.artifactPath))
- return false;
- if (artifactType != other.artifactType)
- return false;
- return true;
- }
-
- @Override
- public String toString() {
- return "UploadArtifactInfo [artifactName=" + artifactName + ", artifactPath=" + artifactPath + ", artifactType=" + artifactType + ", artifactDescription=" + artifactDescription + ", artifactData=" + artifactData + "]";
- }
-
+ private String artifactName;
+ private String artifactPath;
+ private ArtifactTypeEnum artifactType;
+ private String artifactDescription;
+ private String artifactData;
+ public UploadArtifactInfo() {
+ }
+ public UploadArtifactInfo(String artifactName, String artifactPath, ArtifactTypeEnum artifactType, String artifactDescription) {
+ super();
+ this.artifactName = artifactName;
+ this.artifactPath = artifactPath;
+ this.artifactType = artifactType;
+ this.artifactDescription = artifactDescription;
+ }
+ public UploadArtifactInfo(String artifactName, String artifactPath, ArtifactTypeEnum artifactType, String artifactDescription,
+ String artifactData) {
+ super();
+ this.artifactName = artifactName;
+ this.artifactPath = artifactPath;
+ this.artifactType = artifactType;
+ this.artifactDescription = artifactDescription;
+ this.artifactData = artifactData;
+ }
+
+ public String getArtifactName() {
+ return artifactName;
+ }
+
+ public void setArtifactName(String artifactName) {
+ this.artifactName = artifactName;
+ }
+
+ public String getArtifactPath() {
+ return artifactPath;
+ }
+
+ public void setArtifactPath(String artifactPath) {
+ this.artifactPath = artifactPath;
+ }
+
+ public ArtifactTypeEnum getArtifactType() {
+ return artifactType;
+ }
+
+ public void setArtifactType(ArtifactTypeEnum artifactType) {
+ this.artifactType = artifactType;
+ }
+
+ public String getArtifactDescription() {
+ return artifactDescription;
+ }
+
+ public void setArtifactDescription(String artifactDescription) {
+ this.artifactDescription = artifactDescription;
+ }
+
+ public String getArtifactData() {
+ return artifactData;
+ }
+
+ public void setArtifactData(String artifactData) {
+ this.artifactData = artifactData;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((artifactData == null) ? 0 : artifactData.hashCode());
+ result = prime * result + ((artifactDescription == null) ? 0 : artifactDescription.hashCode());
+ result = prime * result + ((artifactName == null) ? 0 : artifactName.hashCode());
+ result = prime * result + ((artifactPath == null) ? 0 : artifactPath.hashCode());
+ result = prime * result + ((artifactType == null) ? 0 : artifactType.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj) {
+ return true;
+ }
+ if (obj == null) {
+ return false;
+ }
+ if (getClass() != obj.getClass()) {
+ return false;
+ }
+ UploadArtifactInfo other = (UploadArtifactInfo) obj;
+ if (artifactData == null) {
+ if (other.artifactData != null) {
+ return false;
+ }
+ } else if (!artifactData.equals(other.artifactData)) {
+ return false;
+ }
+ if (artifactDescription == null) {
+ if (other.artifactDescription != null) {
+ return false;
+ }
+ } else if (!artifactDescription.equals(other.artifactDescription)) {
+ return false;
+ }
+ if (artifactName == null) {
+ if (other.artifactName != null) {
+ return false;
+ }
+ } else if (!artifactName.equals(other.artifactName)) {
+ return false;
+ }
+ if (artifactPath == null) {
+ if (other.artifactPath != null) {
+ return false;
+ }
+ } else if (!artifactPath.equals(other.artifactPath)) {
+ return false;
+ }
+ if (artifactType != other.artifactType) {
+ return false;
+ }
+ return true;
+ }
+
+ @Override
+ public String toString() {
+ return "UploadArtifactInfo [artifactName=" + artifactName + ", artifactPath=" + artifactPath + ", artifactType=" + artifactType
+ + ", artifactDescription=" + artifactDescription + ", artifactData=" + artifactData + "]";
+ }
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/UserRoleEnum.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/UserRoleEnum.java
index a750fa454a..8aa8a4b070 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/UserRoleEnum.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/UserRoleEnum.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,19 +17,18 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
public enum UserRoleEnum {
ADMIN("ADMIN"), DESIGNER("DESIGNER"), TESTER("TESTER"), GOVERNOR("GOVERNOR"), OPS("OPS"), PRODUCT_MANAGER("PRODUCT_MANAGER"), PRODUCT_STRATEGIST("PRODUCT_STRATEGIST");
- private String name;
+ private String name;
- UserRoleEnum(String name) {
- this.name = name;
- }
+ UserRoleEnum(String name) {
+ this.name = name;
+ }
- public String getName() {
- return name;
- }
+ public String getName() {
+ return name;
+ }
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/YamlConstants.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/YamlConstants.java
index 0dadef9292..863d78c97f 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/YamlConstants.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/YamlConstants.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,13 +17,12 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
public interface YamlConstants {
- public static final String NODE_TYPES = "node_types";
- public static final String INTERFACES = "interfaces";
- public static final String TEMPLATE_VERSION = "template_version";
- public static final String TEMPLATE_NAME = "template_name";
+ public static final String NODE_TYPES = "node_types";
+ public static final String INTERFACES = "interfaces";
+ public static final String TEMPLATE_VERSION = "template_version";
+ public static final String TEMPLATE_NAME = "template_name";
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/YamlSuffixEnum.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/YamlSuffixEnum.java
index ae25ebe177..45bc72ca6e 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/YamlSuffixEnum.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/YamlSuffixEnum.java
@@ -7,9 +7,9 @@
* 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.
@@ -17,7 +17,6 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api;
import java.util.ArrayList;
@@ -27,23 +26,15 @@ import lombok.Getter;
@AllArgsConstructor
public enum YamlSuffixEnum {
-
- YAML("YAML"),
- yaml("yaml"),
- YML("YML"),
- yml("yml");
-
- @Getter
- private final String suffix;
-
- public static List<String> getSuffixes() {
-
- List<String> arrayList = new ArrayList<>();
-
- for (YamlSuffixEnum yamlSuffixEnum : YamlSuffixEnum.values()) {
- arrayList.add(yamlSuffixEnum.getSuffix());
- }
-
- return arrayList;
- }
+ YAML("YAML"), yaml("yaml"), YML("YML"), yml("yml");
+ @Getter
+ private final String suffix;
+
+ public static List<String> getSuffixes() {
+ List<String> arrayList = new ArrayList<>();
+ for (YamlSuffixEnum yamlSuffixEnum : YamlSuffixEnum.values()) {
+ arrayList.add(yamlSuffixEnum.getSuffix());
+ }
+ return arrayList;
+ }
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/exception/LoadConfigurationException.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/exception/LoadConfigurationException.java
index dff83c6d6f..2338ec84b5 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/exception/LoadConfigurationException.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/exception/LoadConfigurationException.java
@@ -16,7 +16,6 @@
* SPDX-License-Identifier: Apache-2.0
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.common.api.exception;
public class LoadConfigurationException extends RuntimeException {