public final class OrgUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsOrgAdminGroup(java.util.Collection<? extends PrincipalGroupModel> groups)
Checks whether the a collection of principal groups contains a group that has the organizational admin role
assigned.
|
static <T extends PrincipalModel> |
createOrgUnitMemberParameter(java.lang.String uid,
java.util.Set<T> members,
java.lang.Class<T> type,
PageableData pageableData)
Creates the org unit member parameter.
|
static java.util.List<java.lang.String> |
getRoleUids()
Gets the role uids that are configured in project.properties file.
|
static boolean |
isAdmin(EmployeeModel employee)
Checks whether the given employee is the admin of an organizational unit.
|
protected static boolean |
isAdminRole(java.lang.String roleUid) |
public static java.util.List<java.lang.String> getRoleUids()
public static boolean isAdmin(EmployeeModel employee)
employee - the employee to checktrue if the employee is an admin, false otherwisepublic static boolean containsOrgAdminGroup(java.util.Collection<? extends PrincipalGroupModel> groups)
groups - the collection of groups to checktrue if the collection contains an admin group, false otherwiseprotected static boolean isAdminRole(java.lang.String roleUid)
public static <T extends PrincipalModel> OrgUnitMemberParameter<T> createOrgUnitMemberParameter(java.lang.String uid, java.util.Set<T> members, java.lang.Class<T> type, PageableData pageableData)
T - the generic typeuid - the uidmembers - the memberstype - the typepageableData - the pageable dataCopyright © 2018 SAP SE. All Rights Reserved.