com.liferay.portlet.usersadmin.util
Class UsersAdminUtil
java.lang.Object
com.liferay.portlet.usersadmin.util.UsersAdminUtil
public class UsersAdminUtil
- extends Object
Method Summary |
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 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 OrderByComparator |
getGroupOrderByComparator(String orderByCol,
String orderByType)
|
static Long[] |
getOrganizationIds(List<Organization> organizations)
|
static OrderByComparator |
getOrganizationOrderByComparator(String orderByCol,
String orderByType)
|
static Tuple |
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 OrderByComparator |
getRoleOrderByComparator(String orderByCol,
String orderByType)
|
static OrderByComparator |
getUserGroupOrderByComparator(String orderByCol,
String orderByType)
|
static List<UserGroupRole> |
getUserGroupRoles(PortletRequest portletRequest)
|
static OrderByComparator |
getUserOrderByComparator(String orderByCol,
String orderByType)
|
static Tuple |
getUsers(Hits hits)
|
static UsersAdmin |
getUsersAdmin()
|
static List<Website> |
getWebsites(ActionRequest actionRequest)
|
static List<Website> |
getWebsites(ActionRequest actionRequest,
List<Website> defaultWebsites)
|
static boolean |
hasUpdateEmailAddress(PermissionChecker permissionChecker,
User user)
|
static boolean |
hasUpdateScreenName(PermissionChecker permissionChecker,
User user)
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CUSTOM_QUESTION
public static final String CUSTOM_QUESTION
- See Also:
- Constant Field Values
UsersAdminUtil
public UsersAdminUtil()
addPortletBreadcrumbEntries
public static void addPortletBreadcrumbEntries(Organization organization,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
throws Exception
- Throws:
Exception
addRequiredRoles
public static long[] addRequiredRoles(long userId,
long[] roleIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addRequiredRoles
public static long[] addRequiredRoles(User user,
long[] roleIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
filterGroupRoles
public static List<Role> filterGroupRoles(PermissionChecker permissionChecker,
long groupId,
List<Role> roles)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
filterGroups
public static List<Group> filterGroups(PermissionChecker permissionChecker,
List<Group> groups)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
filterOrganizations
public static List<Organization> filterOrganizations(PermissionChecker permissionChecker,
List<Organization> organizations)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
filterRoles
public static List<Role> filterRoles(PermissionChecker permissionChecker,
List<Role> roles)
filterUserGroupRoles
public static List<UserGroupRole> filterUserGroupRoles(PermissionChecker permissionChecker,
List<UserGroupRole> userGroupRoles)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
filterUserGroups
public static List<UserGroup> filterUserGroups(PermissionChecker permissionChecker,
List<UserGroup> userGroups)
getAddresses
public static List<Address> getAddresses(ActionRequest actionRequest)
getAddresses
public static List<Address> getAddresses(ActionRequest actionRequest,
List<Address> defaultAddresses)
getEmailAddresses
public static List<EmailAddress> getEmailAddresses(ActionRequest actionRequest)
getEmailAddresses
public static List<EmailAddress> getEmailAddresses(ActionRequest actionRequest,
List<EmailAddress> defaultEmailAddresses)
getGroupOrderByComparator
public static OrderByComparator getGroupOrderByComparator(String orderByCol,
String orderByType)
getOrganizationIds
public static Long[] getOrganizationIds(List<Organization> organizations)
getOrganizationOrderByComparator
public static OrderByComparator getOrganizationOrderByComparator(String orderByCol,
String orderByType)
getOrganizations
public static Tuple getOrganizations(Hits hits)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getOrgLabors
public static List<OrgLabor> getOrgLabors(ActionRequest actionRequest)
getPhones
public static List<Phone> getPhones(ActionRequest actionRequest)
getPhones
public static List<Phone> getPhones(ActionRequest actionRequest,
List<Phone> defaultPhones)
getRoleOrderByComparator
public static OrderByComparator getRoleOrderByComparator(String orderByCol,
String orderByType)
getUserGroupOrderByComparator
public static OrderByComparator getUserGroupOrderByComparator(String orderByCol,
String orderByType)
getUserGroupRoles
public static List<UserGroupRole> getUserGroupRoles(PortletRequest portletRequest)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getUserOrderByComparator
public static OrderByComparator getUserOrderByComparator(String orderByCol,
String orderByType)
getUsers
public static Tuple getUsers(Hits hits)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getUsersAdmin
public static UsersAdmin getUsersAdmin()
getWebsites
public static List<Website> getWebsites(ActionRequest actionRequest)
getWebsites
public static List<Website> getWebsites(ActionRequest actionRequest,
List<Website> defaultWebsites)
hasUpdateEmailAddress
public static boolean hasUpdateEmailAddress(PermissionChecker permissionChecker,
User user)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasUpdateScreenName
public static boolean hasUpdateScreenName(PermissionChecker permissionChecker,
User user)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
removeRequiredRoles
public static long[] removeRequiredRoles(long userId,
long[] roleIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
removeRequiredRoles
public static long[] removeRequiredRoles(User user,
long[] roleIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateAddresses
public static void updateAddresses(String className,
long classPK,
List<Address> addresses)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateEmailAddresses
public static void updateEmailAddresses(String className,
long classPK,
List<EmailAddress> emailAddresses)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateOrgLabors
public static void updateOrgLabors(long classPK,
List<OrgLabor> orgLabors)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updatePhones
public static void updatePhones(String className,
long classPK,
List<Phone> phones)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateWebsites
public static void updateWebsites(String className,
long classPK,
List<Website> websites)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setUsersAdmin
public void setUsersAdmin(UsersAdmin usersAdmin)