Class CategoryEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.mylinks.CategoryEntity
-
- All Implemented Interfaces:
Serializable
,WebEntity
public class CategoryEntity extends Object implements WebEntity
TheCategoryEntity
entity is aCategoryDetail
that 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 protected
CategoryEntity()
Default constructorCategoryEntity(CategoryDetail category, URI uri)
Constructor usingCategoryDetail
and uri
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CategoryEntity
fromCategoryDetail(CategoryDetail category, URI uri)
int
getCategoryId()
String
getDescription()
String
getName()
int
getPosition()
URI
getURI()
Gets the URI at which this web entity is published and can be accessed.String
getUserId()
CategoryDetail
toCategoryDetail()
-
-
-
Constructor Detail
-
CategoryEntity
protected CategoryEntity()
Default constructor
-
CategoryEntity
public CategoryEntity(CategoryDetail category, URI uri)
Constructor usingCategoryDetail
and 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:WebEntity
Gets 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
-
-