public class LazyGroup extends AbstractUserManagementItem implements Group, Lazy
Group.DefaultGroupFields, Group.GroupFlags, Group.GroupTypeextensions, metaDataOPERATION_NOT_SUPPORTED_MESSAGEIMMUTABLE_OBJECT, MISSING_PROPERTY_MESSAGE| Constructor and Description |
|---|
LazyGroup(int id) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Group group) |
Collection<User> |
getAllUsers(int depth)
Gets all users associated with this group.
|
Collection<Group> |
getContainedGroups()
Gets the groups containing this group.
|
String |
getDescription() |
String |
getDisplayName() |
Set<Group.GroupFlags> |
getFlags() |
Collection<Group> |
getGroups() |
Group.GroupType |
getGroupType() |
int |
getId() |
String |
getLanguage() |
String |
getMailAdress() |
String |
getName() |
Role |
getRole() |
int |
getTenant() |
Collection<User> |
getUsers()
Gets the users which are directly associated with this group.
|
boolean |
isFromExtension(String fieldName) |
void |
remove(Group group) |
void |
setDescription(String description) |
void |
setDisplayName(String displayName) |
void |
setFlags(Set<Group.GroupFlags> flags) |
void |
setLanguage(String language) |
void |
setMailAdress(String mailAdress) |
void |
setName(String name) |
void |
setRole(Role role) |
void |
setTenant(int tenantId) |
String |
toString() |
getBooleanValue, getExtensions, getIntValue, getMetadata, getStringValue, getValue, setExtensions, setMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExtensions, getMetadata, setExtensions, setMetadatapublic int getId()
getId in interface UserManagementItempublic String getName()
getName in interface UserManagementItempublic String getDisplayName()
getDisplayName in interface Grouppublic String getDescription()
getDescription in interface Grouppublic String getMailAdress()
getMailAdress in interface Grouppublic Set<Group.GroupFlags> getFlags()
public Group.GroupType getGroupType()
getGroupType in interface Grouppublic Collection<Group> getGroups()
public Collection<Group> getContainedGroups()
GroupgetContainedGroups in interface Grouppublic Collection<User> getUsers()
Grouppublic Collection<User> getAllUsers(int depth)
GroupWalks through the group of group tree upto the given depth and returns all users found in this tree without duplicates.
getAllUsers in interface Groupdepth - of group tree searchpublic int getTenant()
getTenant in interface TenantSpecificItempublic void setFlags(Set<Group.GroupFlags> flags)
public void setTenant(int tenantId)
setTenant in interface TenantSpecificItempublic void setName(String name)
setName in interface UserManagementItempublic void setDisplayName(String displayName)
setDisplayName in interface Grouppublic void setDescription(String description)
setDescription in interface Grouppublic void setMailAdress(String mailAdress)
setMailAdress in interface Grouppublic void setLanguage(String language)
setLanguage in interface Grouppublic String getLanguage()
getLanguage in interface Grouppublic boolean isFromExtension(String fieldName)
isFromExtension in interface UserManagementItemCopyright © 2016 SAPERION AG. All rights reserved.