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 organizational unit
|
void |
delete(java.lang.String uid)
Delete organizational unit
|
java.util.Set<java.lang.String> |
getAdministratorRoles(java.lang.String uid,
java.lang.String dirUid,
java.util.List<java.lang.String> groups) |
java.util.Set<java.lang.String> |
getAdministrators(java.lang.String uid) |
java.util.List<ItemValue<OrgUnit>> |
getChildren(java.lang.String uid) |
ItemValue<OrgUnit> |
getComplete(java.lang.String uid)
Fetch organizational unit by uid
|
OrgUnitPath |
getPath(java.lang.String uid)
Fetch organizational unit path by uid
|
java.util.List<OrgUnitPath> |
listByAdministrator(java.lang.String administrator,
java.util.List<java.lang.String> groups) |
void |
removeAdministrator(java.lang.String administrator) |
java.util.List<OrgUnitPath> |
search(OrgUnitQuery query)
Search
OrgUnitPath |
void |
setAdministratorRoles(java.lang.String uid,
java.lang.String dirUid,
java.util.Set<java.lang.String> roles) |
void |
update(java.lang.String uid,
OrgUnit value)
Update organizational unit
|
public ItemValue<OrgUnit> getComplete(java.lang.String uid)
IOrgUnits
getComplete
in interface IOrgUnits
ItemValue
of (OrgUnit
public void create(java.lang.String uid, OrgUnit value)
IOrgUnits
public void update(java.lang.String uid, OrgUnit value)
IOrgUnits
public void delete(java.lang.String uid)
IOrgUnits
public OrgUnitPath getPath(java.lang.String uid)
IOrgUnits
getPath
in interface IOrgUnits
uid
- OU uidItemValue
of (OrgUnitPath
public java.util.List<ItemValue<OrgUnit>> getChildren(java.lang.String uid)
getChildren
in interface IOrgUnits
public java.util.List<OrgUnitPath> search(OrgUnitQuery query)
IOrgUnits
OrgUnitPath
public void setAdministratorRoles(java.lang.String uid, java.lang.String dirUid, java.util.Set<java.lang.String> roles)
setAdministratorRoles
in interface IOrgUnits
public java.util.Set<java.lang.String> getAdministratorRoles(java.lang.String uid, java.lang.String dirUid, java.util.List<java.lang.String> groups)
getAdministratorRoles
in interface IOrgUnits
public java.util.Set<java.lang.String> getAdministrators(java.lang.String uid)
getAdministrators
in interface IOrgUnits
public java.util.List<OrgUnitPath> listByAdministrator(java.lang.String administrator, java.util.List<java.lang.String> groups)
listByAdministrator
in interface IOrgUnits
public void removeAdministrator(java.lang.String administrator)
removeAdministrator
in interface IOrgUnits
Copyright © 2021. All Rights Reserved.