public class LazyGroup extends AbstractUserManagementItem implements Group, Lazy
Group.DefaultGroupFields, Group.GroupFlags, Group.GroupType
extensions, metaData
OPERATION_NOT_SUPPORTED_MESSAGE
IMMUTABLE_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, setMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExtensions, getMetadata, setExtensions, setMetadata
public int getId()
getId
in interface UserManagementItem
public String getName()
getName
in interface UserManagementItem
public String getDisplayName()
getDisplayName
in interface Group
public String getDescription()
getDescription
in interface Group
public String getMailAdress()
getMailAdress
in interface Group
public Set<Group.GroupFlags> getFlags()
public Group.GroupType getGroupType()
getGroupType
in interface Group
public Collection<Group> getGroups()
public Collection<Group> getContainedGroups()
Group
getContainedGroups
in interface Group
public Collection<User> getUsers()
Group
public Collection<User> getAllUsers(int depth)
Group
Walks through the group of group tree upto the given depth and returns all users found in this tree without duplicates.
getAllUsers
in interface Group
depth
- of group tree searchpublic int getTenant()
getTenant
in interface TenantSpecificItem
public void setFlags(Set<Group.GroupFlags> flags)
public void setTenant(int tenantId)
setTenant
in interface TenantSpecificItem
public void setName(String name)
setName
in interface UserManagementItem
public void setDisplayName(String displayName)
setDisplayName
in interface Group
public void setDescription(String description)
setDescription
in interface Group
public void setMailAdress(String mailAdress)
setMailAdress
in interface Group
public void setLanguage(String language)
setLanguage
in interface Group
public String getLanguage()
getLanguage
in interface Group
public boolean isFromExtension(String fieldName)
isFromExtension
in interface UserManagementItem
Copyright © 2016 SAPERION AG. All rights reserved.