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;
30 import org.onap.dmaap.dbcapi.aaf.database.DatabaseClass;
33 public class MR_Client extends DmaapObject {
35 private String dcaeLocationName;
36 private String topicURL;
38 private String clientRole;
39 private String[] action;
40 private String mrClientId;
44 this.mrClientId = DatabaseClass.getNextClientId();
45 this.lastMod = new Date();
47 debugLogger.debug( "MR_Client constructor " + this.lastMod );
51 public MR_Client( String dLN,
55 this.dcaeLocationName = dLN;
60 if ( this.action == null ) {
61 this.action = new String[a.length];
63 for( String aa : a ) {
64 this.action[i++] = new String( aa );
66 this.setStatus( DmaapObject_Status.NEW );
67 this.mrClientId = DatabaseClass.getNextClientId();
69 debugLogger.debug( "MR_Client constructor w initialization " + this.lastMod );
72 public String getDcaeLocationName() {
73 return dcaeLocationName;
76 public void setDcaeLocationName(String dcaeLocationName) {
77 this.dcaeLocationName = dcaeLocationName;
80 public String getFqtn() {
84 public void setFqtn(String fqtn) {
88 public String getClientRole() {
92 public void setClientRole(String clientRole) {
93 this.clientRole = clientRole;
96 public String[] getAction() {
100 public void setAction(String[] action) {
101 this.action = action;
104 public String getMrClientId() {
108 public void setMrClientId(String mrClientId) {
109 this.mrClientId = mrClientId;
114 public String getTopicURL() {
118 public void setTopicURL(String topicURL) {
119 this.topicURL = topicURL;