2  * ============LICENSE_START=======================================================
 
   4  * ================================================================================
 
   5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 
   6  * ================================================================================
 
   7  * Copyright (C) 2017 Amdocs
 
   8  * =============================================================================
 
   9  * Licensed under the Apache License, Version 2.0 (the "License");
 
  10  * you may not use this file except in compliance with the License.
 
  11  * You may obtain a copy of the License at
 
  13  *      http://www.apache.org/licenses/LICENSE-2.0
 
  15  * Unless required by applicable law or agreed to in writing, software
 
  16  * distributed under the License is distributed on an "AS IS" BASIS,
 
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
  18  * See the License for the specific language governing permissions and
 
  19  * limitations under the License.
 
  21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
 
  22  * ============LICENSE_END=========================================================
 
  25 package org.onap.appc.workflow.objects;
 
  27 public class WorkflowExistsOutput {
 
  29     private boolean mappingExist ;
 
  30     private boolean dgExist;
 
  31     private String workflowModule;
 
  32     private String workflowName;
 
  33     private String workflowVersion;
 
  36     public WorkflowExistsOutput() {
 
  39     public WorkflowExistsOutput(boolean mappingExist, boolean dgExist) {
 
  40         this.mappingExist = mappingExist;
 
  41         this.dgExist = dgExist;
 
  44     public boolean isMappingExist() {
 
  48     public void setMappingExist(boolean mappingExist) {
 
  49         this.mappingExist = mappingExist;
 
  52     public boolean isDgExist() {
 
  56     public void setDgExist(boolean dgExist) {
 
  57         this.dgExist = dgExist;
 
  60     public String getWorkflowName() {
 
  64     public void setWorkflowName(String workflowName) {
 
  65         this.workflowName = workflowName;
 
  68     public String getWorkflowVersion() {
 
  69         return workflowVersion;
 
  72     public void setWorkflowVersion(String workflowVersion) {
 
  73         this.workflowVersion = workflowVersion;
 
  76     public String getWorkflowModule() {
 
  77         return workflowModule;
 
  80     public void setWorkflowModule(String workflowModule) {
 
  81         this.workflowModule = workflowModule;
 
  83     public boolean exists(){
 
  84         return mappingExist && dgExist;
 
  88     public String toString() {
 
  89         return "WorkflowExistsOutput{" +
 
  90                 "mappingExist=" + mappingExist +
 
  91                 ", dgExist=" + dgExist +
 
  92                 ", workflowModule='" + workflowModule + '\'' +
 
  93                 ", workflowName='" + workflowName + '\'' +
 
  94                 ", workflowVersion='" + workflowVersion + '\'' +