Class BwGroup
- java.lang.Object
-
- org.bedework.bwcli.copiedCalFacade.BwPrincipal
-
- org.bedework.bwcli.copiedCalFacade.BwGroup
-
- All Implemented Interfaces:
Serializable,Comparable<BwPrincipal>,Comparator<BwPrincipal>,org.bedework.access.AccessPrincipal
- Direct Known Subclasses:
BwAdminGroup
public class BwGroup extends BwPrincipal
Value object to represent a calendar group.- Version:
- 1.0
- Author:
- Mike Douglass douglm@bedework.edu
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.bedework.bwcli.copiedCalFacade.BwPrincipal
bwadmingroupPrincipalRoot, categoryAccess, contactAccess, created, groupNames, groupPrincipalRoot, groups, hostPrincipalRoot, lastAccess, lastModify, locationAccess, logon, principalRoot, publicUser, resourcePrincipalRoot, ticketPrincipalRoot, unauthenticated, userPrincipalRoot, venuePrincipalRoot
-
-
Constructor Summary
Constructors Constructor Description BwGroup()Create a group
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddGroupMember(BwPrincipal mbr)Add a group member.Objectclone()voidcopyTo(BwGroup val)Copy this to valCollection<BwPrincipal>getGroupMembers()Return the members of the group.intgetKind()booleanisMember(String account, boolean group)Return true if the account name is in the group members.booleanremoveGroupMember(BwPrincipal mbr)Remove a group member.voidsetGroupMembers(Collection<BwPrincipal> val)Set the members of the group.BwGroupshallowClone()voidshallowCopyTo(BwGroup val)Copy this to val without membersStringtoString()protected voidtoStringSegment(org.bedework.util.misc.ToString ts)-
Methods inherited from class org.bedework.bwcli.copiedCalFacade.BwPrincipal
addGroup, compare, compareTo, copyTo, equals, getAccount, getAclAccount, getCategoryAccess, getContactAccess, getCreated, getDescription, getGroupNames, getGroups, getLastAccess, getLastModify, getLocationAccess, getLogon, getPrincipalRef, getQuota, getUnauthenticated, hashCode, isPrincipal, makePrincipalHref, setAccount, setCategoryAccess, setContactAccess, setCreated, setDescription, setGroupNames, setGroups, setKind, setLastAccess, setLastModify, setLocationAccess, setLogon, setPrincipalRef, setQuota, setUnauthenticated, toStringSegment
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
getKind
public int getKind()
- Specified by:
getKindin interfaceorg.bedework.access.AccessPrincipal- Specified by:
getKindin classBwPrincipal
-
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:
toStringSegmentin classBwPrincipal
-
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:
toStringin classBwPrincipal
-
clone
public Object clone()
- Specified by:
clonein classBwPrincipal
-
-