Class StructureElementEntity<T extends 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 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: WebEntity
        Gets 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object