Class NotificationResourceData
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.model.jpa.AbstractJpaEntity<E,I>
-
- org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity<NotificationResourceData,UniqueLongIdentifier>
-
- org.silverpeas.core.notification.user.model.NotificationResourceData
-
- All Implemented Interfaces:
Serializable
,IdentifiableEntity
@Entity public class NotificationResourceData extends BasicJpaEntity<NotificationResourceData,UniqueLongIdentifier>
Data on the notification about an action operated on a resource in Silverpeas. A resource can be a contribution, a business object, or any entities handled or managed in Silverpeas.- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
LOCATION_SEPARATOR
-
Constructor Summary
Constructors Constructor Description NotificationResourceData()
Constructs a new emptyNotificationResourceData
instance.NotificationResourceData(NotificationResourceData notificationResourceData)
Constructs a new instance as a copy of the specified notification resource data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeUpdate()
boolean
equals(Object obj)
void
fillFrom(NotificationResourceData notificationResourceData)
Copying all data from the given resource excepted the idString
getAttachmentTargetId()
String
getComponentInstanceId()
String
getCurrentLanguage()
Gets the current language into which the data are registered and provided by this entity.String
getLinkLabel()
String
getResourceDescription()
String
getResourceId()
String
getResourceLocation()
String
getResourceName()
String
getResourceType()
String
getResourceUrl()
int
hashCode()
boolean
isFeminineGender()
boolean
isValid()
protected void
performBeforePersist()
Performs some treatments before this entity is persisted into a repository.void
setAttachmentTargetId(String targetId)
void
setComponentInstanceId(String componentInstanceId)
void
setCurrentLanguage(String currentLanguage)
Sets the current language into which the data are registered and provided by this entity.void
setFeminineGender(boolean gender)
void
setId(Long id)
void
setLinkLabel(String linkLabel)
void
setResourceDescription(String resourceDescription)
void
setResourceId(Number resourceId)
void
setResourceId(String resourceId)
void
setResourceLocation(String resourceLocation)
void
setResourceName(String resourceName)
void
setResourceType(String resourceType)
void
setResourceUrl(String resourceUrl)
-
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
-
-
-
-
Field Detail
-
LOCATION_SEPARATOR
public static final String LOCATION_SEPARATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NotificationResourceData
public NotificationResourceData()
Constructs a new emptyNotificationResourceData
instance.
-
NotificationResourceData
public NotificationResourceData(NotificationResourceData notificationResourceData)
Constructs a new instance as a copy of the specified notification resource data.- Parameters:
notificationResourceData
- theNotificationResourceData
instance to copy.
-
-
Method Detail
-
fillFrom
public final void fillFrom(NotificationResourceData notificationResourceData)
Copying all data from the given resource excepted the id- Parameters:
notificationResourceData
- the data from which all is copied.
-
performBeforePersist
protected void performBeforePersist()
Description copied from class:AbstractJpaEntity
Performs some treatments before this entity is persisted into a repository.- Overrides:
performBeforePersist
in classBasicJpaEntity<NotificationResourceData,UniqueLongIdentifier>
-
beforeUpdate
public void beforeUpdate()
-
isValid
public boolean isValid()
-
setId
public void setId(Long id)
-
getResourceId
public String getResourceId()
-
setResourceId
public void setResourceId(Number resourceId)
-
setResourceId
public void setResourceId(String resourceId)
-
getResourceType
public String getResourceType()
-
setResourceType
public void setResourceType(String resourceType)
-
getResourceName
public String getResourceName()
-
setResourceName
public void setResourceName(String resourceName)
-
getResourceDescription
public String getResourceDescription()
-
setResourceDescription
public void setResourceDescription(String resourceDescription)
-
getResourceLocation
public String getResourceLocation()
-
setResourceLocation
public void setResourceLocation(String resourceLocation)
-
getResourceUrl
public String getResourceUrl()
-
setResourceUrl
public void setResourceUrl(String resourceUrl)
-
getComponentInstanceId
public String getComponentInstanceId()
-
setComponentInstanceId
public void setComponentInstanceId(String componentInstanceId)
-
getAttachmentTargetId
public String getAttachmentTargetId()
-
setAttachmentTargetId
public void setAttachmentTargetId(String targetId)
-
isFeminineGender
public boolean isFeminineGender()
-
setFeminineGender
public void setFeminineGender(boolean gender)
-
getLinkLabel
public String getLinkLabel()
-
setLinkLabel
public void setLinkLabel(String linkLabel)
-
getCurrentLanguage
public String getCurrentLanguage()
Gets the current language into which the data are registered and provided by this entity.- Returns:
- a string.
-
setCurrentLanguage
public void setCurrentLanguage(String currentLanguage)
Sets the current language into which the data are registered and provided by this entity.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractJpaEntity<NotificationResourceData,UniqueLongIdentifier>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractJpaEntity<NotificationResourceData,UniqueLongIdentifier>
-
-