public interface GroupManager extends Remote
Modifier and Type | Method and Description |
---|---|
Item |
addUsers(long groupId,
NamedValue[] def,
AttributeRequest[] attributes)
Adds members and managers to an existing group.
|
Item |
createGroup(NamedValue[] def,
AttributeRequest[] attributes)
Creates a new group, returning an Item that represents it.
|
void |
deleteGroup(long groupId)
Deletes a group.
|
Item[] |
findGroups(NamedValue[] def,
AttributeRequest[] attributes)
Returns a set of GROUPs.
|
Item |
removeUsers(long groupId,
NamedValue[] def,
AttributeRequest[] attributes)
Removes members and managers from an existing group.
|
Item |
updateGroup(long groupId,
NamedValue[] def,
AttributeRequest[] attributes)
Updates a group.
|
Item createGroup(NamedValue[] def, AttributeRequest[] attributes) throws FdkException
The returned Item will be of the type Group.
def
- Attributes of the new group. Valid attributes:
attributes
- Additional attributes on the new group to return.FdkException
- if the operation failsItem updateGroup(long groupId, NamedValue[] def, AttributeRequest[] attributes) throws FdkException
Note that it is preferable to update the member/manager lists using add/removeUsers unless it is impossible or expensive to calculate the necessary changes.
groupId
- The id of the group to update.def
- New attributes of the group. Valid attributes:
attributes
- Additional attributes on the group to return.FdkException
- if the operation failsItem addUsers(long groupId, NamedValue[] def, AttributeRequest[] attributes) throws FdkException
groupId
- The id of the group to update.def
- New attributes of the group. Valid attributes:
attributes
- Additional attributes on the group to return.FdkException
- if the operation failsItem removeUsers(long groupId, NamedValue[] def, AttributeRequest[] attributes) throws FdkException
groupId
- The id of the group to update.def
- New attributes of the group. Valid attributes:
attributes
- Additional attributes on the group to return.FdkException
- if the operation failsvoid deleteGroup(long groupId) throws FdkException
groupId
- The id of the group to delete.FdkException
- if the operation failsItem[] findGroups(NamedValue[] def, AttributeRequest[] attributes) throws FdkException
The NAME attribute is used as a name filter. Both database-style and
Windows-style wildcards -- e.g. _ ? % *
are accepted.
The HAS_MEMBER filter option will ensure that only groups where the specified USER or GROUP ID is a member of the group (or any sub-group, recursively). Managers of a group are considered members.
The HAS_MEMBER filter option cannot be specified if either the IS_MEMBER_OF or the IS_MANAGER_OF filter option is specified. Setting the IS_MEMBER_OF or IS_MANAGER_OF filter option to TRUE will automatically specify the current USER ID as the value for HAS_MEMBER or HAS_MANAGER, respectively, resulting in a query of the form "find groups the current user belongs to" or "find groups the current user manages". Passing FALSE for either of these two options is the same as not specifying them.
The returned Items will be of type GROUP.
If the primary or secondary sort attributes are specified but the corresponding sort directions are not specified, the sorting defaults to ascending order. The sorting order is ascending if the sort direction is explicitly set to TRUE and descending if the sort direction is set to FALSE.
Sort attribute names must be defined in the Attributes class and have data types that implement the Comparable interface.
def
- filter and sort options:
attributes
- attributes to return for each GROUPFdkException
- if the operation failsCopyright © 2023. All rights reserved.