org.silverpeas.resourcesmanager.web
Class ResourceCategoryEntity
java.lang.Object
  
org.silverpeas.resourcesmanager.web.ResourceCategoryEntity
- All Implemented Interfaces: 
 - com.silverpeas.web.Exposable, Serializable
 
public class ResourceCategoryEntity
- extends Object
- implements com.silverpeas.web.Exposable
  
Web entity abstraction which provides category informations of the entity
- Author:
 
  - Yohann Chastagnier
 
- See Also:
 - Serialized Form
 
 
 
 
ResourceCategoryEntity
protected ResourceCategoryEntity(Category category)
ResourceCategoryEntity
protected ResourceCategoryEntity()
withURI
public ResourceCategoryEntity withURI(URI uri)
- 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
public static ResourceCategoryEntity createFrom(Category category)
- Creates a new category entity from the specified category.
 
- Parameters:
 category - 
- Returns:
 - the entity representing the specified category.
 
 
 
getURI
public URI getURI()
- Specified by:
 getURI in interface com.silverpeas.web.Exposable
 
 
getId
public Long getId()
 
 
getName
public String getName()
 
 
getDescription
public String getDescription()
 
 
hashCode
public int hashCode()
- Overrides:
 hashCode in class Object
 
 
equals
public boolean equals(Object obj)
- Overrides:
 equals in class Object
 
 
Copyright © 2016 Silverpeas. All Rights Reserved.