Liferay 6.2-ce-ga5

com.liferay.portlet.usersadmin.util
Class UsersAdminUtil

java.lang.Object
  extended by com.liferay.portlet.usersadmin.util.UsersAdminUtil

public class UsersAdminUtil
extends Object


Field Summary
static String CUSTOM_QUESTION
          Deprecated. As of 6.2.0, replaced by UsersAdmin.CUSTOM_QUESTION
 
Constructor Summary
UsersAdminUtil()
           
 
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 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 getGroupOrderByComparator(String orderByCol, String orderByType)
           
static Long[] getOrganizationIds(List<Organization> organizations)
           
static long[] getOrganizationIds(PortletRequest portletRequest)
           
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 long[] getRoleIds(PortletRequest portletRequest)
           
static OrderByComparator getRoleOrderByComparator(String orderByCol, String orderByType)
           
static long[] getUserGroupIds(PortletRequest portletRequest)
           
static OrderByComparator getUserGroupOrderByComparator(String orderByCol, String orderByType)
           
static List<UserGroupRole> getUserGroupRoles(PortletRequest portletRequest)
           
static Tuple getUserGroups(Hits hits)
           
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)
          Deprecated. As of 6.2.0, replaced by hasUpdateFieldPermission(PermissionChecker, User, User, String)
static boolean hasUpdateFieldPermission(PermissionChecker permissionChecker, User updatingUser, User updatedUser, String field)
           
static boolean hasUpdateFieldPermission(User user, String field)
          Deprecated. As of 6.2.0, replaced by hasUpdateFieldPermission(PermissionChecker, User, User, String)
static boolean hasUpdateScreenName(PermissionChecker permissionChecker, User user)
          Deprecated. As of 6.2.0, replaced by hasUpdateFieldPermission(PermissionChecker, User, User, String)
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
 

Field Detail

CUSTOM_QUESTION

public static final String CUSTOM_QUESTION
Deprecated. As of 6.2.0, replaced by UsersAdmin.CUSTOM_QUESTION
See Also:
Constant Field Values
Constructor Detail

UsersAdminUtil

public UsersAdminUtil()
Method Detail

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)

filterUnsetGroupUserIds

public static long[] filterUnsetGroupUserIds(PermissionChecker permissionChecker,
                                             long groupId,
                                             long[] userIds)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

filterUnsetOrganizationUserIds

public static long[] filterUnsetOrganizationUserIds(PermissionChecker permissionChecker,
                                                    long organizationId,
                                                    long[] userIds)
                                             throws PortalException,
                                                    SystemException
Throws:
PortalException
SystemException

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)

getGroupIds

public static long[] getGroupIds(PortletRequest portletRequest)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getGroupOrderByComparator

public static OrderByComparator getGroupOrderByComparator(String orderByCol,
                                                          String orderByType)

getOrganizationIds

public static Long[] getOrganizationIds(List<Organization> organizations)

getOrganizationIds

public static long[] getOrganizationIds(PortletRequest portletRequest)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

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)

getRoleIds

public static long[] getRoleIds(PortletRequest portletRequest)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getRoleOrderByComparator

public static OrderByComparator getRoleOrderByComparator(String orderByCol,
                                                         String orderByType)

getUserGroupIds

public static long[] getUserGroupIds(PortletRequest portletRequest)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getUserGroupOrderByComparator

public static OrderByComparator getUserGroupOrderByComparator(String orderByCol,
                                                              String orderByType)

getUserGroupRoles

public static List<UserGroupRole> getUserGroupRoles(PortletRequest portletRequest)
                                             throws PortalException,
                                                    SystemException
Throws:
PortalException
SystemException

getUserGroups

public static Tuple getUserGroups(Hits hits)
                           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
Deprecated. As of 6.2.0, replaced by hasUpdateFieldPermission(PermissionChecker, User, User, String)

Throws:
PortalException
SystemException

hasUpdateFieldPermission

public static boolean hasUpdateFieldPermission(PermissionChecker permissionChecker,
                                               User updatingUser,
                                               User updatedUser,
                                               String field)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

hasUpdateFieldPermission

@Deprecated
public static boolean hasUpdateFieldPermission(User user,
                                                          String field)
                                        throws PortalException,
                                               SystemException
Deprecated. As of 6.2.0, replaced by hasUpdateFieldPermission(PermissionChecker, User, User, String)

Throws:
PortalException
SystemException

hasUpdateScreenName

public static boolean hasUpdateScreenName(PermissionChecker permissionChecker,
                                          User user)
                                   throws PortalException,
                                          SystemException
Deprecated. As of 6.2.0, replaced by hasUpdateFieldPermission(PermissionChecker, User, User, String)

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)

Liferay 6.2-ce-ga5