public interface GroupProvider
| Modifier and Type | Method and Description |
|---|---|
Group |
createGroup(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> properties)
Create group given name and construction properties.
|
<any> |
filterGroups(<any> groupIDs,
java.lang.String ldapFilter)
Filter a set of groups.
|
Group |
getGroup(java.lang.String groupID)
Get group by ID.
|
GroupType |
getType()
Returns the type of groups supported by this provider.
|
boolean |
hasGroup(java.lang.String groupID)
Does the provider has a group with the given ID?
|
boolean |
isInSubtree(java.lang.String groupID,
java.lang.String deviceType,
java.lang.String deviceID)
Returns
true if the given device is member of the sub-tree starting from the group with the given ID, otherwise -
false. |
<any> |
listComponents(<any> groupIDs,
java.lang.String cuFilter,
boolean includeChildGroups)
List components, contained in the specified groups (and optionally their sub-groups), that match given control unit filter.
|
<any> |
listComponents(java.lang.String cuFilter)
List all components, contained in groups by this provider, that match given control unit filter.
|
<any> |
listComponents(java.lang.String groupID,
java.lang.String cuType,
java.lang.String cuFilter)
List components from given type contained in specified group that match given control unit filter.
|
<any> |
listGroups(java.lang.String ldapFilter)
List groups matching given LDAP filter.
|
<any> |
listRootGroups(java.lang.String ldapFilter)
List groups from this provider which have no parent.
|
void |
removeGroup(java.lang.String groupID)
Remove the specified group.
|
void |
setCallback(GroupAdminCallback callback)
When this service is registered in the mPRM the group admin will use this method to pass the service callback through which it can
notify the admin for changes in its group hierarchy.
|
void setCallback(GroupAdminCallback callback)
callback - callback to the group adminGroupType getType()
<any> listRootGroups(java.lang.String ldapFilter)
throws ManagementException
GroupAdmin.getRootGroup()). LDAP filter can be used to refine the result set.ldapFilter - LDAP filter or null for all groupsManagementException - if system error occurs<any> listGroups(java.lang.String ldapFilter)
throws ManagementException
ldapFilter - LDAP filter or null for all groupsManagementException - if system error occurs<any> filterGroups(<any> groupIDs,
java.lang.String ldapFilter)
throws ManagementException
groupIDs - IDs of groups that must be filteredldapFilter - LDAP filterManagementException - if system error occurs<any> listComponents(java.lang.String cuFilter)
throws ManagementException
cuFilter - control unit filter or nullManagementException - if system error occurs<any> listComponents(<any> groupIDs,
java.lang.String cuFilter,
boolean includeChildGroups)
throws ManagementException
groupIDs - group IDscuFilter - control unit filter or nullincludeChildGroups - include components from sub-groups?ManagementException - if system error occurs<any> listComponents(java.lang.String groupID,
java.lang.String cuType,
java.lang.String cuFilter)
throws ManagementException
groupID - group IDcuType - control unit typecuFilter - control unit filter or nullManagementException - if system error occursboolean hasGroup(java.lang.String groupID)
groupID - group IDboolean isInSubtree(java.lang.String groupID,
java.lang.String deviceType,
java.lang.String deviceID)
throws ManagementException
true if the given device is member of the sub-tree starting from the group with the given ID, otherwise -
false.groupID - sub-tree root group IDdeviceType - device typedeviceID - device IDtrue if the device is in the sub-tree, otherwise - falseManagementExceptionGroup getGroup(java.lang.String groupID) throws ManagementException
groupID - group IDnull, if the provider has no such groupManagementException - if system error occursGroup createGroup(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> properties) throws ManagementException
GroupMetaType.name - group name, can not be nullproperties - construction properties, may be null if not requiredManagementException - if system error occursvoid removeGroup(java.lang.String groupID)
throws ManagementException
groupID - group IDManagementException - if system error occursCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.