Constructor and Description |
---|
OrgUnits(BmContext context,
ItemValue<Domain> domain,
Container container) |
Modifier and Type | Method and Description |
---|---|
void |
create(java.lang.String uid,
OrgUnit value)
Create an
OrgUnit |
void |
delete(java.lang.String uid)
Delete an
OrgUnit |
java.util.Set<java.lang.String> |
getAdministratorRoles(java.lang.String uid,
java.lang.String dirUid,
java.util.List<java.lang.String> groups)
Get the roles of a member or the
Group s he is
member of |
java.util.Set<java.lang.String> |
getAdministrators(java.lang.String uid)
Get the UIDs of an
OrgUnit 's administrators |
java.util.List<ItemValue<OrgUnit>> |
getChildren(java.lang.String uid)
Get all child elements of an
OrgUnit |
ItemValue<OrgUnit> |
getComplete(java.lang.String uid)
Get
OrgUnit by UID |
OrgUnitPath |
getPath(java.lang.String uid)
Get
OrgUnitPath by OrgUnit UID |
java.util.List<OrgUnitPath> |
listByAdministrator(java.lang.String administrator,
java.util.List<java.lang.String> groups)
Get a list of
OrgUnitPath s by the UID of an administrator or the
Group s he is member of |
void |
removeAdministrator(java.lang.String administrator)
Remove an administrator from an
OrgUnit |
java.util.List<OrgUnitPath> |
search(OrgUnitQuery query)
Get a list of
OrgUnitPath s by OrgUnitQuery |
void |
setAdministratorRoles(java.lang.String uid,
java.lang.String dirUid,
java.util.Set<java.lang.String> roles)
Grant roles to a member of an
OrgUnit |
void |
update(java.lang.String uid,
OrgUnit value)
Update an
OrgUnit |
public ItemValue<OrgUnit> getComplete(java.lang.String uid)
IOrgUnits
OrgUnit
by UIDgetComplete
in interface IOrgUnits
uid
- UIDItemValue
containing the
OrgUnit
, or null if not foundpublic void create(java.lang.String uid, OrgUnit value)
IOrgUnits
OrgUnit
public void update(java.lang.String uid, OrgUnit value)
IOrgUnits
OrgUnit
public void delete(java.lang.String uid)
IOrgUnits
OrgUnit
public OrgUnitPath getPath(java.lang.String uid)
IOrgUnits
OrgUnitPath
by OrgUnit
UIDgetPath
in interface IOrgUnits
uid
- UIDOrgUnitPath
or null, if not foundpublic java.util.List<ItemValue<OrgUnit>> getChildren(java.lang.String uid)
IOrgUnits
OrgUnit
getChildren
in interface IOrgUnits
uid
- OrgUnit
UIDItemValue
s containing the
OrgUnit
spublic java.util.List<OrgUnitPath> search(OrgUnitQuery query)
IOrgUnits
OrgUnitPath
s by OrgUnitQuery
search
in interface IOrgUnits
query
- OrgUnitQuery
OrgUnitPath
spublic void setAdministratorRoles(java.lang.String uid, java.lang.String dirUid, java.util.Set<java.lang.String> roles)
IOrgUnits
OrgUnit
setAdministratorRoles
in interface IOrgUnits
uid
- OrgUnit
UIDdirUid
- UID of the member's DirEntry
objectroles
- Set of rolespublic java.util.Set<java.lang.String> getAdministratorRoles(java.lang.String uid, java.lang.String dirUid, java.util.List<java.lang.String> groups)
IOrgUnits
Group
s he is
member ofpublic java.util.Set<java.lang.String> getAdministrators(java.lang.String uid)
IOrgUnits
OrgUnit
's administratorsgetAdministrators
in interface IOrgUnits
uid
- OrgUnit
UIDpublic java.util.List<OrgUnitPath> listByAdministrator(java.lang.String administrator, java.util.List<java.lang.String> groups)
IOrgUnits
OrgUnitPath
s by the UID of an administrator or the
Group
s he is member oflistByAdministrator
in interface IOrgUnits
administrator
- Administrator UIDgroups
- UIDs of the Group
s
the DirEntry
is member ofOrgUnitPath
spublic void removeAdministrator(java.lang.String administrator)
IOrgUnits
OrgUnit
removeAdministrator
in interface IOrgUnits
administrator
- Administrator UIDCopyright © 2021. All Rights Reserved.