Add collaboration feature
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / notifications-rest / notifications-rest-types / src / main / java / org / openecomp / sdcrests / notifications / types / NotificationEntityDto.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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.openecomp.sdcrests.notifications.types;
22
23 import java.util.Map;
24 import java.util.UUID;
25
26 public class NotificationEntityDto {
27   private boolean read;
28   private UUID eventId;
29   private String dateTime;
30   private String eventType;
31   private Map<String, Object> eventAttributes;
32
33   public NotificationEntityDto() {
34   }
35   public NotificationEntityDto(boolean read, UUID eventId, String eventType,
36                                Map<String, Object> eventAttributes) {
37     this.read = read;
38     this.eventId = eventId;
39     this.eventType = eventType;
40     this.eventAttributes = eventAttributes;
41   }
42
43   public NotificationEntityDto(boolean read, UUID eventId,String eventType,
44                                Map<String, Object> eventAttributes, String dateTime) {
45     this.read = read;
46     this.eventId = eventId;
47     this.dateTime = dateTime;
48     this.eventType = eventType;
49     this.eventAttributes = eventAttributes;
50   }
51
52   public boolean isRead() {
53     return read;
54   }
55
56   public void setRead(boolean read) {
57     this.read = read;
58   }
59
60   public UUID getEventId() {
61     return eventId;
62   }
63
64   public void setEventId(UUID eventId) {
65     this.eventId = eventId;
66   }
67
68   public String getEventType() {
69     return eventType;
70   }
71
72   public void setEventType(String eventType) {
73     this.eventType = eventType;
74   }
75
76   public Map<String, Object> getEventAttributes() {
77     return eventAttributes;
78   }
79
80   public void setEventAttributes(Map<String, Object> eventAttributes) {
81     this.eventAttributes = eventAttributes;
82   }
83
84   public String getDateTime() {
85     return dateTime;
86   }
87
88   public void setDateTime(String dateTime) {
89     this.dateTime = dateTime;
90   }
91 }