Merge "Workflow Recipe Lookup"
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / onap / so / bpmn / servicedecomposition / entities / GeneralBuildingBlock.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.bpmn.servicedecomposition.entities;
22
23 import java.io.Serializable;
24 import java.util.Map;
25
26 import org.onap.so.bpmn.servicedecomposition.bbobjects.CloudRegion;
27 import org.onap.so.bpmn.servicedecomposition.bbobjects.Customer;
28 import org.onap.so.bpmn.servicedecomposition.bbobjects.ServiceInstance;
29 import org.onap.so.bpmn.servicedecomposition.bbobjects.Tenant;
30 import org.onap.so.bpmn.servicedecomposition.generalobjects.OrchestrationContext;
31 import org.onap.so.bpmn.servicedecomposition.generalobjects.RequestContext;
32
33 public class GeneralBuildingBlock implements Serializable {
34         private static final String INVALID_INPUT_MISSING = "Expected building block input of \"%s\" not found in decomposition";
35         private static final String INVALID_INPUT_CLASS_CAST = "Expected building block input of \"%s\" was the wrong object type in the decomposition";
36
37         private static final long serialVersionUID = -429247436428110843L;
38
39         private RequestContext requestContext;
40         private OrchestrationContext orchContext;
41         private Map<String, String> userInput;
42         private CloudRegion cloudRegion;
43         private Tenant tenant;
44
45         private Customer customer;
46         private ServiceInstance serviceInstance;
47
48         
49         public Tenant getTenant() {
50                 return tenant;
51         }
52
53         public void setTenant(Tenant tenant) {
54                 this.tenant = tenant;
55         }
56
57         public CloudRegion getCloudRegion() {
58                 return cloudRegion;
59         }
60
61         public void setCloudRegion(CloudRegion cloudRegion) {
62                 this.cloudRegion = cloudRegion;
63         }
64
65         public RequestContext getRequestContext() {
66                 return requestContext;
67         }
68
69         public void setRequestContext(RequestContext requestContext) {
70                 this.requestContext = requestContext;
71         }
72
73         public OrchestrationContext getOrchContext() {
74                 return orchContext;
75         }
76
77         public void setOrchContext(OrchestrationContext orchContext) {
78                 this.orchContext = orchContext;
79         }
80
81         public Map<String, String> getUserInput() {
82                 return userInput;
83         }
84
85         public void setUserInput(Map<String, String> userInput) {
86                 this.userInput = userInput;
87         }
88
89         public Customer getCustomer() {
90                 return customer;
91         }
92
93         public void setCustomer(Customer customer) {
94                 this.customer = customer;
95         }
96
97         public ServiceInstance getServiceInstance() {
98                 return serviceInstance;
99         }
100
101         public void setServiceInstance(ServiceInstance serviceInstance) {
102                 this.serviceInstance = serviceInstance;
103         }
104 }