com.dotmarketing.portlets.usermanager.factories
Class UserManagerListBuilderFactory

java.lang.Object
  extended by com.dotmarketing.portlets.usermanager.factories.UserManagerListBuilderFactory

public class UserManagerListBuilderFactory
extends java.lang.Object

Author:
David Torres, Oswaldo Gallango

Constructor Summary
UserManagerListBuilderFactory()
           
 
Method Summary
static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> doSearch(UserManagerListSearchForm form)
           
static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> doSearch(UserManagerListSearchForm form, boolean isCount)
          Return the list of user ids or the count of users from the given search form
static java.util.List<UserProxy> getUserProxiesFromList(java.lang.String userIdList)
          Get a String with the userIds of the users to retrieve, separated by a "," and return an arraylist of the userproxies that represent those userIds
static boolean isFullCommand(javax.portlet.ActionRequest req)
          Check the request to know if the form have the fullCommmand value set is set or not
static boolean isUserManagerAdmin(com.liferay.portal.model.User user)
           
static java.lang.String loadFullCommand(javax.portlet.ActionRequest req)
          return a String with the userIds that are retieved from a UserManager's SearchForm, also save that String to the session in this variable "usersFullCommand"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserManagerListBuilderFactory

public UserManagerListBuilderFactory()
Method Detail

doSearch

public static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> doSearch(UserManagerListSearchForm form)

doSearch

public static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> doSearch(UserManagerListSearchForm form,
                                                                                        boolean isCount)
Return the list of user ids or the count of users from the given search form

Parameters:
form -
isCount -
Returns:

isUserManagerAdmin

public static boolean isUserManagerAdmin(com.liferay.portal.model.User user)
                                  throws com.liferay.portal.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

isFullCommand

public static boolean isFullCommand(javax.portlet.ActionRequest req)
Check the request to know if the form have the fullCommmand value set is set or not

Parameters:
req - the request to be checked
Returns:
the value of the fullCommand parameter

loadFullCommand

public static java.lang.String loadFullCommand(javax.portlet.ActionRequest req)
return a String with the userIds that are retieved from a UserManager's SearchForm, also save that String to the session in this variable "usersFullCommand"

Parameters:
req - the request where the UserManagerListSearchForm object is store
Returns:
String with the userIds, separated by ","

getUserProxiesFromList

public static java.util.List<UserProxy> getUserProxiesFromList(java.lang.String userIdList)
Get a String with the userIds of the users to retrieve, separated by a "," and return an arraylist of the userproxies that represent those userIds

Parameters:
userIdList - userIds to be retrieved
Returns:
a list of userProxy that represent those user


Copyright © 2013 dotCMS Inc. All Rights Reserved.