Class 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 Detail

      • SpaceEntity

        protected SpaceEntity()
    • 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.
      • 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