Sync Integ to Master
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / components / distribution / engine / DmaapNotificationDataImpl.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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.openecomp.sdc.be.components.distribution.engine;
22
23 /* Example {
24              "operationalEnvironmentId": "28122015552391",
25              "operationalEnvironmentName": "Operational Environment Name",
26              "operationalEnvironmentType": "ECOMP",
27              "tenantContext": "TEST",
28              "workloadContext": "ECOMP_E2E-IST",
29              "action": "Create"
30        }*/
31 public class DmaapNotificationDataImpl implements IDmaapNotificationData, IDmaapAuditNotificationData {
32
33     private String operationalEnvironmentId;
34     private String operationalEnvironmentType;
35     private String action;
36     private String operationalEnvironmentName;
37     private String tenantContext;
38
39     @Override
40     public String getOperationalEnvironmentId() {
41         return operationalEnvironmentId;
42     }
43
44     @Override
45     public OperationaEnvironmentTypeEnum getOperationalEnvironmentType() {
46         return OperationaEnvironmentTypeEnum.findByName(operationalEnvironmentType);
47     }
48
49     @Override
50     public DmaapActionEnum getAction() {
51         return DmaapActionEnum.findByName(action);
52     }
53
54     @Override
55     public String getOperationalEnvironmentName() {
56         return operationalEnvironmentName;
57     }
58
59     @Override
60     public String getTenantContext() {
61         return tenantContext;
62     }
63
64
65 }