DMAAP-83 Initial code import
[dmaap/dbcapi.git] / src / main / java / org / onap / dmaap / dbcapi / model / Dmaap.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * org.onap.dmaap
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.dmaap.dbcapi.model;
22
23 import javax.xml.bind.annotation.XmlRootElement;
24
25 import org.apache.log4j.Logger;
26
27 @XmlRootElement
28 public class Dmaap extends DmaapObject {
29         
30         private String version;
31         private String topicNsRoot;
32         private String dmaapName;
33         private String drProvUrl;
34         private String  bridgeAdminTopic;
35         private String loggingUrl;
36         private String nodeKey;
37         private String  accessKeyOwner;
38
39
40
41         // no-op constructor used by framework
42         public Dmaap() {
43                 
44         }
45         
46         public Dmaap( String ver, 
47                                         String tnr,
48                                         String dn,
49                                         String dpu,
50                                         String lu,
51                                         String bat,
52                                         String nk,
53                                         String ako ) {
54                 this.version = ver;
55                 this.topicNsRoot = tnr;
56                 this.dmaapName = dn;
57                 this.drProvUrl = dpu;
58                 this.bridgeAdminTopic = bat;
59                 this.loggingUrl = lu;
60                 this.nodeKey = nk;
61                 this.accessKeyOwner = ako;
62                 this.setStatus( DmaapObject_Status.NEW );
63         }
64
65         public String getVersion() {
66                 return version;
67         }
68
69         public void setVersion(String version) {
70                 this.version = version;
71         }
72
73         public String getTopicNsRoot() {
74                 return topicNsRoot;
75         }
76
77         public void setTopicNsRoot(String topicNsRoot) {
78                 this.topicNsRoot = topicNsRoot;
79         }
80
81         public String getDmaapName() {
82                 return dmaapName;
83         }
84
85         public void setDmaapName(String dmaapName) {
86                 this.dmaapName = dmaapName;
87         }
88
89         public String getDrProvUrl() {
90                 return drProvUrl;
91         }
92
93         public void setDrProvUrl(String drProvUrl) {
94                 this.drProvUrl = drProvUrl;
95         }
96
97
98         public String getNodeKey() {
99                 return nodeKey;
100         }
101
102         public void setNodeKey(String nodeKey) {
103                 this.nodeKey = nodeKey;
104         }
105
106         public String getAccessKeyOwner() {
107                 return accessKeyOwner;
108         }
109
110         public void setAccessKeyOwner(String accessKeyOwner) {
111                 this.accessKeyOwner = accessKeyOwner;
112         }
113
114         
115         public String getBridgeAdminTopic() {
116                 return bridgeAdminTopic;
117         }
118
119         public void setBridgeAdminTopic(String bridgeAdminTopic) {
120                 this.bridgeAdminTopic = bridgeAdminTopic;
121         }
122
123         public String getLoggingUrl() {
124                 return loggingUrl;
125         }
126
127         public void setLoggingUrl(String loggingUrl) {
128                 this.loggingUrl = loggingUrl;
129         }
130
131         
132 }