210795be4fc161ee7f4d0f2a995db2f68f7f4c53
[clamp.git] / src / main / java / org / onap / clamp / clds / model / prop / ModelBpmnEntry.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP CLAMP
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights
6  *                             reserved.
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  * ===================================================================
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  */
23
24 package org.onap.clamp.clds.model.prop;
25
26 import com.att.eelf.configuration.EELFLogger;
27 import com.att.eelf.configuration.EELFManager;
28
29 /**
30  * Model BPMN property entry
31  * <p>
32  * Example json: {"collector":[{"id":"Collector_11r50j1",
33  * "from":"StartEvent_1"}],"stringMatch":[{"id":"StringMatch_0h6cbdv"],"policy":
34  * [{"id":"Policy_0oxeocn", "from":"StringMatch_0h6cbdv"}]}
35  */
36 public class ModelBpmnEntry {
37     protected static final EELFLogger       logger      = EELFManager.getInstance().getLogger(ModelBpmnEntry.class);
38     protected static final EELFLogger auditLogger = EELFManager.getInstance().getAuditLogger();
39
40     private String                  type;
41     private String                  id;
42     private String                  fromId;
43
44     /**
45      * Parse the json so that the "id" and "from" fields can be retrieved on
46      * demand.
47      *
48      * @param type
49      * @param id
50      * @param fromId
51      */
52     public ModelBpmnEntry(String type, String id, String fromId) {
53         this.type = type;
54         this.id = id;
55         this.fromId = fromId;
56     }
57
58     /**
59      * @return the type
60      */
61     public String getType() {
62         return type;
63     }
64
65     /**
66      * @param type
67      *            the type to set
68      */
69     public void setType(String type) {
70         this.type = type;
71     }
72
73     /**
74      * @return the id
75      */
76     public String getId() {
77         return id;
78     }
79
80     /**
81      * @param id
82      *            the id to set
83      */
84     public void setId(String id) {
85         this.id = id;
86     }
87
88     /**
89      * @return the fromId
90      */
91     public String getFromId() {
92         return fromId;
93     }
94
95     /**
96      * @param fromId
97      *            the fromId to set
98      */
99     public void setFromId(String fromId) {
100         this.fromId = fromId;
101     }
102
103 }