Package org.bedework.calfacade
Class BwGroup<T extends BwGroup<?>>
java.lang.Object
org.bedework.calfacade.base.DumpEntity<T>
org.bedework.calfacade.base.BwUnversionedDbentity<T>
org.bedework.calfacade.base.BwDbentity<BwPrincipal<?>>
org.bedework.calfacade.BwPrincipal<T>
org.bedework.calfacade.BwGroup<T>
- All Implemented Interfaces:
Serializable,Comparable<BwPrincipal<?>>,Comparator<BwPrincipal<?>>,org.bedework.access.AccessPrincipal,org.bedework.util.logging.Logged
- Direct Known Subclasses:
BwAdminGroup
Value object to represent a calendar group.
- Version:
- 1.0
- Author:
- Mike Douglass douglm@bedework.edu
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bedework.calfacade.base.DumpEntity
DumpEntity.DumpType -
Field Summary
Fields inherited from class org.bedework.calfacade.BwPrincipal
bwadmingroupPrincipalRoot, calsuitePrincipalRoot, categoryAccess, contactAccess, created, groupNames, groupPrincipalRoot, groups, hostPrincipalRoot, lastAccess, lastModify, locationAccess, logon, principalInfo, principalRoot, publicUser, publicUserHref, resourcePrincipalRoot, ticketPrincipalRoot, unauthenticated, userPrincipalRoot, venuePrincipalRoot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddGroupMember(BwPrincipal<?> mbr) Add a group member.clone()Make visiblevoidCopy this to valReturn the members of the group.intgetKind()booleanReturn 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.voidsetMemberHrefs(Set<String> val) BwGroup<?>voidshallowCopyTo(BwGroup<?> val) Copy this to val without memberstoString()protected voidtoStringSegment(org.bedework.util.misc.ToString ts) Add our stuff to the ToString objectMethods inherited from class org.bedework.calfacade.BwPrincipal
addGroup, compare, compareTo, copyTo, equals, getAccount, getAccountNoSlash, getAccountSplit, getAclAccount, getCategoryAccess, getContactAccess, getCreated, getDescription, getGroupNames, getGroups, getHref, getLastAccess, getLastModify, getLocationAccess, getLogon, getPrincipalInfo, getPrincipalRef, getQuota, getRestoreCallback, getUnauthenticated, hashCode, isPrincipal, makeGroupPrincipal, makeLocationPrincipal, makePrincipal, makePrincipal, makePrincipalHref, makeUserPrincipal, setAccount, setCategoryAccess, setContactAccess, setCreated, setDescription, setGroupNames, setGroups, setHref, setKind, setLastAccess, setLastModify, setLocationAccess, setLogon, setPrincipalInfo, setPrincipalRef, setQuota, setUnauthenticated, toStringSegmentMethods inherited from class org.bedework.calfacade.base.BwDbentity
addDeletedEntity, afterDeletion, beforeDeletion, beforeSave, beforeUpdate, getByteSize, getDeletedEntities, getSeq, length, setByteSize, setSeqMethods inherited from class org.bedework.calfacade.base.BwUnversionedDbentity
getId, markUnsaved, setId, unsavedMethods inherited from class org.bedework.calfacade.base.DumpEntity
dump, dump, getLogger, hasDumpValueMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Constructor Details
-
BwGroup
public BwGroup()Create a group
-
-
Method Details
-
getKind
public int getKind()- Specified by:
getKindin interfaceorg.bedework.access.AccessPrincipal- Specified by:
getKindin classBwPrincipal<T extends BwGroup<?>>
-
setGroupMembers
Set the members of the group.- Parameters:
val- Collection of group members.
-
getGroupMembers
Return the members of the group.- Returns:
- Collection group members
-
setMemberHrefs
-
getMemberHrefs
-
isMember
Return true if the account name is in the group members.- Parameters:
account- of possible group membergroup- boolean true if we're testing for a group.- Returns:
- true if the account name is in the group members.
-
addGroupMember
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:BwUnversionedDbentityAdd our stuff to the ToString object- Overrides:
toStringSegmentin classBwPrincipal<T extends BwGroup<?>>- Parameters:
ts- ToString for result
-
removeGroupMember
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
Copy this to val- Parameters:
val- BwGroup target
-
shallowCopyTo
Copy this to val without members- Parameters:
val- BwGroup target
-
shallowClone
-
toString
- Overrides:
toStringin classBwPrincipal<T extends BwGroup<?>>
-
clone
Description copied from class:BwUnversionedDbentityMake visible- Specified by:
clonein classBwPrincipal<T extends BwGroup<?>>- Returns:
- Object of class T
-