@NotThreadSafe public final class UserGroup extends com.helger.commons.collections.attrs.MapBasedAttributeContainer implements IUserGroup
IUserGroup interface.| Constructor and Description |
|---|
UserGroup(String sName,
String sDescription,
Map<String,?> aCustomAttrs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsRoleID(String sRoleID)
Check if the passed role is contained in this container.
|
boolean |
containsUserID(String sUserID)
Check if the passed user is contained in this container.
|
boolean |
equals(Object o) |
Set<String> |
getAllContainedRoleIDs() |
Set<String> |
getAllContainedUserIDs() |
int |
getContainedRoleCount() |
int |
getContainedUserCount() |
String |
getDescription() |
String |
getID() |
String |
getName() |
com.helger.commons.type.ObjectType |
getTypeID() |
boolean |
hasContainedRoles() |
boolean |
hasContainedUsers() |
int |
hashCode() |
String |
toString() |
getAndSetAttributeFlag, getClone, setAttribute, setAttribute, setAttribute, setAttributeclear, containsAttribute, containsNoAttribute, getAllAttributeNames, getAllAttributes, getAllAttributeValues, getAttributeCount, getAttributeNames, getAttributeObject, onBeforeRemoveAttribute, onBeforeSetAttributeValue, removeAttribute, setAttribute, setAttributes, setAttributesgetAsBigDecimal, getAsBigInteger, getAsBoolean, getAsDouble, getAsInt, getAsLong, getAsString, getAttributeAsBigDecimal, getAttributeAsBigDecimal, getAttributeAsBigInteger, getAttributeAsBigInteger, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getAttributeAsString, getAttributeAsString, getCastedAttribute, getCastedAttribute, getTypedAttribute, getTypedAttributeclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsAttribute, containsNoAttribute, getAllAttributeNames, getAllAttributes, getAllAttributeValues, getAttributeAsBigDecimal, getAttributeAsBigDecimal, getAttributeAsBigInteger, getAttributeAsBigInteger, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getAttributeAsString, getAttributeAsString, getAttributeCount, getAttributeNames, getAttributeObject, getCastedAttribute, getCastedAttribute, getTypedAttribute, getTypedAttribute@Nonnull public com.helger.commons.type.ObjectType getTypeID()
getTypeID in interface com.helger.commons.type.IHasType@Nonnull @Nonempty public String getID()
getID in interface com.helger.commons.id.IHasID<String>@Nonnull @Nonempty public String getName()
getName in interface com.helger.commons.name.IHasName@Nullable public String getDescription()
getDescription in interface com.helger.commons.name.IHasDescriptionpublic boolean hasContainedUsers()
hasContainedUsers in interface IUserContainertrue if at least one user is contained,
false otherwise.@Nonnegative public int getContainedUserCount()
getContainedUserCount in interface IUserContainer@Nonnull @ReturnsMutableCopy public Set<String> getAllContainedUserIDs()
getAllContainedUserIDs in interface IUserContainernullbut maybe empty set of all assigned user
IDs.public boolean containsUserID(String sUserID)
IUserContainercontainsUserID in interface IUserContainersUserID - The user ID to check. May be null.true if the user is contained in this container,
false otherwise.public boolean hasContainedRoles()
hasContainedRoles in interface IRoleContainertrue if at least one role is contained,
false otherwise.@Nonnegative public int getContainedRoleCount()
getContainedRoleCount in interface IRoleContainer@Nonnull @ReturnsMutableCopy public Set<String> getAllContainedRoleIDs()
getAllContainedRoleIDs in interface IRoleContainernullbut maybe empty set of all assigned role
IDs.public boolean containsRoleID(String sRoleID)
IRoleContainercontainsRoleID in interface IRoleContainersRoleID - The role ID to check. May be null.true if the role is contained in this container,
false otherwise.public boolean equals(Object o)
public int hashCode()
Copyright © 2014–2015 Philip Helger. All rights reserved.