public class UsersAdminUtil
extends Object
Constructor and Description |
---|
UsersAdminUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addPortletBreadcrumbEntries(Organization organization,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.portlet.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(javax.portlet.ActionRequest actionRequest) |
static List<Address> |
getAddresses(javax.portlet.ActionRequest actionRequest,
List<Address> defaultAddresses) |
static List<EmailAddress> |
getEmailAddresses(javax.portlet.ActionRequest actionRequest) |
static List<EmailAddress> |
getEmailAddresses(javax.portlet.ActionRequest actionRequest,
List<EmailAddress> defaultEmailAddresses) |
static long[] |
getGroupIds(javax.portlet.PortletRequest portletRequest) |
static OrderByComparator<Group> |
getGroupOrderByComparator(String orderByCol,
String orderByType) |
static Long[] |
getOrganizationIds(List<Organization> organizations) |
static long[] |
getOrganizationIds(javax.portlet.PortletRequest portletRequest) |
static OrderByComparator<Organization> |
getOrganizationOrderByComparator(String orderByCol,
String orderByType) |
static List<Organization> |
getOrganizations(Hits hits) |
static List<OrgLabor> |
getOrgLabors(javax.portlet.ActionRequest actionRequest) |
static List<Phone> |
getPhones(javax.portlet.ActionRequest actionRequest) |
static List<Phone> |
getPhones(javax.portlet.ActionRequest actionRequest,
List<Phone> defaultPhones) |
static long[] |
getRoleIds(javax.portlet.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(javax.portlet.PortletRequest portletRequest) |
static OrderByComparator<UserGroup> |
getUserGroupOrderByComparator(String orderByCol,
String orderByType) |
static List<UserGroupRole> |
getUserGroupRoles(javax.portlet.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(javax.portlet.ActionRequest actionRequest) |
static List<Website> |
getWebsites(javax.portlet.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) |
public static void addPortletBreadcrumbEntries(Organization organization, javax.servlet.http.HttpServletRequest httpServletRequest, javax.portlet.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(javax.portlet.ActionRequest actionRequest)
public static List<Address> getAddresses(javax.portlet.ActionRequest actionRequest, List<Address> defaultAddresses)
public static List<EmailAddress> getEmailAddresses(javax.portlet.ActionRequest actionRequest)
public static List<EmailAddress> getEmailAddresses(javax.portlet.ActionRequest actionRequest, List<EmailAddress> defaultEmailAddresses)
public static long[] getGroupIds(javax.portlet.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(javax.portlet.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(javax.portlet.ActionRequest actionRequest)
public static List<Phone> getPhones(javax.portlet.ActionRequest actionRequest)
public static List<Phone> getPhones(javax.portlet.ActionRequest actionRequest, List<Phone> defaultPhones)
public static long[] getRoleIds(javax.portlet.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(javax.portlet.PortletRequest portletRequest) throws PortalException
PortalException
public static OrderByComparator<UserGroup> getUserGroupOrderByComparator(String orderByCol, String orderByType)
public static List<UserGroupRole> getUserGroupRoles(javax.portlet.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(javax.portlet.ActionRequest actionRequest)
public static List<Website> getWebsites(javax.portlet.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)