Class CategoryEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.mylinks.CategoryEntity
-
- All Implemented Interfaces:
Serializable,WebEntity
public class CategoryEntity extends Object implements WebEntity
TheCategoryEntityentity is aCategoryDetailthat is exposed in the web as an entity (web entity). As such, it publishes only some of its attributes. It represents a category of user favorite link in Silverpeas- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCategoryEntity()Default constructorCategoryEntity(CategoryDetail category, URI uri)Constructor usingCategoryDetailand uri
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CategoryEntityfromCategoryDetail(CategoryDetail category, URI uri)intgetCategoryId()StringgetDescription()StringgetName()intgetPosition()URIgetURI()Gets the URI at which this web entity is published and can be accessed.StringgetUserId()CategoryDetailtoCategoryDetail()
-
-
-
Constructor Detail
-
CategoryEntity
protected CategoryEntity()
Default constructor
-
CategoryEntity
public CategoryEntity(CategoryDetail category, URI uri)
Constructor usingCategoryDetailand uri- Parameters:
category- the category detailuri- an URI
-
-
Method Detail
-
fromCategoryDetail
public static CategoryEntity fromCategoryDetail(CategoryDetail category, URI uri)
-
getURI
public URI getURI()
Description copied from interface:WebEntityGets the URI at which this web entity is published and can be accessed.
-
toCategoryDetail
public CategoryDetail toCategoryDetail()
-
getCategoryId
public int getCategoryId()
- Returns:
- the category identifier
-
getName
public String getName()
- Returns:
- the name
-
getDescription
public String getDescription()
- Returns:
- the description
-
getUserId
public String getUserId()
- Returns:
- the userId
-
getPosition
public int getPosition()
- Returns:
- the position of the object in the list
-
-