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.openecomp.sdc.notification.types;
24 import java.util.UUID;
26 public class NotificationEntityDto {
29 private String dateTime;
30 private String eventType;
31 private Map<String, Object> eventAttributes;
33 public NotificationEntityDto() {
35 public NotificationEntityDto(boolean read, UUID eventId, String eventType,
36 Map<String, Object> eventAttributes) {
38 this.eventId = eventId;
39 this.eventType = eventType;
40 this.eventAttributes = eventAttributes;
43 public NotificationEntityDto(boolean read, UUID eventId,String eventType,
44 Map<String, Object> eventAttributes, String dateTime) {
46 this.eventId = eventId;
47 this.dateTime = dateTime;
48 this.eventType = eventType;
49 this.eventAttributes = eventAttributes;
52 public boolean isRead() {
56 public void setRead(boolean read) {
60 public UUID getEventId() {
64 public void setEventId(UUID eventId) {
65 this.eventId = eventId;
68 public String getEventType() {
72 public void setEventType(String eventType) {
73 this.eventType = eventType;
76 public Map<String, Object> getEventAttributes() {
77 return eventAttributes;
80 public void setEventAttributes(Map<String, Object> eventAttributes) {
81 this.eventAttributes = eventAttributes;
84 public String getDateTime() {
88 public void setDateTime(String dateTime) {
89 this.dateTime = dateTime;
93 public String toString() {
94 return "NotificationEntityDto {"
95 + ", state='" + (read ? "Read" : "Noread") + '\''
96 + ", dateTime='" + dateTime + '\''
97 + ", eventId='" + eventId + '\''
98 + ", eventType='" + eventType + '\''
99 + ", eventAttributes='" + eventAttributes + '\''