Class DelegatedNewsEntity
- java.lang.Object
-
- org.silverpeas.components.delegatednews.web.DelegatedNewsEntity
-
- All Implemented Interfaces:
Serializable,org.silverpeas.core.web.rs.WebEntity
public class DelegatedNewsEntity extends Object implements org.silverpeas.core.web.rs.WebEntity
The delegated news entity is a delegated news object that is exposed in the web as an entity (web entity). As such, it publishes only some of its attributes It represents a delegated news in Silverpeas plus some additional information such as the URI for accessing it.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDelegatedNewsEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static DelegatedNewsEntityfromDelegatedNews(DelegatedNews delegatedNews)Creates a new delegated news entity from the specified delegated news.DategetBeginDate()Gets the begin date of visibility of the delegated news.org.silverpeas.core.webapi.profile.UserProfileEntitygetContributor()Gets the id of the contributor.DategetEndDate()Gets the end date of visibility of the delegated news.StringgetInstanceId()Gets the identifier of the Silverpeas instance identifier.intgetNewsOrder()Gets the order of the delegated news.StringgetPubId()Gets the identifier of the delegated news.StringgetPubTitle()Gets the title of the delegated news.StringgetStatus()Gets the status of the delegated news.URIgetURI()Gets the URI of this comment entity.DategetValidationDate()Gets the date at which the delegated news was validated.org.silverpeas.core.webapi.profile.UserProfileEntitygetValidator()Gets the id of the validator.inthashCode()DelegatedNewstoDelegatedNews()Gets the delegated news business objet that this entity represents.
-
-
-
Method Detail
-
getURI
public URI getURI()
Gets the URI of this comment entity.- Specified by:
getURIin interfaceorg.silverpeas.core.web.rs.WebEntity- Returns:
- the URI with which this entity can be access through the Web.
-
getPubId
public String getPubId()
Gets the identifier of the delegated news.- Returns:
- the delegated news identifier.
-
getPubTitle
public String getPubTitle()
Gets the title of the delegated news.- Returns:
- the pubTitle.
-
getInstanceId
public String getInstanceId()
Gets the identifier of the Silverpeas instance identifier.- Returns:
- the silverpeas instance identifier.
-
getStatus
public String getStatus()
Gets the status of the delegated news.- Returns:
- the status.
-
getContributor
public org.silverpeas.core.webapi.profile.UserProfileEntity getContributor()
Gets the id of the contributor.- Returns:
- the contributor id.
-
getValidator
public org.silverpeas.core.webapi.profile.UserProfileEntity getValidator()
Gets the id of the validator.- Returns:
- the contributor id.
-
getValidationDate
public Date getValidationDate()
Gets the date at which the delegated news was validated.- Returns:
- the validator date of the delegated news.
-
getBeginDate
public Date getBeginDate()
Gets the begin date of visibility of the delegated news.- Returns:
- the begin date.
-
getEndDate
public Date getEndDate()
Gets the end date of visibility of the delegated news.- Returns:
- the end date.
-
getNewsOrder
public int getNewsOrder()
Gets the order of the delegated news.- Returns:
- the order of the delegated news.
-
toDelegatedNews
public DelegatedNews toDelegatedNews()
Gets the delegated news business objet that this entity represents.- Returns:
- a delegated news instance.
-
fromDelegatedNews
public static DelegatedNewsEntity fromDelegatedNews(DelegatedNews delegatedNews)
Creates a new delegated news entity from the specified delegated news.- Parameters:
delegatedNews- the delegated news to entitify.- Returns:
- the entity representing the specified delegated news.
-
-