public class GroupSearchAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
private static int |
_DEFAULT_COUNT_VALUE |
private static int |
_DEFAULT_OFFSET_VALUE |
private GroupDirectoryContextHelper |
_directoryContextHelper |
private GroupDirectoryDAO |
_groupDirectoryDAO |
manager
EMPTY_MAP
Constructor and Description |
---|
GroupSearchAction() |
Modifier and Type | Method and Description |
---|---|
private void |
_addNonNullJsonGroup(List<Map<String,Object>> groups,
String groupDirectoryId,
String id) |
protected Map<String,String> |
_getSearchParameters(String source)
Get the search parameters
|
private void |
_searchGroupsByContext(List<Map<String,Object>> groups,
Map<String,Object> jsParameters,
String source,
Parameters parameters,
List<String> contexts) |
private void |
_searchGroupsByDirectory(List<Map<String,Object>> groups,
Map<String,Object> jsParameters,
String source,
Parameters parameters,
String groupDirectoryId) |
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager smanager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private static final int _DEFAULT_COUNT_VALUE
private static final int _DEFAULT_OFFSET_VALUE
private GroupDirectoryDAO _groupDirectoryDAO
private GroupDirectoryContextHelper _directoryContextHelper
public GroupSearchAction()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected Map<String,String> _getSearchParameters(String source)
source
- The search patternprivate void _searchGroupsByContext(List<Map<String,Object>> groups, Map<String,Object> jsParameters, String source, Parameters parameters, List<String> contexts)
private void _searchGroupsByDirectory(List<Map<String,Object>> groups, Map<String,Object> jsParameters, String source, Parameters parameters, String groupDirectoryId)