<pmd.version>5.8.1</pmd.version>
<build.tools.version>${project.version}</build.tools.version>
<togglz.version>2.4.1.Final</togglz.version>
+
</properties>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.projectlombok</groupId>
+ <artifactId>lombok</artifactId>
+ <version>1.16.20</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
<build>
<plugins>
<plugin>
<artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.projectlombok</groupId>
+ <artifactId>lombok</artifactId>
+ </dependency>
</dependencies>
</project>
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
-public class ComponentCreationDto {
- private String vfcId;
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
- public String getVfcId() {
- return vfcId;
- }
+import lombok.Data;
- public void setVfcId(String vfcId) {
- this.vfcId = vfcId;
- }
+@Data
+public class ComponentCreationDto {
+ private String vfcId;
}
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
-public class ComponentDependencyCreationDto {
- private String id;
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
- public String getId() {
- return id;
- }
+import lombok.Data;
- public void setId(String id) {
- this.id = id;
- }
+@Data
+public class ComponentDependencyCreationDto {
+ private String id;
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+@Data
public class ComponentDependencyModel {
- private String sourceId;
- private String targetId;
- private String relationType;
-
- public String getSourceId() {
- return sourceId;
- }
-
- public void setSourceId(String sourceId) {
- this.sourceId = sourceId;
- }
-
- public String getTargetId() {
- return targetId;
- }
-
- public void setTargetId(String targetId) {
- this.targetId = targetId;
- }
-
- public String getRelationType() {
- return relationType;
- }
-
- public void setRelationType(String relationType) {
- this.relationType = relationType;
- }
+ private String sourceId;
+ private String targetId;
+ private String relationType;
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+
import java.util.List;
+@Data
public class ComponentDependencyModelRequestDto {
- private List<ComponentDependencyModel> componentDependencyModels;
-
- public List<ComponentDependencyModel> getComponentDependencyModels() {
- return componentDependencyModels;
- }
+ private List<ComponentDependencyModel> componentDependencyModels;
- public void setComponentDependencyModels(
- List<ComponentDependencyModel> componentDependencyModels) {
- this.componentDependencyModels = componentDependencyModels;
- }
}
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-
-public class ComponentDependencyResponseDto {
-
- private String sourceId;
- private String targetId;
- private String relationType;
- private String id;
-
- public String getSourceId() {
- return sourceId;
- }
-
- public void setSourceId(String sourceId) {
- this.sourceId = sourceId;
- }
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
- public String getTargetId() {
- return targetId;
- }
-
- public void setTargetId(String targetId) {
- this.targetId = targetId;
- }
-
- public String getRelationType() {
- return relationType;
- }
-
- public void setRelationType(String relationType) {
- this.relationType = relationType;
- }
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
- public String getId() {
- return id;
- }
+import lombok.Data;
- public void setId(String id) {
- this.id = id;
- }
+@Data
+public class ComponentDependencyResponseDto {
+ private String sourceId;
+ private String targetId;
+ private String relationType;
+ private String id;
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-public class ComponentDto extends ComponentRequestDto implements CompositionDataEntityDto {
-
- private String id;
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
+import lombok.Data;
+@Data
+public class ComponentDto extends ComponentRequestDto implements CompositionDataEntityDto {
+ private String id;
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
public enum ComponentRelationType {
- dependsOn,
- other
+ dependsOn,
+ other
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
+@Data
public class ComponentRequestDto {
- private String name;
- @NotNull(message = "VFC displayName is mandatory.")
- @Size(min = 1, max = 30,message = "VFC displayName length should be between 1 and 30.")
- private String displayName;
- @Size(min = 0, max = 1000,message = "description length should not exceed 1000.")
- private String vfcCode;
- private String nfcCode;
- private String nfcFunction;
- private String description;
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getDisplayName() {
- return displayName;
- }
-
- public void setDisplayName(String displayName) {
- this.displayName = displayName;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public String getVfcCode() {
- return vfcCode;
- }
-
- public void setVfcCode(String vfcCode) {
- this.vfcCode = vfcCode;
- }
-
- public String getNfcCode() {
- return nfcCode;
- }
-
- public void setNfcCode(String nfcCode) {
- this.nfcCode = nfcCode;
- }
-
- public String getNfcFunction() {
- return nfcFunction;
- }
+ private String name;
+ @NotNull(message = "VFC displayName is mandatory.")
+ @Size(min = 1, max = 30, message = "VFC displayName length should be between 1 and 30.")
+ private String displayName;
+ @Size(min = 0, max = 1000, message = "description length should not exceed 1000.")
+ private String vfcCode;
+ private String nfcCode;
+ private String nfcFunction;
+ private String description;
- public void setNfcFunction(String nfcFunction) {
- this.nfcFunction = nfcFunction;
- }
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+
import java.util.Set;
+@Data
public class ComponentValidationResultDto {
- private boolean valid;
- private Set<CompositionEntityValidationDataDto> validationData;
-
- public boolean isValid() {
- return valid;
- }
-
- public void setValid(boolean valid) {
- this.valid = valid;
- }
-
- public Set<CompositionEntityValidationDataDto> getValidationData() {
- return validationData;
- }
-
- public void setValidationData(Set<CompositionEntityValidationDataDto> validationData) {
- this.validationData = validationData;
- }
+ private boolean valid;
+ private Set<CompositionEntityValidationDataDto> validationData;
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
+/*
+ * Copyright © 2016-2018 European Support Limited
+ *
* 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.
- * ============LICENSE_END=========================================================
*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-public class CompositionEntityResponseDto<T extends CompositionDataEntityDto> {
- private String id;
- private String schema;
- private T data;
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public String getSchema() {
- return schema;
- }
+import lombok.Data;
- public void setSchema(String schema) {
- this.schema = schema;
- }
-
- public T getData() {
- return data;
- }
-
- public void setData(T data) {
- this.data = data;
- }
+@Data
+public class CompositionEntityResponseDto<T extends CompositionDataEntityDto> {
+ private String id;
+ private String schema;
+ private T data;
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
import org.openecomp.sdc.vendorsoftwareproduct.types.composition.CompositionEntityType;
import java.util.Collection;
+@Data
public class CompositionEntityValidationDataDto {
- private CompositionEntityType entityType;
- private String entityId;
- private String entityName;
- private Collection<String> errors;
- private Collection<CompositionEntityValidationDataDto> subEntitiesValidationData;
-
- public CompositionEntityType getEntityType() {
- return entityType;
- }
-
- public void setEntityType(CompositionEntityType entityType) {
- this.entityType = entityType;
- }
-
- public String getEntityId() {
- return entityId;
- }
-
- public void setEntityId(String entityId) {
- this.entityId = entityId;
- }
-
- public String getEntityName() {
- return entityName;
- }
-
- public void setEntityName(String entityName) {
- this.entityName = entityName;
- }
-
- public Collection<String> getErrors() {
- return errors;
- }
-
- public void setErrors(Collection<String> errors) {
- this.errors = errors;
- }
-
- public Collection<CompositionEntityValidationDataDto> getSubEntitiesValidationData() {
- return subEntitiesValidationData;
- }
-
- public void setSubEntitiesValidationData(
- Collection<CompositionEntityValidationDataDto> subEntitiesValidationData) {
- this.subEntitiesValidationData = subEntitiesValidationData;
- }
+ private CompositionEntityType entityType;
+ private String entityId;
+ private String entityName;
+ private Collection<String> errors;
+ private Collection<CompositionEntityValidationDataDto> subEntitiesValidationData;
}
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
-public class ComputeCreationDto {
- private String id;
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
- public String getId() {
- return id;
- }
+import lombok.Data;
- public void setId(String id) {
- this.id = id;
- }
+@Data
+public class ComputeCreationDto {
+ private String id;
}
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-
-public class ComputeDescription {
- private String name;
- private String description;
-
- public String getName() {
- return name;
- }
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
- public void setName(String name) {
- this.name = name;
- }
-
- public String getDescription() {
- return description;
- }
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
- public void setDescription(String description) {
- this.description = description;
- }
+import lombok.Data;
- public ComputeDescription() {
+@Data
+public class ComputeDescription {
+ private String name;
+ private String description;
- }
+ public ComputeDescription() {
+ // needs a default constructor for reflection
+ }
- public ComputeDescription(String name, String description) {
- this.name = name;
- this.description = description;
- }
+ public ComputeDescription(String name, String description) {
+ this.name = name;
+ this.description = description;
+ }
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.Size;
+@Data
public class ComputeDetailsDto implements CompositionDataEntityDto {
- @NotBlank(message = "is mandatory and should not be empty")
- @Size(min = 0, max = 30, message = "length should not exceed 30 characters.")
- private String name;
- @Size(min = 0, max = 300, message = "length should not exceed 300 characters.")
- private String description;
-
- public ComputeDetailsDto() {
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getDescription() {
- return description;
- }
+ @NotBlank(message = "is mandatory and should not be empty")
+ @Size(min = 0, max = 30, message = "length should not exceed 30 characters.")
+ private String name;
+ @Size(min = 0, max = 300, message = "length should not exceed 300 characters.")
+ private String description;
- public void setDescription(String description) {
- this.description = description;
- }
}
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-
-public class ComputeDto {
- private String name;
- private String id;
- private String description;
- private boolean associatedToDeploymentFlavor;
-
- public boolean isAssociatedToDeploymentFlavor() {
- return associatedToDeploymentFlavor;
- }
-
- public void setAssociatedToDeploymentFlavor(boolean associatedToDeploymentFlavor) {
- this.associatedToDeploymentFlavor = associatedToDeploymentFlavor;
- }
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
- public String getDescription() {
- return description;
- }
+import lombok.Data;
- public void setDescription(String description) {
- this.description = description;
- }
+@Data
+public class ComputeDto {
+ private String name;
+ private String id;
+ private String description;
+ private boolean associatedToDeploymentFlavor;
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+@Data
public class DeploymentFlavorCreationDto {
- private String deploymentFlavorId;
-
- public String getDeploymentFlavorId() {
- return deploymentFlavorId;
- }
-
- public void setDeploymentFlavorId(String deploymentFlavorId) {
- this.deploymentFlavorId = deploymentFlavorId;
- }
+ private String deploymentFlavorId;
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-public class DeploymentFlavorDto extends DeploymentFlavorRequestDto implements CompositionDataEntityDto {
+import lombok.Data;
+@Data
+public class DeploymentFlavorDto extends DeploymentFlavorRequestDto implements CompositionDataEntityDto {
private String id;
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+@Data
public class DeploymentFlavorListResponseDto {
- public String getModel() {
- return model;
- }
-
- public void setModel(String model) {
- this.model = model;
- }
-
- private String model;
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- private String description;
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- private String id;
+ private String model;
+ private String description;
+ private String id;
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.openecomp.sdc.vendorsoftwareproduct.types.composition.ComponentComputeAssociation;
import javax.validation.constraints.Size;
import java.util.List;
+@Data
public class DeploymentFlavorRequestDto {
@NotBlank(message = "is mandatory and should not be empty")
- @Size(min = 0, max = 30,message = "length should not exceed 30 characters.")
+ @Size(min = 0, max = 30, message = "length should not exceed 30 characters.")
private String model;
- @Size(min = 0, max = 300,message = "length should not exceed 300 characters.")
+ @Size(min = 0, max = 300, message = "length should not exceed 300 characters.")
private String description;
private String featureGroupId;
private List<ComponentComputeAssociation> componentComputeAssociations;
- public String getModel() {
- return model;
- }
-
- public void setModel(String model) {
- this.model = model;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public String getFeatureGroupId() {
- return featureGroupId;
- }
-
- public void setFeatureGroupId(String featureGroupId) {
- this.featureGroupId = featureGroupId;
- }
-
- public List<ComponentComputeAssociation> getComponentComputeAssociations() {
- return componentComputeAssociations;
- }
-
- public void setComponentComputeAssociations(List<ComponentComputeAssociation> componentComputeAssociations) {
- this.componentComputeAssociations = componentComputeAssociations;
- }
-
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+
import java.util.Set;
+@Data
public class DeploymentFlavorValidationResultDto {
- private boolean valid;
- private Set<CompositionEntityValidationDataDto> validationData;
-
- public boolean isValid() {
- return valid;
- }
-
- public void setValid(boolean valid) {
- this.valid = valid;
- }
-
- public Set<CompositionEntityValidationDataDto> getValidationData() {
- return validationData;
- }
-
- public void setValidationData(Set<CompositionEntityValidationDataDto> validationData) {
- this.validationData = validationData;
- }
+ private boolean valid;
+ private Set<CompositionEntityValidationDataDto> validationData;
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
import org.openecomp.sdc.vendorsoftwareproduct.types.candidateheat.Module;
-import java.util.ArrayList;
import java.util.List;
/**
* @author Avrahamg
* @since November 07, 2016
*/
-public class FileDataStructureDto {
- private List<Module> modules = new ArrayList<>();
- private List<String> unassigned = new ArrayList<>();
- private List<String> artifacts = new ArrayList<>();
- private List<String> nested = new ArrayList<>();
-
- public List<Module> getModules() {
- return modules;
- }
-
- public void setModules(List<Module> modules) {
- this.modules = modules;
- }
-
- public List<String> getUnassigned() {
- return unassigned;
- }
- public void setUnassigned(List<String> unassigned) {
- this.unassigned = unassigned;
- }
-
- public List<String> getArtifacts() {
- return artifacts;
- }
-
- public void setArtifacts(List<String> artifacts) {
- this.artifacts = artifacts;
- }
-
- public List<String> getNested() {
- return nested;
- }
-
- public void setNested(List<String> nested) {
- this.nested = nested;
- }
+@Data
+public class FileDataStructureDto {
+ private List<Module> modules;
+ private List<String> unassigned;
+ private List<String> artifacts;
+ private List<String> nested;
}
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-
-public class ImageCreationDto {
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
- private String id;
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
- public String getId() {
- return id;
- }
+import lombok.Data;
- public void setId(String id) {
- this.id = id;
- }
+@Data
+public class ImageCreationDto {
+ private String id;
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+@Data
public class ImageDto extends ImageRequestDto implements CompositionDataEntityDto {
- private String id;
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
+ private String id;
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
+@Data
public class ImageRequestDto implements CompositionDataEntityDto {
- @NotBlank(message = "is mandatory and should not be empty")
- private String fileName;
- private String description;
- /*private String version;
- private String format;
- private String md5;
- //private String providedBy;*/
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public String getFileName() {
- return fileName;
- }
-
- public void setFileName(String fileName) {
- this.fileName = fileName;
- }
-
- /*public String getMd5() {
- return md5;
- }
-
- public void setMd5(String md5) {
- this.md5 = md5;
- }
-
- public String getFormat() {
- return format;
- }
-
- public void setFormat(String format) {
- this.format = format;
- }
-
- public String getVersion() {
- return version;
- }
-
- public void setVersion(String version) {
- this.version = version;
- }
-
- public String getFileName() {
- return fileName;
- }
-
- public void setFileName(String fileName) {
- this.fileName = fileName;
- }
-
- /*public String getProvidedBy() {
- return providedBy;
- }
-
- public void setProvidedBy(String providedBy) {
- this.providedBy = providedBy;
- }*/
+ @NotBlank(message = "is mandatory and should not be empty")
+ private String fileName;
+ private String description;
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-public class MonitoringUploadStatusDto {
- private String snmpTrap;
- private String snmpPoll;
- private String vesEvent;
-
-
- public MonitoringUploadStatusDto() {
- }
-
- public String getSnmpTrap() {
- return snmpTrap;
- }
-
- public void setSnmpTrap(String snmpTrap) {
- this.snmpTrap = snmpTrap;
- }
+import lombok.Data;
- public String getSnmpPoll() {
- return snmpPoll;
- }
-
- public String getVesEvent() {
- return vesEvent;
- }
-
- public void setVesEvent(String vesEvent) {
- this.vesEvent = vesEvent;
- }
-
- public void setSnmpPoll(String snmpPoll) {
- this.snmpPoll = snmpPoll;
+@Data
+public class MonitoringUploadStatusDto {
+ private String snmpTrap;
+ private String snmpPoll;
+ private String vesEvent;
- }
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-public class NetworkDto extends NetworkRequestDto implements CompositionDataEntityDto {
-
- private String id;
+import lombok.Data;
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
+@Data
+public class NetworkDto extends NetworkRequestDto implements CompositionDataEntityDto {
+ private String id;
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+
import javax.validation.constraints.NotNull;
+@Data
public class NetworkRequestDto {
- @NotNull
- private String name;
- @NotNull
- private boolean dhcp;
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public boolean isDhcp() {
- return dhcp;
- }
+ @NotNull
+ private String name;
+ @NotNull
+ private boolean dhcp;
- public void setDhcp(boolean dhcp) {
- this.dhcp = dhcp;
- }
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+@Data
public class NicCreationResponseDto {
- private String nicId;
-
- public String getNicId() {
- return nicId;
- }
-
- public void setNicId(String nicId) {
- this.nicId = nicId;
- }
+ private String nicId;
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-public class NicDto extends NicRequestDto implements CompositionDataEntityDto {
-
- private String id;
- private String networkName;
-
- public String getId() {
- return id;
- }
+import lombok.Data;
- public void setId(String id) {
- this.id = id;
- }
-
- public String getNetworkName() {
- return networkName;
- }
-
- public void setNetworkName(String networkName) {
- this.networkName = networkName;
- }
+@Data
+public class NicDto extends NicRequestDto implements CompositionDataEntityDto {
+ private String id;
+ private String networkName;
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.openecomp.sdcrests.vendorsoftwareproducts.types.validation.ValidateString;
import javax.validation.constraints.NotNull;
+@Data
public class NicRequestDto {
- @NotBlank(message = "is mandatory and should not be empty")
- private String name;
- private String description;
- private String networkId;
- @NotNull
- @ValidateString(acceptedValues = {"External", "Internal"}, message = "doesn't "
- + "meet the expected attribute value.", isCaseSensitive = true)
- private String networkType;
+ @NotBlank(message = "is mandatory and should not be empty")
+ private String name;
+ private String description;
+ private String networkId;
+ @NotNull
+ @ValidateString(acceptedValues = {"External", "Internal"}, message = "doesn't "
+ + "meet the expected attribute value.", isCaseSensitive = true)
+ private String networkType;
- private String networkDescription;
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public String getNetworkId() {
- return networkId;
- }
-
- public void setNetworkId(String networkId) {
- this.networkId = networkId;
- }
-
- public String getNetworkType(){
- return networkType;
- }
-
- public void setNetworkType(String networkType){
- this.networkType = networkType;
- }
-
- public String getNetworkDescription(){
- return networkDescription;
- }
-
- public void setNetworkDescription(String networkDescription){
- this.networkDescription = networkDescription;
- }
+ private String networkDescription;
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
* Created by Talio on 11/13/2016.
*/
public enum OrchestrationTemplateAction {
- Process
+ Process
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
import org.openecomp.sdc.datatypes.error.ErrorMessage;
import org.openecomp.sdc.vendorsoftwareproduct.types.UploadFileStatus;
/**
* Created by TALIO on 4/27/2016.
*/
+@Data
public class OrchestrationTemplateActionResponseDto {
- private List<String> fileNames;
- private Map<String, List<ErrorMessage>> errors;
- private UploadFileStatus status;
-
- public Map<String, List<ErrorMessage>> getErrors() {
- return errors;
- }
-
- public void setErrors(Map<String, List<ErrorMessage>> errors) {
- this.errors = errors;
- }
-
- public UploadFileStatus getStatus() {
- return status;
- }
-
- public void setStatus(UploadFileStatus status) {
- this.status = status;
- }
-
- public List<String> getFileNames() {
- return fileNames;
- }
-
- public void setFileNames(List<String> fileNames) {
- this.fileNames = fileNames;
- }
-
- public void addNewFileToList(String filename) {
- this.fileNames.add(filename);
- }
-
+ private List<String> fileNames;
+ private Map<String, List<ErrorMessage>> errors;
+ private UploadFileStatus status;
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+
/**
* Created by TALIO on 4/25/2016.
*/
+@Data
public class PackageInfoDto {
- private String displayName;
- private String description;
- private String vspName;
- private String version;
- private String packageId;
- private String category;
- private String subCategory;
- private String vendorName;
- private String vendorRelease;
- private String packageChecksum;
- private String packageType;
-
- public String getDisplayName() {
- return displayName;
- }
-
- public void setDisplayName(String displayName) {
- this.displayName = displayName;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public String getVersion() {
- return version;
- }
-
- public void setVersion(String version) {
- this.version = version;
- }
-
- public String getPackageId() {
- return packageId;
- }
-
- public void setPackageId(String packageId) {
- this.packageId = packageId;
- }
-
- public String getCategory() {
- return category;
- }
-
- public void setCategory(String category) {
- this.category = category;
- }
-
- public String getSubCategory() {
- return subCategory;
- }
-
- public void setSubCategory(String subCategory) {
- this.subCategory = subCategory;
- }
-
- public String getVendorName() {
- return vendorName;
- }
-
- public void setVendorName(String vendorName) {
- this.vendorName = vendorName;
- }
-
- public String getVendorRelease() {
- return vendorRelease;
- }
-
- public void setVendorRelease(String vendorRelease) {
- this.vendorRelease = vendorRelease;
- }
-
- public String getPackageChecksum() {
- return packageChecksum;
- }
-
- public void setPackageChecksum(String packageChecksum) {
- this.packageChecksum = packageChecksum;
- }
-
- public String getPackageType() {
- return packageType;
- }
-
- public void setPackageType(String packageType) {
- this.packageType = packageType;
- }
-
- public String getVspName() {
- return vspName;
- }
+ private String displayName;
+ private String description;
+ private String vspName;
+ private String version;
+ private String packageId;
+ private String category;
+ private String subCategory;
+ private String vendorName;
+ private String vendorRelease;
+ private String packageChecksum;
+ private String packageType;
- public void setVspName(String vendorName) {
- this.vspName = vendorName;
- }
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-public class ProcessEntityDto extends ProcessRequestDto {
- private String id;
- private String artifactName;
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
+import lombok.Data;
- public String getArtifactName() {
- return artifactName;
- }
-
- public void setArtifactName(String artifactName) {
- this.artifactName = artifactName;
- }
+@Data
+public class ProcessEntityDto extends ProcessRequestDto {
+ private String id;
+ private String artifactName;
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ProcessType;
import javax.validation.constraints.NotNull;
+@Data
public class ProcessRequestDto {
- @NotNull
- private String name;
+ @NotNull
+ private String name;
+ private String description;
+ private ProcessType type;
- private String description;
-
- private ProcessType type;
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public ProcessType getType() { return type; }
-
- public void setType(ProcessType type) { this.type = type; }
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+
import java.util.HashMap;
/**
* Created by ayalaben on 9/26/2017
*/
+@Data
public class QuestionnaireDto {
- private String id;
-
- public HashMap<String, String> getQuestionareData() {
- return questionareData;
- }
-
- public void setQuestionareData(HashMap<String, String> questionareData) {
- this.questionareData = questionareData;
- }
-
- private HashMap<String,String> questionareData;
+ private String id;
+ private HashMap<String, String> questionareData;
- public String getId() {
- return id;
- }
+ public HashMap<String, String> getQuestionareData() {
+ return questionareData;
+ }
- public void setId(String id) {
- this.id = id;
- }
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
import org.openecomp.sdc.datatypes.error.ErrorMessage;
+@Data
public class QuestionnaireResponseDto {
- private String schema;
- private String data;
- private ErrorMessage errorMessage;
+ private String schema;
+ private String data;
+ private ErrorMessage errorMessage;
- public String getSchema() {
- return schema;
- }
-
- public void setSchema(String schema) {
- this.schema = schema;
- }
-
- public String getData() {
- return data;
- }
-
- public void setData(String data) {
- this.data = data;
- }
-
- public ErrorMessage getErrorMessage() {
- return errorMessage;
- }
-
- public void setErrorMessage(ErrorMessage errorMessage) {
- this.errorMessage = errorMessage;
- }
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+
import java.util.Set;
+@Data
public class QuestionnaireValidationResultDto {
- private boolean valid;
- private Set<CompositionEntityValidationDataDto> validationData;
-
- public boolean isValid() {
- return valid;
- }
-
- public void setValid(boolean valid) {
- this.valid = valid;
- }
-
- public Set<CompositionEntityValidationDataDto> getValidationData() {
- return validationData;
- }
+ private boolean valid;
+ private Set<CompositionEntityValidationDataDto> validationData;
- public void setValidationData(Set<CompositionEntityValidationDataDto> validationData) {
- this.validationData = validationData;
- }
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+
/**
* Created by TALIO on 4/20/2016.
*/
+@Data
public class TranslatedFileDataDto {
- private String displayName;
- private String version;
- private String category;
- private String subcategory;
- private String vendorName;
- private String vendorRelease;
- private String packageChecksum;
- private String packageType;
-
- public String getDisplayName() {
- return displayName;
- }
-
- public void setDisplayName(String displayName) {
- this.displayName = displayName;
- }
-
- public String getVersion() {
- return version;
- }
-
- public void setVersion(String version) {
- this.version = version;
- }
-
- public String getCategory() {
- return category;
- }
-
- public void setCategory(String category) {
- this.category = category;
- }
-
- public String getSubcategory() {
- return subcategory;
- }
-
- public void setSubcategory(String subcategory) {
- this.subcategory = subcategory;
- }
-
- public String getVandorName() {
- return vendorName;
- }
-
- public void setVandorName(String vandorName) {
- this.vendorName = vandorName;
- }
-
- public String getVendorRelease() {
- return vendorRelease;
- }
-
- public void setVendorRelease(String vendorRelease) {
- this.vendorRelease = vendorRelease;
- }
-
- public String getPackageChecksum() {
- return packageChecksum;
- }
-
- public void setPackageChecksum(String packageChecksum) {
- this.packageChecksum = packageChecksum;
- }
-
- public String getPackageType() {
- return packageType;
- }
+ private String displayName;
+ private String version;
+ private String category;
+ private String subcategory;
+ private String vendorName;
+ private String vendorRelease;
+ private String packageChecksum;
+ private String packageType;
- public void setPackageType(String packageType) {
- this.packageType = packageType;
- }
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
import org.openecomp.sdc.datatypes.error.ErrorMessage;
import org.openecomp.sdc.vendorsoftwareproduct.types.UploadFileStatus;
/**
* Created by TALIO on 4/27/2016.
*/
+@Data
public class UploadFileResponseDto {
- private Map<String, List<ErrorMessage>> errors;
- private UploadFileStatus status;
- private String onboardingOrigin;
- private String networkPackageName;
-
- public Map<String, List<ErrorMessage>> getErrors() {
- return errors;
- }
-
- public void setErrors(Map<String, List<ErrorMessage>> errors) {
- this.errors = errors;
- }
-
- public UploadFileStatus getStatus() {
- return status;
- }
-
- public void setStatus(UploadFileStatus status) {
- this.status = status;
- }
-
- public String getOnboardingOrigin() {
- return onboardingOrigin;
- }
-
- public void setOnboardingOrigin(String onboardingOrigin) {
- this.onboardingOrigin = onboardingOrigin;
- }
-
- public String getNetworkPackageName() {
- return networkPackageName;
- }
+ private Map<String, List<ErrorMessage>> errors;
+ private UploadFileStatus status;
+ private String onboardingOrigin;
+ private String networkPackageName;
- public void setNetworkPackageName(String networkPackageName) {
- this.networkPackageName = networkPackageName;
- }
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
import org.openecomp.sdcrests.common.types.ErrorCodeDto;
import org.openecomp.sdcrests.common.types.ErrorMessageDto;
import java.util.List;
import java.util.Map;
+@Data
public class ValidationResponseDto {
- private boolean valid;
- private Collection<ErrorCodeDto> vspErrors;
- private Collection<ErrorCodeDto> licensingDataErrors;
- private Map<String, List<ErrorMessageDto>> uploadDataErrors;
- private QuestionnaireValidationResultDto questionnaireValidationResult;
- private ComponentValidationResultDto componentValidationResult;
- private DeploymentFlavorValidationResultDto deploymentFlavorValidationResult;
-
- public boolean isValid() {
- return valid;
- }
-
- public void setValid(boolean valid) {
- this.valid = valid;
- }
-
- public Collection<ErrorCodeDto> getVspErrors() {
- return vspErrors;
- }
-
- public void setVspErrors(Collection<ErrorCodeDto> vspErrors) {
- this.vspErrors = vspErrors;
- }
-
- public Collection<ErrorCodeDto> getLicensingDataErrors() {
- return licensingDataErrors;
- }
-
- public void setLicensingDataErrors(Collection<ErrorCodeDto> licensingDataErrors) {
- this.licensingDataErrors = licensingDataErrors;
- }
-
- public Map<String, List<ErrorMessageDto>> getUploadDataErrors() {
- return uploadDataErrors;
- }
-
- public void setUploadDataErrors(Map<String, List<ErrorMessageDto>> uploadDataErrors) {
- this.uploadDataErrors = uploadDataErrors;
- }
-
- public QuestionnaireValidationResultDto getQuestionnaireValidationResult() {
- return questionnaireValidationResult;
- }
-
- public void setQuestionnaireValidationResult(
- QuestionnaireValidationResultDto questionnaireValidationResult) {
- this.questionnaireValidationResult = questionnaireValidationResult;
- }
-
- public ComponentValidationResultDto getComponentValidationResult() {
- return componentValidationResult;
- }
-
- public void setComponentValidationResult(
- ComponentValidationResultDto componentValidationResult) {
- this.componentValidationResult = componentValidationResult;
- }
-
- public DeploymentFlavorValidationResultDto getDeploymentFlavorValidationResult() {
- return deploymentFlavorValidationResult;
- }
-
- public void setDeploymentFlavorValidationResult(
- DeploymentFlavorValidationResultDto deploymentFlavorValidationResult) {
- this.deploymentFlavorValidationResult = deploymentFlavorValidationResult;
- }
+ private boolean valid;
+ private Collection<ErrorCodeDto> vspErrors;
+ private Collection<ErrorCodeDto> licensingDataErrors;
+ private Map<String, List<ErrorMessageDto>> uploadDataErrors;
+ private QuestionnaireValidationResultDto questionnaireValidationResult;
+ private ComponentValidationResultDto componentValidationResult;
+ private DeploymentFlavorValidationResultDto deploymentFlavorValidationResult;
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
public enum VendorSoftwareProductAction {
- Submit,
- Create_Package;
+ Submit,
+ Create_Package
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
import org.openecomp.sdcrests.item.types.SubmitRequestDto;
/**
* Created by TALIO on 4/20/2016.
*/
+@Data
public class VersionSoftwareProductActionRequestDto {
- private VendorSoftwareProductAction action;
- private SubmitRequestDto submitRequest;
-
- public VendorSoftwareProductAction getAction() {
- return action;
- }
-
- public void setAction(VendorSoftwareProductAction action) {
- this.action = action;
- }
-
- public SubmitRequestDto getSubmitRequest() {
- return submitRequest;
- }
+ private VendorSoftwareProductAction action;
+ private SubmitRequestDto submitRequest;
- public void setSubmitRequest(SubmitRequestDto submitRequest) {
- this.submitRequest = submitRequest;
- }
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
import org.openecomp.sdcrests.vendorsoftwareproducts.types.validation.ValidateString;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
+@Data
public class VmSizing {
- @Min(value = 1, message = "should be integer and > 0")
- @Max(value = 16, message = "should be integer and <= 16")
- private int numOfCPUs;
- @Min(value = 1, message = "should be integer and > 0")
- private int fileSystemSizeGB;
- @Min(value = 1, message = "should be integer and > 0")
- private int persistentStorageVolumeSize;
- @Min(value = 1, message = "should be integer and > 0")
- private int ioOperationsPerSec;
- @ValidateString(acceptedValues = {"1:1", "4:1", "16:1"}, message = "doesn't meet the expected "
- + "attribute value.")
- private String cpuOverSubscriptionRatio;
- @ValidateString(acceptedValues = {"1", "2", "4", "8"}, message = "doesn't meet the expected "
- + "attribute value.")
- private String memoryRAM;
-
- public int getNumOfCPUs() {
- return numOfCPUs;
- }
-
- public void setNumOfCPUs(int numOfCPUs) {
- this.numOfCPUs = numOfCPUs;
- }
-
- public int getFileSystemSizeGB() {
- return fileSystemSizeGB;
- }
-
- public void setFileSystemSizeGB(int fileSystemSizeGB) {
- this.fileSystemSizeGB = fileSystemSizeGB;
- }
-
- public int getPersistentStorageVolumeSize() {
- return persistentStorageVolumeSize;
- }
-
- public void setPersistentStorageVolumeSize(int persistentStorageVolumeSize) {
- this.persistentStorageVolumeSize = persistentStorageVolumeSize;
- }
-
- public int getIoOperationsPerSec() {
- return ioOperationsPerSec;
- }
-
- public void setIoOperationsPerSec(int ioOperationsPerSec) {
- this.ioOperationsPerSec = ioOperationsPerSec;
- }
-
- public String getCpuOverSubscriptionRatio() {
- return cpuOverSubscriptionRatio;
- }
-
- public void setCpuOverSubscriptionRatio(String cpuOverSubscriptionRatio) {
- this.cpuOverSubscriptionRatio = cpuOverSubscriptionRatio;
- }
-
- public String getMemoryRAM() {
- return memoryRAM;
- }
+ @Min(value = 1, message = "should be integer and > 0")
+ @Max(value = 16, message = "should be integer and <= 16")
+ private int numOfCPUs;
+ @Min(value = 1, message = "should be integer and > 0")
+ private int fileSystemSizeGB;
+ @Min(value = 1, message = "should be integer and > 0")
+ private int persistentStorageVolumeSize;
+ @Min(value = 1, message = "should be integer and > 0")
+ private int ioOperationsPerSec;
+ @ValidateString(acceptedValues = {"1:1", "4:1", "16:1"}, message = "doesn't meet the expected "
+ + "attribute value.")
+ private String cpuOverSubscriptionRatio;
+ @ValidateString(acceptedValues = {"1", "2", "4", "8"}, message = "doesn't meet the expected "
+ + "attribute value.")
+ private String memoryRAM;
- public void setMemoryRAM(String memoryRAM) {
- this.memoryRAM = memoryRAM;
- }
}
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-
-public class VspComputeDto {
- private String name;
- private String componentId;
- private String computeFlavorId;
-
- public String getName() {
- return name;
- }
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
- public void setName(String name) {
- this.name = name;
- }
-
- public String getComponentId() {
- return componentId;
- }
-
- public void setComponentId(String componentId) {
- this.componentId = componentId;
- }
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
- public String getComputeFlavorId() {
- return computeFlavorId;
- }
+import lombok.Data;
- public void setComputeFlavorId(String computeFlavorId) {
- this.computeFlavorId = computeFlavorId;
- }
+@Data
+public class VspComputeDto {
+ private String name;
+ private String componentId;
+ private String computeFlavorId;
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
import org.openecomp.sdc.vendorsoftwareproduct.types.LicensingData;
import javax.validation.constraints.NotNull;
+@Data
public class VspDescriptionDto {
- @NotNull
- private String name;
- @NotNull
- private String description;
- private String icon;
- @NotNull
- private String category;
- @NotNull
- private String subCategory;
- @NotNull
- private String vendorName;
- @NotNull
- private String vendorId; // this will be populated with vlm id
- private String licensingVersion; // this will be populated with vlm version
- private LicensingData licensingData;
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public String getIcon() {
- return this.icon;
- }
-
- public void setIcon(String icon) {
- this.icon = icon;
- }
-
- public String getCategory() {
- return category;
- }
-
- public void setCategory(String category) {
- this.category = category;
- }
-
- public String getSubCategory() {
- return subCategory;
- }
-
- public void setSubCategory(String subCategory) {
- this.subCategory = subCategory;
- }
-
- public String getVendorName() {
- return vendorName;
- }
-
- public void setVendorName(String vendorName) {
- this.vendorName = vendorName;
- }
-
- public String getVendorId() {
- return vendorId;
- }
-
- public void setVendorId(String vendorId) {
- this.vendorId = vendorId;
- }
-
- public String getLicensingVersion() {
- return licensingVersion;
- }
-
- public void setLicensingVersion(String licensingVersion) {
- this.licensingVersion = licensingVersion;
- }
-
- public LicensingData getLicensingData() {
- return licensingData;
- }
-
- public void setLicensingData(LicensingData licensingData) {
- this.licensingData = licensingData;
- }
+ @NotNull
+ private String name;
+ @NotNull
+ private String description;
+ private String icon;
+ @NotNull
+ private String category;
+ @NotNull
+ private String subCategory;
+ @NotNull
+ private String vendorName;
+ @NotNull
+ private String vendorId; // this will be populated with vlm id
+ private String licensingVersion; // this will be populated with vlm version
+ private LicensingData licensingData;
}
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
import io.swagger.annotations.ApiModel;
+import lombok.Data;
import org.openecomp.sdc.heat.datatypes.structure.ValidationStructureList;
/**
* Created by TALIO on 4/25/2016.
*/
+
+@Data
@ApiModel(value = "VspDetails")
public class VspDetailsDto extends VspRequestDto {
private String networkPackageName;
private String owner;
private String status;
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public String getVersion() {
- return version;
- }
-
- public void setVersion(String version) {
- this.version = version;
- }
-
- public ValidationStructureList getValidationData() {
- return validationData;
- }
-
- public void setValidationData(ValidationStructureList validationData) {
- this.validationData = validationData;
- }
-
- public String getCandidateOnboardingOrigin() {
- return candidateOnboardingOrigin;
- }
-
- public void setCandidateOnboardingOrigin(String candidateOnboardingOrigin) {
- this.candidateOnboardingOrigin = candidateOnboardingOrigin;
- }
-
- public String getOnboardingOrigin() {
- return onboardingOrigin;
- }
-
- public void setOnboardingOrigin(String onboardingOrigin) {
- this.onboardingOrigin = onboardingOrigin;
- }
-
- public String getNetworkPackageName() {
- return networkPackageName;
- }
-
- public void setNetworkPackageName(String networkPackageName) {
- this.networkPackageName = networkPackageName;
- }
-
- public String getOwner() {
- return owner;
- }
-
- public void setOwner(String owner) {
- this.owner = owner;
- }
-
- public String getStatus() {
- return status;
- }
-
- public void setStatus(String status) {
- this.status = status;
- }
}
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* 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.
+*/
+
package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+import lombok.Data;
+
import javax.validation.constraints.NotNull;
+@Data
public class VspRequestDto extends VspDescriptionDto {
- @NotNull
- private String onboardingMethod;
-
- public String getOnboardingMethod() {
- return onboardingMethod;
- }
+ @NotNull
+ private String onboardingMethod;
- public void setOnboardingMethod(String onboardingMethod) {
- this.onboardingMethod = onboardingMethod;
- }
}