Class SpaceInstLight

    • Constructor Detail

      • SpaceInstLight

        public SpaceInstLight()
      • SpaceInstLight

        public SpaceInstLight​(SpaceRow spaceRow)
      • SpaceInstLight

        public SpaceInstLight​(SpaceInst spaceInst)
    • Method Detail

      • getId

        public String getId()
        Description copied from interface: Identifiable
        Gets the unique identifier of the object in Silverpeas. If he's also identified by a local identifier, then this method should return the one global to Silverpeas.
        Specified by:
        getId in interface Identifiable
        Returns:
        the identifier encoded as a String. If the identifier is a complex one, that is made up of several identification parts, then the returned representation should take care of such a structure.
      • getFatherId

        public String getFatherId()
      • getLevel

        public int getLevel()
      • getName

        public String getName​(String language)
        Description copied from class: AbstractI18NBean
        Gets the name of the bean in the given language. This method is a shortcut of the following code:
         myBean.getTranslation(language).getName();
         
        Overrides:
        getName in class AbstractI18NBean<SpaceI18N>
        Parameters:
        language - the ISO 631-1 code of the language
        Returns:
        the name of the bean in the specified language.
      • setFatherId

        public void setFatherId​(int fatherId)
      • setFatherId

        public void setFatherId​(String fatherId)
      • setLocalId

        public void setLocalId​(int id)
      • getLocalId

        public int getLocalId()
      • setLevel

        public void setLevel​(int i)
      • isRoot

        public boolean isRoot()
      • isRoot

        public static boolean isRoot​(String spaceId)
      • getOrderNum

        public int getOrderNum()
      • setOrderNum

        public void setOrderNum​(int orderNum)
      • getRemovalDate

        public Date getRemovalDate()
      • getStatus

        public String getStatus()
      • setStatus

        public void setStatus​(String status)
      • getLastUpdateDate

        public Date getLastUpdateDate()
        Description copied from interface: SilverpeasResource
        Gets the date at which the resource has been lastly updated. If the resource doesn't have such an information, then this method should return the date of the resource creation.
        Specified by:
        getLastUpdateDate in interface SilverpeasResource
        Returns:
        the date of the last update of the resource.
      • getCreatorName

        public String getCreatorName()
      • setCreatorName

        public void setCreatorName​(String creatorName)
      • getRemoverName

        public String getRemoverName()
      • setRemoverName

        public void setRemoverName​(String removerName)
      • getUpdaterName

        public String getUpdaterName()
      • setUpdaterName

        public void setUpdaterName​(String updaterName)
      • getCreatedBy

        public int getCreatedBy()
      • getRemovedBy

        public int getRemovedBy()
      • getUpdatedBy

        public int getUpdatedBy()
      • getLastUpdater

        public User getLastUpdater()
        Description copied from interface: SilverpeasResource
        Gets the user that has lastly updated the resource. If the resource doesn't have such an information, then this method should return the user that has created the resource.
        Specified by:
        getLastUpdater in interface SilverpeasResource
        Returns:
        a User in Silverpeas.
      • getLook

        public String getLook()
      • setLook

        public void setLook​(String look)
      • isDisplaySpaceFirst

        public boolean isDisplaySpaceFirst()
      • setDisplaySpaceFirst

        public void setDisplaySpaceFirst​(boolean displaySpaceFirst)
      • isPersonalSpace

        public boolean isPersonalSpace()
      • setPersonalSpace

        public void setPersonalSpace​(boolean isPersonalSpace)
      • isInheritanceBlocked

        public boolean isInheritanceBlocked()
      • setInheritanceBlocked

        public void setInheritanceBlocked​(boolean isInheritanceBlocked)
      • isRemoved

        public boolean isRemoved()
      • canBeAccessedBy

        public boolean canBeAccessedBy​(User user)
        Description copied from interface: Securable
        Checks the given user can access this resource.
        Specified by:
        canBeAccessedBy in interface Securable
        Parameters:
        user - a user in Silverpeas.
        Returns:
        true if the user can access the data managed by this instance, false otherwise.
      • canBeModifiedBy

        public boolean canBeModifiedBy​(User user)
        Is the user can modify this collaboration space?
        Specified by:
        canBeModifiedBy in interface Securable
        Parameters:
        user - a user in Silverpeas.
        Returns:
        true if the user can both access this collaboration space and has management privilege on this space (by being either an administrator or a space manager)
      • canBeFiledInBy

        public boolean canBeFiledInBy​(User user)
        Description copied from interface: Securable
        Checks the given user can file in this resource another resource. This behaviour control is only pertinent for resources acting as a container of other resources. By default, it returns false so that it requires to be implemented by any securable resource type supporting filing.
        Specified by:
        canBeFiledInBy in interface Securable
        Parameters:
        user - a user in Silverpeas.
        Returns:
        true if the user can file in this resource another resource.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object