Class ResourceCategoryEntity
java.lang.Object
org.silverpeas.components.resourcesmanager.web.ResourceCategoryEntity
- All Implemented Interfaces:
Serializable,org.silverpeas.core.web.rs.WebEntity
Web entity abstraction which provides category informations of the entity
- Author:
- Yohann Chastagnier
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceCategoryEntitycreateFrom(Category category) Creates a new category entity from the specified category.booleangetId()getName()getURI()inthashCode()Sets a URI to this entity.
-
Constructor Details
-
ResourceCategoryEntity
-
ResourceCategoryEntity
protected ResourceCategoryEntity()
-
-
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.
-
createFrom
Creates a new category entity from the specified category.- Parameters:
category-- Returns:
- the entity representing the specified category.
-
getURI
- Specified by:
getURIin interfaceorg.silverpeas.core.web.rs.WebEntity
-
getId
-
getName
-
getDescription
-
hashCode
public int hashCode() -
equals
-