content: /*
   * Copyright (c) 2024, Alibaba Cloud;
   * 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 com.aliyun.dataworks.migrationx.domain.dataworks.objects.entity;
  
  import com.aliyun.dataworks.migrationx.domain.dataworks.objects.types.DmObjectType;
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
  import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
  import lombok.ToString;
  
  import java.util.List;
  import java.util.UUID;
  
  /**
   * @author sam.liux
   * @date 2019/09/04
   */
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  @ToString(callSuper = true)
  public class Solution extends DmObject{
      @JacksonXmlProperty(isAttribute = true, localName = "name")
      private String name;
      @JacksonXmlProperty(isAttribute = true, localName = "description")
      private String description;
      @JacksonXmlProperty(localName = "RefBusinessSolution")
      @JacksonXmlElementWrapper(localName = "RefBusinessSolutions")
      private List<RefWorkflowSolution> refWorkflowSolutions;
  
      @JacksonXmlProperty(isAttribute = true, localName = "owner")
      private String owner;
  
      @JacksonXmlProperty(isAttribute = true, localName = "ownerName")
      private String ownerName;
  
      public Solution() {
          super(DmObjectType.SOLUTION);
      }
  
      @Override
      public String getUniqueKey() {
          return UUID.nameUUIDFromBytes(name.getBytes()).toString();
      }
  
      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 List<RefWorkflowSolution> getRefWorkflowSolutions() {
          return refWorkflowSolutions;
      }
  
      public void setRefWorkflowSolutions(
          List<RefWorkflowSolution> refWorkflowSolutions) {
          this.refWorkflowSolutions = refWorkflowSolutions;
      }
  
      public String getOwner() {
          return owner;
      }
  
      public void setOwner(String owner) {
          this.owner = owner;
      }
  
      public String getOwnerName() {
          return ownerName;
      }
  
      public void setOwnerName(String ownerName) {
          this.ownerName = ownerName;
      }
  }
  