8760f4b526c4e29c4bd38e01206531b70412ee87
[appc.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * APPC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * Copyright (C) 2017 Amdocs
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  * 
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  * 
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
21  */
22
23 package org.openecomp.appc.workflow.objects;
24
25 public class WorkflowExistsOutput {
26
27         private boolean mappingExist ;
28         private boolean dgExist;
29         private String workflowModule;
30         private String workflowName;
31         private String workflowVersion;
32
33
34         public WorkflowExistsOutput() {
35         }
36
37         public WorkflowExistsOutput(boolean mappingExist, boolean dgExist) {
38                 this.mappingExist = mappingExist;
39                 this.dgExist = dgExist;
40         }
41
42         public boolean isMappingExist() {
43                 return mappingExist;
44         }
45
46         public void setMappingExist(boolean mappingExist) {
47                 this.mappingExist = mappingExist;
48         }
49
50         public boolean isDgExist() {
51                 return dgExist;
52         }
53
54         public void setDgExist(boolean dgExist) {
55                 this.dgExist = dgExist;
56         }
57
58         public String getWorkflowName() {
59                 return workflowName;
60         }
61
62         public void setWorkflowName(String workflowName) {
63                 this.workflowName = workflowName;
64         }
65
66         public String getWorkflowVersion() {
67                 return workflowVersion;
68         }
69
70         public void setWorkflowVersion(String workflowVersion) {
71                 this.workflowVersion = workflowVersion;
72         }
73
74         public String getWorkflowModule() {
75                 return workflowModule;
76         }
77
78         public void setWorkflowModule(String workflowModule) {
79                 this.workflowModule = workflowModule;
80         }
81         public boolean exists(){
82                 return mappingExist && dgExist;
83         }
84
85         @Override
86         public String toString() {
87                 return "WorkflowExistsOutput{" +
88                                 "mappingExist=" + mappingExist +
89                                 ", dgExist=" + dgExist +
90                                 ", workflowModule='" + workflowModule + '\'' +
91                                 ", workflowName='" + workflowName + '\'' +
92                                 ", workflowVersion='" + workflowVersion + '\'' +
93                                 '}';
94         }
95 }