Package org.silverpeas.core.webapi.admin
Class SpaceEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.admin.AbstractTypeEntity
-
- org.silverpeas.core.webapi.admin.StructureElementEntity<SpaceEntity>
-
- org.silverpeas.core.webapi.admin.SpaceEntity
-
- All Implemented Interfaces:
Serializable
,WebEntity
public class SpaceEntity extends StructureElementEntity<SpaceEntity>
The space instance light entity is a SpaceInstLight object that is exposed in the web as an entity (web entity). As such, it publishes only some of its attributes. It represents a SpaceInstLight 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 protected
SpaceEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SpaceEntity
addUserFavorites(String favorite)
static SpaceEntity
createFrom(SpaceInstLight space, String language)
Creates a new SpaceInstLight entity from the specified SpaceInstLight.URI
getAppearanceURI()
Gets the URI of the appearance of the space.URI
getComponentsURI()
Gets the URI of components included in the space.URI
getContentURI()
Gets the URI of the content included in the space.protected String
getFavorite()
Gets the favorite data of the spaceint
getLevel()
Gets the level of the space.URI
getSpacesURI()
Gets the URI of spaces included in the space.protected String
getStringBaseURI()
protected String
getStringParentBaseURI()
boolean
isSpaceDisplayedAtFirst()
Indicates if spaces have to be displayed before or not the applications.SpaceEntity
withURI(URI uri)
Sets a URI to this entity.-
Methods inherited from class org.silverpeas.core.webapi.admin.StructureElementEntity
equals, getDescription, getId, getLabel, getParentURI, getRank, getStatus, getURI, getUsersAndGroupsRolesURI, hashCode, isInheritanceBlocked
-
Methods inherited from class org.silverpeas.core.webapi.admin.AbstractTypeEntity
getType
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
createFrom
public static SpaceEntity createFrom(SpaceInstLight space, String language)
Creates a new SpaceInstLight entity from the specified SpaceInstLight.- Parameters:
space
- the SpaceInstLight to entitify.language
- the current language.- Returns:
- the entity representing the specified SpaceInstLight.
-
withURI
public SpaceEntity withURI(URI uri)
Description copied from class:StructureElementEntity
Sets a URI to this entity. With this URI, it can then be accessed through the Web.- Overrides:
withURI
in classStructureElementEntity<SpaceEntity>
- Parameters:
uri
- the web entity URI.- Returns:
- itself.
-
addUserFavorites
public SpaceEntity addUserFavorites(String favorite)
-
getLevel
public int getLevel()
Gets the level of the space.- Returns:
- the level of the space
-
getSpacesURI
public URI getSpacesURI()
Gets the URI of spaces included in the space.- Returns:
- the URI of spaces included in the space
-
getComponentsURI
public URI getComponentsURI()
Gets the URI of components included in the space.- Returns:
- the URI of component included in the space
-
getContentURI
public URI getContentURI()
Gets the URI of the content included in the space.- Returns:
- the URI of the content included in the space
-
getAppearanceURI
public URI getAppearanceURI()
Gets the URI of the appearance of the space.- Returns:
- the URI of the appearance of the space
-
isSpaceDisplayedAtFirst
public boolean isSpaceDisplayedAtFirst()
Indicates if spaces have to be displayed before or not the applications.- Returns:
- true or false
-
getFavorite
protected final String getFavorite()
Gets the favorite data of the space- Returns:
- the favorite data
-
getStringBaseURI
protected String getStringBaseURI()
- Specified by:
getStringBaseURI
in classStructureElementEntity<SpaceEntity>
- Returns:
- the URI base of the current entity
-
getStringParentBaseURI
protected String getStringParentBaseURI()
- Specified by:
getStringParentBaseURI
in classStructureElementEntity<SpaceEntity>
- Returns:
- the parent URI base of the current entity
-
-