Class NotificationInfo
java.lang.Object
org.exoplatform.commons.api.notification.model.NotificationInfo
- All Implemented Interfaces:
Serializable,Cloneable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()clone(boolean isNew) end()String[]Gets the channel key of the notificationgetFrom()getId()getKey()longGet the last modified dateintgetOrder()String[]String[]longgetTitle()Gets the title of the notificationgetTo()static NotificationInfoinstance()booleanisExcluded(String userId) booleanbooleanisRead()booleanbooleanbooleanbooleanisUpdate()removeOnSendToDaily(String userId) removeOnSendToWeekly(String userId) voidsetChannelKey(ChannelKey channelKey) Sets the channel of the notificationsetDateCreated(Calendar dateCreated) setLastModifiedDate(long lastModifiedDate) setLastModifiedDate(Calendar lastModifiedDate) setOnPopOver(boolean isOnPopOver) setOrder(int order) setOwnerParameter(Map<String, String> ownerParameter) setRead(boolean read) setResetOnBadge(boolean resetOnBadge) setSendAll(boolean isSendAll) setSendAllInternals(boolean isSendAllInternals) setSendToDaily(String userId) setSendToDaily(String[] userIds) setSendToWeekly(String userId) setSendToWeekly(String[] userIds) setSpaceId(long spaceId) Sets the title of the notificationsetUpdate(boolean isUpdate) toString()
-
Field Details
-
PREFIX_ID
- See Also:
-
FOR_ALL_USER
- See Also:
-
FOR_ALL_INTERNAL_USER
- See Also:
-
-
Constructor Details
-
NotificationInfo
public NotificationInfo()
-
-
Method Details
-
instance
-
getId
-
setId
-
setSendAll
-
isSendAll
public boolean isSendAll() -
isSendAllInternals
public boolean isSendAllInternals() -
setSendAllInternals
-
isUpdate
public boolean isUpdate() -
setUpdate
-
getKey
-
key
-
key
-
getFrom
-
setFrom
-
getTitle
Gets the title of the notification- Returns:
-
setTitle
Sets the title of the notification- Parameters:
title-
-
getChannelKey
Gets the channel key of the notification- Returns:
-
setChannelKey
Sets the channel of the notification- Parameters:
channelKey-
-
getTo
- Returns:
- the to
-
setTo
- Parameters:
to- the to to set
-
getOrder
public int getOrder()- Returns:
- the order
-
setOrder
- Parameters:
order- the order to set
-
getSendToUserIds
-
to
-
getExcludedUsersIds
-
to
-
exclude
-
exclude
-
isExcluded
-
getOwnerParameter
- Returns:
- the ownerParameter
-
getValueOwnerParameter
- Returns:
- the value of ownerParameter
-
getSpaceId
public long getSpaceId() -
setSpaceId
-
getArrayOwnerParameter
- Returns:
- the array ownerParameter
-
setOwnerParameter
- Parameters:
ownerParameter- the ownerParameter to set
-
with
- Parameters:
key- the ownerParameter key to setvalue- the ownerParameter value to set
-
end
-
getLastModifiedDate
public long getLastModifiedDate()Get the last modified date- Returns:
-
setLastModifiedDate
- Parameters:
lastModifiedDate-
-
setLastModifiedDate
- Parameters:
lastModifiedDate-
-
getDateCreated
-
setDateCreated
-
isOnPopOver
public boolean isOnPopOver() -
setOnPopOver
-
getSendToDaily
- Returns:
- the sendToDaily
-
setSendToDaily
- Parameters:
userIds- the list userIds to set for sendToDaily
-
setSendToDaily
- Parameters:
userId- the userId to add into sendToDaily
-
removeOnSendToDaily
- Parameters:
userId- the userId to remove into sendToDaily
-
getSendToWeekly
- Returns:
- the sendToWeekly
-
setSendToWeekly
- Parameters:
userIds- the list userIds to set for sendToWeekly
-
setSendToWeekly
- Parameters:
userId- the userId to add into sendToWeekly
-
removeOnSendToWeekly
- Parameters:
userId- the userId to remove into sendToWeekly
-
isResetOnBadge
public boolean isResetOnBadge() -
setResetOnBadge
-
isRead
public boolean isRead() -
setRead
-
toString
-
clone
-
clone
-