Package org.silverpeas.core.webapi.admin
Class StructureElementEntity<T extends StructureElementEntity<T>>
- java.lang.Object
-
- org.silverpeas.core.webapi.admin.AbstractTypeEntity
-
- org.silverpeas.core.webapi.admin.StructureElementEntity<T>
-
- All Implemented Interfaces:
Serializable,WebEntity
- Direct Known Subclasses:
ComponentEntity,SpaceEntity
public abstract class StructureElementEntity<T extends StructureElementEntity<T>> extends AbstractTypeEntity
The component instance light entity is a ComponentInstLight object that is exposed in the web as an entity (web entity). As such, it publishes only some of its attributes. It represents a ComponentInstLight in Silverpeas plus some additional information such as the URI for accessing it.- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStructureElementEntity()protectedStructureElementEntity(String type, String id, String parentId, String label, String description, String status, int rank, boolean isInheritanceBlocked)Instantiating a new web entity from the corresponding data
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)protected StringgetDescription()protected StringgetId()protected StringgetLabel()protected URIgetParentURI()protected intgetRank()protected StringgetStatus()protected abstract StringgetStringBaseURI()protected abstract StringgetStringParentBaseURI()URIgetURI()Gets the URI at which this web entity is published and can be accessed.URIgetUsersAndGroupsRolesURI()inthashCode()protected booleanisInheritanceBlocked()TwithURI(URI uri)Sets a URI to this entity.-
Methods inherited from class org.silverpeas.core.webapi.admin.AbstractTypeEntity
getType
-
-
-
-
Constructor Detail
-
StructureElementEntity
protected StructureElementEntity(String type, String id, String parentId, String label, String description, String status, int rank, boolean isInheritanceBlocked)
Instantiating a new web entity from the corresponding data
-
StructureElementEntity
protected StructureElementEntity()
-
-
Method Detail
-
withURI
public T 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.
-
getURI
public URI getURI()
Description copied from interface:WebEntityGets the URI at which this web entity is published and can be accessed.- Returns:
- the web entity URI.
-
getParentURI
protected URI getParentURI()
-
getUsersAndGroupsRolesURI
public URI getUsersAndGroupsRolesURI()
-
getId
protected String getId()
-
getLabel
protected String getLabel()
-
getDescription
protected String getDescription()
-
getStatus
protected String getStatus()
-
getRank
protected int getRank()
-
isInheritanceBlocked
protected boolean isInheritanceBlocked()
-
getStringBaseURI
protected abstract String getStringBaseURI()
- Returns:
- the URI base of the current entity
-
getStringParentBaseURI
protected abstract String getStringParentBaseURI()
- Returns:
- the parent URI base of the current entity
-
-