Class ResourceCategoryEntity

java.lang.Object
org.silverpeas.components.resourcesmanager.web.ResourceCategoryEntity
All Implemented Interfaces:
Serializable, org.silverpeas.core.web.rs.WebEntity

public class ResourceCategoryEntity extends Object implements org.silverpeas.core.web.rs.WebEntity
Web entity abstraction which provides category informations of the entity
Author:
Yohann Chastagnier
See Also:
  • Constructor Details

    • ResourceCategoryEntity

      protected ResourceCategoryEntity(Category category)
    • ResourceCategoryEntity

      protected ResourceCategoryEntity()
  • Method Details

    • 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 org.silverpeas.core.web.rs.WebEntity
    • 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