2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.dmaap.dbcapi.model;
23 import java.util.Date;
25 import javax.xml.bind.annotation.XmlRootElement;
27 import org.onap.dmaap.dbcapi.database.DatabaseClass;
30 public class MR_Client extends DmaapObject {
32 private String dcaeLocationName;
33 private String topicURL;
35 private String clientRole;
36 private String[] action;
37 private String mrClientId;
41 this.mrClientId = DatabaseClass.getNextClientId();
42 this.lastMod = new Date();
44 debugLogger.debug( "MR_Client constructor " + this.lastMod );
48 public MR_Client( String dLN,
52 this.dcaeLocationName = dLN;
57 if ( this.action == null ) {
58 this.action = new String[a.length];
60 for( String aa : a ) {
61 this.action[i++] = new String( aa );
63 this.setStatus( DmaapObject_Status.NEW );
64 this.mrClientId = DatabaseClass.getNextClientId();
66 debugLogger.debug( "MR_Client constructor w initialization " + this.lastMod );
69 public String getDcaeLocationName() {
70 return dcaeLocationName;
73 public void setDcaeLocationName(String dcaeLocationName) {
74 this.dcaeLocationName = dcaeLocationName;
77 public String getFqtn() {
81 public void setFqtn(String fqtn) {
85 public String getClientRole() {
89 public void setClientRole(String clientRole) {
90 this.clientRole = clientRole;
93 public String[] getAction() {
97 public void setAction(String[] action) {
101 public String getMrClientId() {
105 public void setMrClientId(String mrClientId) {
106 this.mrClientId = mrClientId;
111 public String getTopicURL() {
115 public void setTopicURL(String topicURL) {
116 this.topicURL = topicURL;