Class BwGroup<T extends BwGroup<?>>

All Implemented Interfaces:
Serializable, Comparable<BwPrincipal<?>>, Comparator<BwPrincipal<?>>, org.bedework.access.AccessPrincipal, org.bedework.util.logging.Logged
Direct Known Subclasses:
BwAdminGroup

public class BwGroup<T extends BwGroup<?>> extends BwPrincipal<T>
Value object to represent a calendar group.
Version:
1.0
Author:
Mike Douglass douglm@bedework.edu
See Also:
  • Constructor Details

    • BwGroup

      public BwGroup()
      Create a group
  • Method Details

    • getKind

      public int getKind()
      Specified by:
      getKind in interface org.bedework.access.AccessPrincipal
      Specified by:
      getKind in class BwPrincipal<T extends BwGroup<?>>
    • 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
    • setMemberHrefs

      public void setMemberHrefs(Set<String> val)
    • getMemberHrefs

      public Set<String> getMemberHrefs()
    • isMember

      public boolean isMember(String account, boolean group)
      Return true if the account name is in the group members.
      Parameters:
      account - of possible group member
      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
    • toStringSegment

      protected void toStringSegment(org.bedework.util.misc.ToString ts)
      Description copied from class: BwUnversionedDbentity
      Add our stuff to the ToString object
      Overrides:
      toStringSegment in class BwPrincipal<T extends BwGroup<?>>
      Parameters:
      ts - ToString for result
    • 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
    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class BwPrincipal<T extends BwGroup<?>>
    • clone

      public Object clone()
      Description copied from class: BwUnversionedDbentity
      Make visible
      Specified by:
      clone in class BwPrincipal<T extends BwGroup<?>>
      Returns:
      Object of class T