Class ResourceEntity
java.lang.Object
org.silverpeas.components.resourcesmanager.web.ResourceEntity
- All Implemented Interfaces:
Serializable,org.silverpeas.core.web.rs.WebEntity
- Direct Known Subclasses:
ReservedResourceEntity
Web entity abstraction which provides common event informations of the entity
- Author:
- Yohann Chastagnier
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceEntitycreateFrom(Resource resource) Creates a new resource entity from the specified resource.booleangetId()getName()getURI()inthashCode()<T extends ResourceEntity>
TwithCategoryURI(URI categoryURI) <T extends ResourceEntity>
TSets a URI to this entity.
-
Constructor Details
-
ResourceEntity
-
ResourceEntity
protected ResourceEntity()
-
-
Method Details
-
withURI
Sets a URI to this entity. With this URI, it can then be accessed through the Web.- Parameters:
uri- the web entity URI.- Returns:
- itself.
-
withCategoryURI
-
createFrom
Creates a new resource entity from the specified resource.- Parameters:
resource-- Returns:
- the entity representing the specified resource.
-
getURI
- Specified by:
getURIin interfaceorg.silverpeas.core.web.rs.WebEntity
-
getCategoryURI
-
getId
-
getName
-
getDescription
-
hashCode
public int hashCode() -
equals
-