[PORTAL-16 PORTAL-18] Widget ms; staging
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / transport / EpNotificationItemVO.java
index d22a4b7..3cb0f3a 100644 (file)
-/*-\r
- * ================================================================================\r
- * ECOMP Portal\r
- * ================================================================================\r
- * Copyright (C) 2017 AT&T Intellectual Property\r
- * ================================================================================\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- * \r
- *      http://www.apache.org/licenses/LICENSE-2.0\r
- * \r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- * ================================================================================\r
- */\r
-package org.openecomp.portalapp.portal.transport;\r
-\r
-import java.util.Date;\r
-\r
-import javax.persistence.Entity;\r
-import javax.persistence.Id;\r
-\r
-import org.openecomp.portalsdk.core.domain.support.DomainVo;\r
-\r
-/**\r
- * This is to handle notifications in user notifications and in notification history\r
- */\r
-\r
-/**\r
- * POJO that models a single notification with the org user ID (not integer\r
- * user_id).\r
- */\r
-@Entity\r
-public class EpNotificationItemVO extends DomainVo {\r
-\r
-       private static final long serialVersionUID = 9095479701352339201L;\r
-\r
-       @Id\r
-       private Integer notificationId;\r
-\r
-       private Character isForOnlineUsers;\r
-\r
-       private Character isForAllRoles;\r
-\r
-       private Character activeYn;\r
-\r
-       private String msgHeader;\r
-\r
-       private String msgDescription;\r
-       \r
-       private String msgSource;\r
-\r
-       private Date startTime;\r
-\r
-       private Date endTime;\r
-\r
-       private Integer priority;\r
-\r
-       private Integer creatorId;\r
-\r
-       private Date createdDate;\r
-\r
-       private String loginId;\r
-\r
-       /**\r
-        * Answers whether the notification is expired.\r
-        * \r
-        * @return true if the end time is past the current time, else false.\r
-        */\r
-       public boolean isExpired() {\r
-               boolean result = false;\r
-               if (endTime != null) {\r
-                       int expired = endTime.compareTo(new Date());\r
-                       result = (expired == -1) ? true : false;\r
-               }\r
-               return result;\r
-       }\r
-\r
-       public String getLoginId() {\r
-               return loginId;\r
-       }\r
-\r
-       public void setLoginId(String loginId) {\r
-               this.loginId = loginId;\r
-       }\r
-\r
-       public Integer getNotificationId() {\r
-               return notificationId;\r
-       }\r
-\r
-       public void setNotificationId(Integer notificationId) {\r
-               this.notificationId = notificationId;\r
-       }\r
-\r
-       public Character getIsForOnlineUsers() {\r
-               return isForOnlineUsers;\r
-       }\r
-\r
-       public void setIsForOnlineUsers(Character isForOnlineUsers) {\r
-               this.isForOnlineUsers = isForOnlineUsers;\r
-       }\r
-\r
-       public Character getIsForAllRoles() {\r
-               return isForAllRoles;\r
-       }\r
-\r
-       public void setIsForAllRoles(Character isForAllRoles) {\r
-               this.isForAllRoles = isForAllRoles;\r
-       }\r
-\r
-       public Character getActiveYn() {\r
-               return activeYn;\r
-       }\r
-\r
-       public void setActiveYn(Character activeYn) {\r
-               this.activeYn = activeYn;\r
-       }\r
-\r
-       public String getMsgHeader() {\r
-               return msgHeader;\r
-       }\r
-\r
-       public void setMsgHeader(String msgHeader) {\r
-               this.msgHeader = msgHeader;\r
-       }\r
-\r
-       public String getMsgDescription() {\r
-               return msgDescription;\r
-       }\r
-\r
-       public void setMsgDescription(String msgDescription) {\r
-               this.msgDescription = msgDescription;\r
-       }\r
-\r
-       public Date getStartTime() {\r
-               return startTime;\r
-       }\r
-\r
-       public void setStartTime(Date startTime) {\r
-               this.startTime = startTime;\r
-       }\r
-\r
-       public Date getEndTime() {\r
-               return endTime;\r
-       }\r
-\r
-       public void setEndTime(Date endTime) {\r
-               this.endTime = endTime;\r
-       }\r
-\r
-       public Integer getPriority() {\r
-               return priority;\r
-       }\r
-\r
-       public void setPriority(Integer priority) {\r
-               this.priority = priority;\r
-       }\r
-\r
-       public Integer getCreatorId() {\r
-               return creatorId;\r
-       }\r
-\r
-       public void setCreatorId(Integer creatorId) {\r
-               this.creatorId = creatorId;\r
-       }\r
-\r
-       public Date getCreatedDate() {\r
-               return createdDate;\r
-       }\r
-\r
-       public void setCreatedDate(Date createdDate) {\r
-               this.createdDate = createdDate;\r
-       }\r
-\r
-       public static long getSerialversionuid() {\r
-               return serialVersionUID;\r
-       }\r
-\r
-       \r
-       public String getMsgSource() {\r
-               return msgSource;\r
-       }\r
-\r
-       public void setMsgSource(String msgSource) {\r
-               this.msgSource = msgSource;\r
-       }\r
-}\r
+/*-
+ * ================================================================================
+ * ECOMP Portal
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ================================================================================
+ */
+package org.openecomp.portalapp.portal.transport;
+
+import java.util.Date;
+
+import javax.persistence.Entity;
+import javax.persistence.Id;
+
+import org.openecomp.portalsdk.core.domain.support.DomainVo;
+
+/**
+ * This is to handle notifications in user notifications and in notification history
+ */
+
+/**
+ * POJO that models a single notification with the org user ID (not integer
+ * user_id).
+ */
+@Entity
+public class EpNotificationItemVO extends DomainVo {
+
+       private static final long serialVersionUID = 9095479701352339201L;
+
+       @Id
+       private Integer notificationId;
+
+       private Character isForOnlineUsers;
+
+       private Character isForAllRoles;
+
+       private Character activeYn;
+
+       private String msgHeader;
+
+       private String msgDescription;
+       
+       private String msgSource;
+
+       private Date startTime;
+
+       private Date endTime;
+
+       private Integer priority;
+
+       private Integer creatorId;
+
+       private Date createdDate;
+
+       private String loginId;
+
+       /**
+        * Answers whether the notification is expired.
+        * 
+        * @return true if the end time is past the current time, else false.
+        */
+       public boolean isExpired() {
+               boolean result = false;
+               if (endTime != null) {
+                       int expired = endTime.compareTo(new Date());
+                       result = (expired == -1) ? true : false;
+               }
+               return result;
+       }
+
+       public String getLoginId() {
+               return loginId;
+       }
+
+       public void setLoginId(String loginId) {
+               this.loginId = loginId;
+       }
+
+       public Integer getNotificationId() {
+               return notificationId;
+       }
+
+       public void setNotificationId(Integer notificationId) {
+               this.notificationId = notificationId;
+       }
+
+       public Character getIsForOnlineUsers() {
+               return isForOnlineUsers;
+       }
+
+       public void setIsForOnlineUsers(Character isForOnlineUsers) {
+               this.isForOnlineUsers = isForOnlineUsers;
+       }
+
+       public Character getIsForAllRoles() {
+               return isForAllRoles;
+       }
+
+       public void setIsForAllRoles(Character isForAllRoles) {
+               this.isForAllRoles = isForAllRoles;
+       }
+
+       public Character getActiveYn() {
+               return activeYn;
+       }
+
+       public void setActiveYn(Character activeYn) {
+               this.activeYn = activeYn;
+       }
+
+       public String getMsgHeader() {
+               return msgHeader;
+       }
+
+       public void setMsgHeader(String msgHeader) {
+               this.msgHeader = msgHeader;
+       }
+
+       public String getMsgDescription() {
+               return msgDescription;
+       }
+
+       public void setMsgDescription(String msgDescription) {
+               this.msgDescription = msgDescription;
+       }
+
+       public Date getStartTime() {
+               return startTime;
+       }
+
+       public void setStartTime(Date startTime) {
+               this.startTime = startTime;
+       }
+
+       public Date getEndTime() {
+               return endTime;
+       }
+
+       public void setEndTime(Date endTime) {
+               this.endTime = endTime;
+       }
+
+       public Integer getPriority() {
+               return priority;
+       }
+
+       public void setPriority(Integer priority) {
+               this.priority = priority;
+       }
+
+       public Integer getCreatorId() {
+               return creatorId;
+       }
+
+       public void setCreatorId(Integer creatorId) {
+               this.creatorId = creatorId;
+       }
+
+       public Date getCreatedDate() {
+               return createdDate;
+       }
+
+       public void setCreatedDate(Date createdDate) {
+               this.createdDate = createdDate;
+       }
+
+       public static long getSerialversionuid() {
+               return serialVersionUID;
+       }
+
+       
+       public String getMsgSource() {
+               return msgSource;
+       }
+
+       public void setMsgSource(String msgSource) {
+               this.msgSource = msgSource;
+       }
+}