public interface GroupAdmin
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ROOT_GROUP_ID
ID of the root group (
getRootGroup()). |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupAdminListener(GroupAdminListener listener)
Register listener which will receive events about group and group type adding/removal.
|
void |
addGroupListener(GroupChangeListener listener)
Register listener which will receive group change events.
|
Group |
createGroup(GroupType type,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> properties)
Creates group of the specified type with the given name and construction properties.
|
GroupType |
createGroupType(java.lang.String name,
java.io.InputStream icon,
GroupMetaType metaInfo)
Creates a custom group type with the given name, icon and meta-type.
|
GroupType |
createGroupType(java.lang.String id,
java.lang.String name,
java.io.InputStream icon,
GroupMetaType metaInfo)
Creates a custom group type with the given ID, name, icon and meta-type.
|
Group |
findGroupByID(java.lang.String groupID)
Find group by its ID.
|
Group |
getGroup(GroupType groupType,
java.lang.String groupID)
Get group of given type with given ID.
|
GroupType |
getGroupType(java.lang.String typeID)
Returns the group type with the given ID.
|
Group |
getRootGroup()
Root group of the groups hierarchy.
|
GroupType |
getSystemGroupType()
Returns the system groups type.
|
boolean |
isGroupTypeUserCreated(java.lang.String typeID)
Returns
true if the given type is created by the user. |
<any> |
listGroups(java.lang.String ldapFilter)
List IDs groups matching given LDAP filter.
|
<any> |
listGroupsByType(java.lang.String typeID)
List IDs of groups of the given type.
|
<any> |
listGroupTypes()
List group types registered in the system.
|
void |
removeGroup(GroupType groupType,
java.lang.String groupID)
Remove group from given type with given ID.
|
void |
removeGroupAdminListener(GroupAdminListener listener)
Remove previously registered with
addGroupAdminListener(GroupAdminListener) listener. |
void |
removeGroupListener(GroupChangeListener listener)
Remove listener previously registered with
addGroupListener(GroupChangeListener) method. |
void |
removeGroupType(java.lang.String typeID)
Remove custom group type and all groups of this type.
|
void |
updateGroupType(java.lang.String id,
java.lang.String name,
java.io.InputStream icon,
GroupMetaType metaInfo)
Updates group type name, icon and meta-type.
|
static final java.lang.String ROOT_GROUP_ID
getRootGroup()).Group getRootGroup() throws ManagementException
ManagementException - is system error occursGroupType getSystemGroupType() throws ManagementException
ManagementException - is system error occursGroup createGroup(GroupType type, java.lang.String name, java.util.Map<java.lang.String,java.lang.String> properties) throws ManagementException
GroupProvider creation will be delegated to the corresponding provider.
For system groups the construction properties (if not null) will be set as properties for the group. Third party group
types may require specific properties to be able to create a group (for example gateway ID or parent group ID). Required (and optional)
properties should be described in group type's GroupMetaType.type - group typename - group nameproperties - construction propertiesManagementException - is system error occursGroup getGroup(GroupType groupType, java.lang.String groupID) throws ManagementException
groupType - group typegroupID - group IDnull, if no such group is foundManagementException - is system error occursvoid removeGroup(GroupType groupType, java.lang.String groupID) throws ManagementException
GroupProvider the removal will be delegated to the corresponding provider.groupType - group typegroupID - group IDManagementException - if system error occursGroup findGroupByID(java.lang.String groupID) throws ManagementException
groupID - group idnull if such group can not be foundManagementException - if system error occursGroupType createGroupType(java.lang.String name, java.io.InputStream icon, GroupMetaType metaInfo) throws ManagementException
name - type nameicon - type iconmetaInfo - type meta-dataManagementException - if system error occursGroupType createGroupType(java.lang.String id, java.lang.String name, java.io.InputStream icon, GroupMetaType metaInfo) throws ManagementException
id - type IDname - type nameicon - type iconmetaInfo - type meta-dataManagementException - if system error occursvoid updateGroupType(java.lang.String id,
java.lang.String name,
java.io.InputStream icon,
GroupMetaType metaInfo)
throws ManagementException
id - group type idname - type nameicon - type iconmetaInfo - type meta-infoManagementException - if system error occursGroupType getGroupType(java.lang.String typeID) throws ManagementException
typeID - type IDnull, if no such type is foundManagementException - if system error occursvoid removeGroupType(java.lang.String typeID)
throws ManagementException
typeID - ID of the type to be removedManagementException - if system error occursboolean isGroupTypeUserCreated(java.lang.String typeID)
throws ManagementException
true if the given type is created by the user.typeID - type idtrue, if the type is created by the user, false - otherwiseManagementException - if system error occurs<any> listGroups(java.lang.String ldapFilter)
throws ManagementException
Group.getProperties()).ldapFilter - LDAP filter or nullManagementException - if system error occurs<any> listGroupsByType(java.lang.String typeID)
throws ManagementException
typeID - group type IDManagementException - if system error occurs<any> listGroupTypes()
throws ManagementException
ManagementException - if system error occursvoid addGroupAdminListener(GroupAdminListener listener)
listener - listenervoid removeGroupAdminListener(GroupAdminListener listener)
addGroupAdminListener(GroupAdminListener) listener.listener - listenervoid addGroupListener(GroupChangeListener listener)
listener - listenervoid removeGroupListener(GroupChangeListener listener)
addGroupListener(GroupChangeListener) method.listener - listenerCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.