Class DelayedNotificationData
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.model.jpa.AbstractJpaEntity<E,I>
-
- org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity<DelayedNotificationData,UniqueLongIdentifier>
-
- org.silverpeas.core.notification.user.delayed.model.DelayedNotificationData
-
- All Implemented Interfaces:
Serializable
,IdentifiableEntity
@Entity public class DelayedNotificationData extends BasicJpaEntity<DelayedNotificationData,UniqueLongIdentifier> implements Serializable
Data on a delayed notification to users. A notification is delayed when it is sent not immediately but later according to some specific user settings.- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DelayedNotificationData()
-
Method Summary
-
Methods inherited from class org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity
performBeforeRemove, performBeforeUpdate
-
Methods inherited from class org.silverpeas.core.persistence.datasource.model.jpa.AbstractJpaEntity
getId, getNativeId, isPersisted, setId
-
-
-
-
Method Detail
-
isValid
public boolean isValid()
Checks the data integrity- Returns:
-
performBeforePersist
protected void performBeforePersist()
Description copied from class:AbstractJpaEntity
Performs some treatments before this entity is persisted into a repository.- Overrides:
performBeforePersist
in classBasicJpaEntity<DelayedNotificationData,UniqueLongIdentifier>
-
setId
public void setId(Long id)
-
getUserId
public Integer getUserId()
-
setUserId
public void setUserId(Integer userId)
-
setUserId
public void setUserId(String userId)
-
getFromUserId
public Integer getFromUserId()
-
setFromUserId
public void setFromUserId(Integer fromUserId)
-
getChannel
public NotifChannel getChannel()
-
setChannel
public void setChannel(NotifChannel channel)
-
getAction
public NotifAction getAction()
-
setAction
public void setAction(NotifAction action)
-
getCreationDate
public Date getCreationDate()
-
setCreationDate
public void setCreationDate(Date creationDate)
-
getLanguage
public String getLanguage()
-
setLanguage
public void setLanguage(String language)
-
getMessage
public String getMessage()
-
setMessage
public void setMessage(String message)
-
getResource
public NotificationResourceData getResource()
-
setResource
public void setResource(NotificationResourceData resource)
-
isSendImmediately
public boolean isSendImmediately()
-
setSendImmediately
public void setSendImmediately(boolean sendImmediately)
-
getNotificationData
public NotificationData getNotificationData()
-
setNotificationData
public void setNotificationData(NotificationData notificationData)
-
getNotificationParameters
public NotificationParameters getNotificationParameters()
-
setNotificationParameters
public void setNotificationParameters(NotificationParameters notificationParameters)
-
equals
public boolean equals(Object notificationData)
- Overrides:
equals
in classAbstractJpaEntity<DelayedNotificationData,UniqueLongIdentifier>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractJpaEntity<DelayedNotificationData,UniqueLongIdentifier>
-
-