Class NotificationInfo


  • public class NotificationInfo
    extends Object
    • Constructor Detail

      • NotificationInfo

        public NotificationInfo()
    • Method Detail

      • getId

        public String getId()
      • isSendAll

        public boolean isSendAll()
      • isUpdate

        public boolean isUpdate()
      • getFrom

        public String getFrom()
      • getTitle

        public String getTitle()
        Gets the title of the notification
        Returns:
      • setTitle

        public NotificationInfo setTitle​(String title)
        Sets the title of the notification
        Parameters:
        title -
      • getChannelKey

        public ChannelKey getChannelKey()
        Gets the channel key of the notification
        Returns:
      • setChannelKey

        public void setChannelKey​(ChannelKey channelKey)
        Sets the channel of the notification
        Parameters:
        channelKey -
      • getTo

        public String getTo()
        Returns:
        the to
      • getOrder

        public int getOrder()
        Returns:
        the order
      • setOrder

        public NotificationInfo setOrder​(int order)
        Parameters:
        order - the order to set
      • getSendToUserIds

        public List<String> getSendToUserIds()
      • getOwnerParameter

        public Map<String,​String> getOwnerParameter()
        Returns:
        the ownerParameter
      • getValueOwnerParameter

        public String getValueOwnerParameter​(String key)
        Returns:
        the value of ownerParameter
      • getArrayOwnerParameter

        public String[] getArrayOwnerParameter()
        Returns:
        the array ownerParameter
      • setOwnerParameter

        public NotificationInfo setOwnerParameter​(Map<String,​String> ownerParameter)
        Parameters:
        ownerParameter - the ownerParameter to set
      • with

        public NotificationInfo with​(String key,
                                     String value)
        Parameters:
        key - the ownerParameter key to set
        value - the ownerParameter value to set
      • getLastModifiedDate

        public long getLastModifiedDate()
        Get the last modified date
        Returns:
      • setLastModifiedDate

        public NotificationInfo setLastModifiedDate​(Calendar lastModifiedDate)
        Parameters:
        lastModifiedDate -
      • setLastModifiedDate

        public NotificationInfo setLastModifiedDate​(long lastModifiedDate)
        Parameters:
        lastModifiedDate -
      • getDateCreated

        public Calendar getDateCreated()
      • isOnPopOver

        public boolean isOnPopOver()
      • getSendToDaily

        public String[] getSendToDaily()
        Returns:
        the sendToDaily
      • setSendToDaily

        public NotificationInfo setSendToDaily​(String[] userIds)
        Parameters:
        userIds - the list userIds to set for sendToDaily
      • setSendToDaily

        public NotificationInfo setSendToDaily​(String userId)
        Parameters:
        userId - the userId to add into sendToDaily
      • removeOnSendToDaily

        public NotificationInfo removeOnSendToDaily​(String userId)
        Parameters:
        userId - the userId to remove into sendToDaily
      • getSendToWeekly

        public String[] getSendToWeekly()
        Returns:
        the sendToWeekly
      • setSendToWeekly

        public NotificationInfo setSendToWeekly​(String[] userIds)
        Parameters:
        userIds - the list userIds to set for sendToWeekly
      • setSendToWeekly

        public NotificationInfo setSendToWeekly​(String userId)
        Parameters:
        userId - the userId to add into sendToWeekly
      • removeOnSendToWeekly

        public NotificationInfo removeOnSendToWeekly​(String userId)
        Parameters:
        userId - the userId to remove into sendToWeekly
      • isResetOnBadge

        public boolean isResetOnBadge()
      • setResetOnBadge

        public NotificationInfo setResetOnBadge​(boolean resetOnBadge)
      • isRead

        public boolean isRead()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getIdGeneratorService

        public static org.exoplatform.services.idgenerator.IDGeneratorService getIdGeneratorService()
      • generate

        public static String generate()