Interface Securable

    • Method Detail

      • canBeAccessedBy

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

        default boolean canBeModifiedBy​(User user)
        Checks the given user can modify this resource. By default, if the user can access this securable resource, then it can also modify it.
        Parameters:
        user - a user in Silverpeas.
        Returns:
        true if the user can modify the data managed by this instance, false otherwise.
      • canBeDeletedBy

        default boolean canBeDeletedBy​(User user)
        Checks the given user can delete this resource. By default, if the user can modify this securable resource, then it can also delete it.
        Parameters:
        user - a user in Silverpeas.
        Returns:
        true if the user can delete the data managed by this instance, false otherwise.
      • canBeFiledInBy

        default boolean canBeFiledInBy​(User user)
        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.
        Parameters:
        user - a user in Silverpeas.
        Returns:
        true if the user can file in this resource another resource.