Class DelegatedNewsEntity
java.lang.Object
org.silverpeas.components.delegatednews.web.DelegatedNewsEntity
- All Implemented Interfaces:
Serializable,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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DelegatedNewsEntityfromDelegatedNews(DelegatedNews delegatedNews) Creates a new delegated news entity from the specified delegated news.Gets the begin date of visibility of the delegated news.org.silverpeas.core.webapi.profile.UserProfileEntityGets the id of the contributor.Gets the end date of visibility of the delegated news.Gets the identifier of the Silverpeas instance identifier.intGets the order of the delegated news.getPubId()Gets the identifier of the delegated news.Gets the title of the delegated news.Gets the status of the delegated news.getURI()Gets the URI of this comment entity.Gets the date at which the delegated news was validated.org.silverpeas.core.webapi.profile.UserProfileEntityGets the id of the validator.inthashCode()Gets the delegated news business objet that this entity represents.
-
Constructor Details
-
DelegatedNewsEntity
protected DelegatedNewsEntity()
-
-
Method Details
-
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
Gets the identifier of the delegated news.- Returns:
- the delegated news identifier.
-
getPubTitle
Gets the title of the delegated news.- Returns:
- the pubTitle.
-
getInstanceId
Gets the identifier of the Silverpeas instance identifier.- Returns:
- the silverpeas instance identifier.
-
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
Gets the date at which the delegated news was validated.- Returns:
- the validator date of the delegated news.
-
getBeginDate
Gets the begin date of visibility of the delegated news.- Returns:
- the begin 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.
-
equals
-
hashCode
public int hashCode() -
toDelegatedNews
Gets the delegated news business objet that this entity represents.- Returns:
- a delegated news instance.
-
fromDelegatedNews
Creates a new delegated news entity from the specified delegated news.- Parameters:
delegatedNews- the delegated news to entity.- Returns:
- the entity representing the specified delegated news.
-