+++ /dev/null
-/*-
- * ============LICENSE_START=======================================================
- * ONAP - SO
- * ================================================================================
- * 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=========================================================
- */
-
-package org.openecomp.mso.bpmn.core.domain;\r
-\r
-import java.io.Serializable;\r
-import java.util.ArrayList;\r
-import java.util.Arrays;\r
-import java.util.List;\r
-\r
-import org.json.JSONArray;\r
-\r
-import com.fasterxml.jackson.annotation.JsonIgnore;\r
-import com.fasterxml.jackson.annotation.JsonInclude;\r
-import com.fasterxml.jackson.annotation.JsonRootName;\r
-\r
-/**\r
- * Stores licensing information and is an attribute\r
- * of a <class>HomingSolution</class>\r
- *\r
- */\r
-@JsonRootName("license")\r
-@JsonInclude(JsonInclude.Include.NON_EMPTY)\r
-public class License extends JsonWrapper implements Serializable {\r
-\r
- private static final long serialVersionUID = 1L;\r
-\r
- StringBuilder sb = new StringBuilder();\r
-\r
- @JsonInclude(JsonInclude.Include.NON_EMPTY)\r
- private List<String> entitlementPoolList = new ArrayList<String>();\r
- @JsonInclude(JsonInclude.Include.NON_EMPTY)\r
- private List<String> licenseKeyGroupList = new ArrayList<String>();\r
-\r
-\r
- public List<String> getEntitlementPoolList() {\r
- return entitlementPoolList;\r
- }\r
-\r
- public void setEntitlementPoolList(List<String> entitlementPoolList) {\r
- this.entitlementPoolList = entitlementPoolList;\r
- }\r
-\r
- public List<String> getLicenseKeyGroupList() {\r
- return licenseKeyGroupList;\r
- }\r
-\r
- public void setLicenseKeyGroupList(List<String> licenseKeyGroupList) {\r
- this.licenseKeyGroupList = licenseKeyGroupList;\r
- }\r
-\r
- /**\r
- * This method adds a Entitlement Pool Uuid\r
- * to the EntitlementPoolList\r
- *\r
- * @param the EntitlementPoolUuid\r
- */\r
- public void addEntitlementPool(String entitlementPoolUuid) {\r
- entitlementPoolList.add(entitlementPoolUuid);\r
- }\r
-\r
- /**\r
- * This method adds a License Key Group Uuid\r
- * to the LicenseKeyGroupList\r
- *\r
- * @param the licenseKeyGroupUuid\r
- */\r
- public void addLicenseKeyGroup(String licenseKeyGroupUuid) {\r
- licenseKeyGroupList.add(licenseKeyGroupUuid);\r
- }\r
-\r
- /**\r
- * This method returns the licenseKeyGroupList\r
- * as a json array\r
- *\r
- * @return the strList\r
- */\r
- @JsonIgnore\r
- public JSONArray getLicenseKeyGroupListAsString() {\r
- JSONArray array = new JSONArray(licenseKeyGroupList);\r
- return array;\r
- }\r
-\r
- /**\r
- * This method returns the entitlementPoolList\r
- * as a json array\r
- *\r
- * @return the strList\r
- */\r
- @JsonIgnore\r
- public JSONArray getEntitlementPoolListAsString() {\r
- JSONArray array = new JSONArray(entitlementPoolList);\r
- return array;\r
- }\r
-\r
- /**\r
- * @return the serialversionuid\r
- */\r
- public static long getSerialversionuid() {\r
- return serialVersionUID;\r
- }\r
-\r
-}\r