Package org.ametys.plugins.core.group
Class GroupSearchAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.plugins.core.group.GroupSearchAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class GroupSearchAction extends ServiceableAction
Get groups
-
-
Field Summary
Fields Modifier and Type Field Description private static int
_DEFAULT_COUNT_VALUE
private static int
_DEFAULT_OFFSET_VALUE
private GroupDirectoryContextHelper
_directoryContextHelper
private GroupDirectoryDAO
_groupDirectoryDAO
private GroupHelper
_groupHelper
-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description GroupSearchAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_addNonNullJsonGroup(List<Map<String,Object>> groups, String groupDirectoryId, String id)
protected Map<String,String>
_getSearchParameters(String source)
Get the search parametersprivate 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)
-
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
-
_groupDirectoryDAO
private GroupDirectoryDAO _groupDirectoryDAO
-
_directoryContextHelper
private GroupDirectoryContextHelper _directoryContextHelper
-
_groupHelper
private GroupHelper _groupHelper
-
-
Constructor Detail
-
GroupSearchAction
public GroupSearchAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
_getSearchParameters
protected Map<String,String> _getSearchParameters(String source)
Get the search parameters- Parameters:
source
- The search pattern- Returns:
- the search parameters
-
_searchGroupsByContext
private void _searchGroupsByContext(List<Map<String,Object>> groups, Map<String,Object> jsParameters, String source, Parameters parameters, List<String> contexts)
-
_searchGroupsByDirectory
private void _searchGroupsByDirectory(List<Map<String,Object>> groups, Map<String,Object> jsParameters, String source, Parameters parameters, String groupDirectoryId)
-
-