Package org.ametys.plugins.core.user
Class UserSearchAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.ametys.plugins.core.user.UserSearchAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,ThreadSafe
,Action
public class UserSearchAction extends AbstractAction implements ThreadSafe, Serviceable
Get users.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
_DEFAULT_COUNT_VALUE
private static int
_DEFAULT_OFFSET_VALUE
private UserHelper
_userHelper
private UserManager
_userManager
private CurrentUserProvider
_userProvider
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description UserSearchAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
_getSearchParameters(String source)
Get the search parametersprivate void
_searchUsersByContext(List<Map<String,Object>> users, Map<String,Object> jsParameters, String source, Parameters parameters, Set<String> contexts)
private void
_searchUsersByPopulation(List<Map<String,Object>> users, Map<String,Object> jsParameters, String source, Parameters parameters, String userPopulationId, String userDirectoryId)
Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
service(ServiceManager manager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_DEFAULT_COUNT_VALUE
private static final int _DEFAULT_COUNT_VALUE
- See Also:
- Constant Field Values
-
_DEFAULT_OFFSET_VALUE
private static final int _DEFAULT_OFFSET_VALUE
- See Also:
- Constant Field Values
-
_userManager
private UserManager _userManager
-
_userHelper
private UserHelper _userHelper
-
_userProvider
private CurrentUserProvider _userProvider
-
-
Constructor Detail
-
UserSearchAction
public UserSearchAction()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
-
_getSearchParameters
protected Map<String,Object> _getSearchParameters(String source)
Get the search parameters- Parameters:
source
- The search pattern- Returns:
- the search parameters
-
_searchUsersByContext
private void _searchUsersByContext(List<Map<String,Object>> users, Map<String,Object> jsParameters, String source, Parameters parameters, Set<String> contexts)
-
-