Package net.bluemind.directory.api
Interface IOrgUnits
- All Superinterfaces:
IRestoreCrudSupport<OrgUnit>
,IRestoreItemCrudSupport<OrgUnit>
,IRestoreSupport<OrgUnit>
@Path("/directory/_ou/{domain}")
public interface IOrgUnits
extends IRestoreItemCrudSupport<OrgUnit>
Manages Organizational Units
BlueMind integrates a delegated administration functionality. It allows you
to grant limited administration rights to administrators (who become
delegated administrators). Delegated administration rights can be given to
specific users selected according to certain criteria (job type, industry,
geographical area...). The resulting group is called an
OrgUnit
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Create anOrgUnit
void
Delete anOrgUnit
getAdministratorRoles
(String orgUnitUid, String dirEntryUid, List<String> groups) Get the roles of a member or theGroup
s he is member ofgetAdministrators
(String uid, boolean hierarchical) Get the UIDs of anOrgUnit
's administratorsgetChildren
(String uid) Get all child elements of anOrgUnit
getComplete
(String uid) GetOrgUnit
by UIDGetOrgUnitPath
byOrgUnit
UIDlistByAdministrator
(String administrator, List<String> groups) Get a list ofOrgUnitPath
s by the UID of an administrator or theGroup
s he is member ofvoid
removeAdministrator
(String administrator) Remove an administrator from anOrgUnit
search
(OrgUnitQuery query) Get a list ofOrgUnitPath
s byOrgUnitQuery
void
setAdministratorRoles
(String orgUnitUid, String dirEntryUid, Set<String> roles) Grant roles to a member of anOrgUnit
void
Update anOrgUnit
Methods inherited from interface net.bluemind.core.container.api.IRestoreSupport
get, restore
-
Method Details
-
getComplete
GetOrgUnit
by UID- Specified by:
getComplete
in interfaceIRestoreItemCrudSupport<OrgUnit>
- Parameters:
uid
- UID- Returns:
ItemValue
containing theOrgUnit
, or null if not found
-
getChildren
Get all child elements of anOrgUnit
-
create
Create anOrgUnit
-
update
Update anOrgUnit
-
delete
Delete anOrgUnit
- Specified by:
delete
in interfaceIRestoreCrudSupport<OrgUnit>
- Parameters:
uid
- UID of theOrgUnit
-
getPath
GetOrgUnitPath
byOrgUnit
UID- Parameters:
uid
- UID- Returns:
OrgUnitPath
or null, if not found
-
search
Get a list ofOrgUnitPath
s byOrgUnitQuery
- Parameters:
query
-OrgUnitQuery
- Returns:
- List of matching
OrgUnitPath
s
-
setAdministratorRoles
@POST @Path("{uid}/{dirUid}/_set") void setAdministratorRoles(@PathParam("uid") String orgUnitUid, @PathParam("dirUid") String dirEntryUid, Set<String> roles) Grant roles to a member of anOrgUnit
-
getAdministratorRoles
@POST @Path("{uid}/{dirUid}") Set<String> getAdministratorRoles(@PathParam("uid") String orgUnitUid, @PathParam("dirUid") String dirEntryUid, List<String> groups) Get the roles of a member or theGroup
s he is member of -
getAdministrators
@GET @Path("{uid}/_administrators") Set<String> getAdministrators(@PathParam("uid") String uid, @QueryParam("hierarchical") boolean hierarchical) Get the UIDs of anOrgUnit
's administrators- Parameters:
uid
-OrgUnit
UID- Returns:
- Set of UIDs
-
listByAdministrator
@POST @Path("_byAdmin") List<OrgUnitPath> listByAdministrator(@QueryParam("administrator") String administrator, List<String> groups) Get a list ofOrgUnitPath
s by the UID of an administrator or theGroup
s he is member of- Parameters:
administrator
- Administrator UIDgroups
- UIDs of theGroup
s theDirEntry
is member of- Returns:
- List of
OrgUnitPath
s
-
removeAdministrator
@DELETE @Path("_deleteadmin") void removeAdministrator(@QueryParam("administrator") String administrator) Remove an administrator from anOrgUnit
- Parameters:
administrator
- Administrator UID
-