@ProviderType
public class UsersAdminUtil
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CUSTOM_QUESTION
Deprecated.
As of Wilberforce (7.0.x), replaced by
UsersAdmin.CUSTOM_QUESTION |
Constructor and Description |
---|
UsersAdminUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addPortletBreadcrumbEntries(Organization organization,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse) |
static long[] |
addRequiredRoles(long userId,
long[] roleIds) |
static long[] |
addRequiredRoles(User user,
long[] roleIds) |
static List<Role> |
filterGroupRoles(PermissionChecker permissionChecker,
long groupId,
List<Role> roles) |
static List<Group> |
filterGroups(PermissionChecker permissionChecker,
List<Group> groups) |
static List<Organization> |
filterOrganizations(PermissionChecker permissionChecker,
List<Organization> organizations) |
static List<Role> |
filterRoles(PermissionChecker permissionChecker,
List<Role> roles) |
static long[] |
filterUnsetGroupUserIds(PermissionChecker permissionChecker,
long groupId,
long[] userIds) |
static long[] |
filterUnsetOrganizationUserIds(PermissionChecker permissionChecker,
long organizationId,
long[] userIds) |
static List<UserGroupRole> |
filterUserGroupRoles(PermissionChecker permissionChecker,
List<UserGroupRole> userGroupRoles) |
static List<UserGroup> |
filterUserGroups(PermissionChecker permissionChecker,
List<UserGroup> userGroups) |
static List<Address> |
getAddresses(ActionRequest actionRequest) |
static List<Address> |
getAddresses(ActionRequest actionRequest,
List<Address> defaultAddresses) |
static List<EmailAddress> |
getEmailAddresses(ActionRequest actionRequest) |
static List<EmailAddress> |
getEmailAddresses(ActionRequest actionRequest,
List<EmailAddress> defaultEmailAddresses) |
static long[] |
getGroupIds(PortletRequest portletRequest) |
static OrderByComparator<Group> |
getGroupOrderByComparator(String orderByCol,
String orderByType) |
static Long[] |
getOrganizationIds(List<Organization> organizations) |
static long[] |
getOrganizationIds(PortletRequest portletRequest) |
static OrderByComparator<Organization> |
getOrganizationOrderByComparator(String orderByCol,
String orderByType) |
static List<Organization> |
getOrganizations(Hits hits) |
static List<OrgLabor> |
getOrgLabors(ActionRequest actionRequest) |
static List<Phone> |
getPhones(ActionRequest actionRequest) |
static List<Phone> |
getPhones(ActionRequest actionRequest,
List<Phone> defaultPhones) |
static long[] |
getRoleIds(PortletRequest portletRequest) |
static OrderByComparator<Role> |
getRoleOrderByComparator(String orderByCol,
String orderByType) |
static <T> String |
getUserColumnText(Locale locale,
List<? extends T> list,
Accessor<T,String> accessor,
int count) |
static long[] |
getUserGroupIds(PortletRequest portletRequest) |
static OrderByComparator<UserGroup> |
getUserGroupOrderByComparator(String orderByCol,
String orderByType) |
static List<UserGroupRole> |
getUserGroupRoles(PortletRequest portletRequest) |
static List<UserGroup> |
getUserGroups(Hits hits) |
static OrderByComparator<User> |
getUserOrderByComparator(String orderByCol,
String orderByType) |
static List<User> |
getUsers(Hits hits) |
static UsersAdmin |
getUsersAdmin() |
static List<Website> |
getWebsites(ActionRequest actionRequest) |
static List<Website> |
getWebsites(ActionRequest actionRequest,
List<Website> defaultWebsites) |
static boolean |
hasUpdateFieldPermission(PermissionChecker permissionChecker,
User updatingUser,
User updatedUser,
String field) |
static long[] |
removeRequiredRoles(long userId,
long[] roleIds) |
static long[] |
removeRequiredRoles(User user,
long[] roleIds) |
void |
setUsersAdmin(UsersAdmin usersAdmin) |
static void |
updateAddresses(String className,
long classPK,
List<Address> addresses) |
static void |
updateEmailAddresses(String className,
long classPK,
List<EmailAddress> emailAddresses) |
static void |
updateOrgLabors(long classPK,
List<OrgLabor> orgLabors) |
static void |
updatePhones(String className,
long classPK,
List<Phone> phones) |
static void |
updateWebsites(String className,
long classPK,
List<Website> websites) |
@Deprecated public static final String CUSTOM_QUESTION
UsersAdmin.CUSTOM_QUESTION
public static void addPortletBreadcrumbEntries(Organization organization, javax.servlet.http.HttpServletRequest request, RenderResponse renderResponse) throws Exception
Exception
public static long[] addRequiredRoles(long userId, long[] roleIds) throws PortalException
PortalException
public static long[] addRequiredRoles(User user, long[] roleIds) throws PortalException
PortalException
public static List<Role> filterGroupRoles(PermissionChecker permissionChecker, long groupId, List<Role> roles) throws PortalException
PortalException
public static List<Group> filterGroups(PermissionChecker permissionChecker, List<Group> groups) throws PortalException
PortalException
public static List<Organization> filterOrganizations(PermissionChecker permissionChecker, List<Organization> organizations) throws PortalException
PortalException
public static List<Role> filterRoles(PermissionChecker permissionChecker, List<Role> roles)
public static long[] filterUnsetGroupUserIds(PermissionChecker permissionChecker, long groupId, long[] userIds) throws PortalException
PortalException
public static long[] filterUnsetOrganizationUserIds(PermissionChecker permissionChecker, long organizationId, long[] userIds) throws PortalException
PortalException
public static List<UserGroupRole> filterUserGroupRoles(PermissionChecker permissionChecker, List<UserGroupRole> userGroupRoles) throws PortalException
PortalException
public static List<UserGroup> filterUserGroups(PermissionChecker permissionChecker, List<UserGroup> userGroups)
public static List<Address> getAddresses(ActionRequest actionRequest)
public static List<Address> getAddresses(ActionRequest actionRequest, List<Address> defaultAddresses)
public static List<EmailAddress> getEmailAddresses(ActionRequest actionRequest)
public static List<EmailAddress> getEmailAddresses(ActionRequest actionRequest, List<EmailAddress> defaultEmailAddresses)
public static long[] getGroupIds(PortletRequest portletRequest) throws PortalException
PortalException
public static OrderByComparator<Group> getGroupOrderByComparator(String orderByCol, String orderByType)
public static Long[] getOrganizationIds(List<Organization> organizations)
public static long[] getOrganizationIds(PortletRequest portletRequest) throws PortalException
PortalException
public static OrderByComparator<Organization> getOrganizationOrderByComparator(String orderByCol, String orderByType)
public static List<Organization> getOrganizations(Hits hits) throws PortalException
PortalException
public static List<OrgLabor> getOrgLabors(ActionRequest actionRequest)
public static List<Phone> getPhones(ActionRequest actionRequest)
public static List<Phone> getPhones(ActionRequest actionRequest, List<Phone> defaultPhones)
public static long[] getRoleIds(PortletRequest portletRequest) throws PortalException
PortalException
public static OrderByComparator<Role> getRoleOrderByComparator(String orderByCol, String orderByType)
public static <T> String getUserColumnText(Locale locale, List<? extends T> list, Accessor<T,String> accessor, int count)
public static long[] getUserGroupIds(PortletRequest portletRequest) throws PortalException
PortalException
public static OrderByComparator<UserGroup> getUserGroupOrderByComparator(String orderByCol, String orderByType)
public static List<UserGroupRole> getUserGroupRoles(PortletRequest portletRequest) throws PortalException
PortalException
public static List<UserGroup> getUserGroups(Hits hits) throws PortalException
PortalException
public static OrderByComparator<User> getUserOrderByComparator(String orderByCol, String orderByType)
public static List<User> getUsers(Hits hits) throws PortalException
PortalException
public static UsersAdmin getUsersAdmin()
public static List<Website> getWebsites(ActionRequest actionRequest)
public static List<Website> getWebsites(ActionRequest actionRequest, List<Website> defaultWebsites)
public static boolean hasUpdateFieldPermission(PermissionChecker permissionChecker, User updatingUser, User updatedUser, String field) throws PortalException
PortalException
public static long[] removeRequiredRoles(long userId, long[] roleIds) throws PortalException
PortalException
public static long[] removeRequiredRoles(User user, long[] roleIds) throws PortalException
PortalException
public static void updateAddresses(String className, long classPK, List<Address> addresses) throws PortalException
PortalException
public static void updateEmailAddresses(String className, long classPK, List<EmailAddress> emailAddresses) throws PortalException
PortalException
public static void updateOrgLabors(long classPK, List<OrgLabor> orgLabors) throws PortalException
PortalException
public static void updatePhones(String className, long classPK, List<Phone> phones) throws PortalException
PortalException
public static void updateWebsites(String className, long classPK, List<Website> websites) throws PortalException
PortalException
public void setUsersAdmin(UsersAdmin usersAdmin)