Class BwGroup

    • Constructor Detail

      • BwGroup

        public BwGroup()
        Create a group
    • Method Detail

      • getKind

        public int getKind()
        Specified by:
        getKind in interface org.bedework.access.AccessPrincipal
        Specified by:
        getKind in class BwPrincipal
      • setGroupMembers

        public void setGroupMembers​(Collection<BwPrincipal> val)
        Set the members of the group.
        Parameters:
        val - Collection of group members.
      • getGroupMembers

        public Collection<BwPrincipal> getGroupMembers()
        Return the members of the group.
        Returns:
        Collection group members
      • isMember

        public boolean isMember​(String account,
                                boolean group)
        Return true if the account name is in the group members.
        Parameters:
        account -
        group - boolean true if we're testing for a group.
        Returns:
        true if the account name is in the group members.
      • addGroupMember

        public boolean addGroupMember​(BwPrincipal mbr)
        Add a group member. Return true if is was added, false if it was in the list
        Parameters:
        mbr - BwPrincipal to add
        Returns:
        boolean true if added
      • removeGroupMember

        public boolean removeGroupMember​(BwPrincipal mbr)
        Remove a group member. Return true if is was removed, false if it was not in the list
        Parameters:
        mbr - BwPrincipal to remove
        Returns:
        boolean true if removed
      • toStringSegment

        protected void toStringSegment​(org.bedework.util.misc.ToString ts)
        Overrides:
        toStringSegment in class BwPrincipal
      • copyTo

        public void copyTo​(BwGroup val)
        Copy this to val
        Parameters:
        val - BwGroup target
      • shallowCopyTo

        public void shallowCopyTo​(BwGroup val)
        Copy this to val without members
        Parameters:
        val - BwGroup target
      • shallowClone

        public BwGroup shallowClone()