Interface Group

  • All Superinterfaces:
    Adaptable, Authorizable

    public interface Group
    extends Authorizable
    Deprecated.
    cq 5.5 Use org.apache.jackrabbit.api.security.user.Group instead.
    A Group is a Set of Authorizables. They are a method to specify a single authorization to multiple Authorizables at once.
    See Also:
    Authorizable
    • Method Detail

      • isMember

        boolean isMember​(Authorizable authorizable)
        Deprecated.
        Checks if the given Authorizable is a member of the current Group. This check will validate to true for transitive group membership. Example: if Authorizable A is a direct member of Group G2 and G2 is a direct member of Group G1, than G1.isMember(A) == true. But G1.remove(A) == false as A only can be removed from G2
        Parameters:
        authorizable - in question
        Returns:
        true if the given authorizable is member of this group.
      • members

        Iterator<Authorizable> members()
        Deprecated.
        Return all Authorizables that are direct members of this Group. No transitive membership is contained, thus a call to each returned Authorizables memberOf-method contains this Group.
        Returns:
        Iterator containing all direct Members of this Group
      • addMember

        boolean addMember​(Authorizable authorizable)
        Deprecated.
        The implementation is no required to check for circular membership definition.
        Parameters:
        authorizable - to add as a Member
        Returns:
        true if the Authorizable has not been contained beforehand
      • removeMember

        boolean removeMember​(Authorizable authorizable)
        Deprecated.
        Parameters:
        authorizable - to remove
        Returns:
        true if the Authorizable has been member before