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.booleancanManageGroupMemberships(String groupId, String userName) Whether the given user can add or remove members of the given group as an Organizational Unit manager: the group is in the user's management perimeter (canManageGroup(String, String)) and is neither a platform group nor a group nested, at any level, inside one.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
-
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
-
canManageGroupMemberships
Whether the given user can add or remove members of the given group as an Organizational Unit manager: the group is in the user's management perimeter (canManageGroup(String, String)) and is neither a platform group nor a group nested, at any level, inside one.- Parameters:
groupId- group id to checkuserName- user name of the potential manager- Returns:
- true if the given user can manage the memberships of the group
-
setOrganizationalUnit
-