Class OrganizationalUnitService
java.lang.Object
io.meeds.social.organizationalunit.service.OrganizationalUnitService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanManageGroup(String groupId, String userName) Whether the given group is inside the management perimeter of the given user: either an Organizational Unit the user directly manages, or a group nested, at any level, inside such an Organizational Unit.getManagedOrganizationalUnits(String userName) booleanisManagedOrganizationalUnit(String groupId, String userName) booleanisOrganizationalUnit(String groupId) voidsetOrganizationalUnit(String groupId, boolean organizationalUnit)
-
Constructor Details
-
OrganizationalUnitService
public OrganizationalUnitService()
-
-
Method Details
-
isOrganizationalUnit
-
getManagedOrganizationalUnits
- Returns:
- the Organizational Units the given user directly manages
(
manageror*membership on the Organizational Unit group itself, not inherited from a parent group).
-
isManagedOrganizationalUnit
- Returns:
- true if the given group is designated as an Organizational Unit
that the given user directly manages (
manageror*membership on the Organizational Unit group itself, not inherited from a parent group).
-
canManageGroup
Whether the given group is inside the management perimeter of the given user: either an Organizational Unit the user directly manages, or a group nested, at any level, inside such an Organizational Unit.- Parameters:
groupId- group id to checkuserName- user name of the potential manager- Returns:
- true if the given user can manage the given group
-
setOrganizationalUnit
- Throws:
Exception
-