Second part of onap rename
[appc.git] / appc-dispatcher / appc-workflow-management / appc-workflow-management-api / src / main / java / org / onap / appc / workflow / objects / WorkflowExistsOutput.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
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
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
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.
20  * 
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25 package org.onap.appc.workflow.objects;
26
27 public class WorkflowExistsOutput {
28
29         private boolean mappingExist ;
30         private boolean dgExist;
31         private String workflowModule;
32         private String workflowName;
33         private String workflowVersion;
34
35
36         public WorkflowExistsOutput() {
37         }
38
39         public WorkflowExistsOutput(boolean mappingExist, boolean dgExist) {
40                 this.mappingExist = mappingExist;
41                 this.dgExist = dgExist;
42         }
43
44         public boolean isMappingExist() {
45                 return mappingExist;
46         }
47
48         public void setMappingExist(boolean mappingExist) {
49                 this.mappingExist = mappingExist;
50         }
51
52         public boolean isDgExist() {
53                 return dgExist;
54         }
55
56         public void setDgExist(boolean dgExist) {
57                 this.dgExist = dgExist;
58         }
59
60         public String getWorkflowName() {
61                 return workflowName;
62         }
63
64         public void setWorkflowName(String workflowName) {
65                 this.workflowName = workflowName;
66         }
67
68         public String getWorkflowVersion() {
69                 return workflowVersion;
70         }
71
72         public void setWorkflowVersion(String workflowVersion) {
73                 this.workflowVersion = workflowVersion;
74         }
75
76         public String getWorkflowModule() {
77                 return workflowModule;
78         }
79
80         public void setWorkflowModule(String workflowModule) {
81                 this.workflowModule = workflowModule;
82         }
83         public boolean exists(){
84                 return mappingExist && dgExist;
85         }
86
87         @Override
88         public String toString() {
89                 return "WorkflowExistsOutput{" +
90                                 "mappingExist=" + mappingExist +
91                                 ", dgExist=" + dgExist +
92                                 ", workflowModule='" + workflowModule + '\'' +
93                                 ", workflowName='" + workflowName + '\'' +
94                                 ", workflowVersion='" + workflowVersion + '\'' +
95                                 '}';
96         }
97 }