Package org.ametys.cms.search.cocoon
Class ModelRepeaterColumnsAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.cms.search.cocoon.ModelRepeaterColumnsAction
-
- All Implemented Interfaces:
Component,Contextualizable,LogEnabled,Serviceable,Action
public class ModelRepeaterColumnsAction extends ServiceableAction implements Contextualizable
SAX the columns of a repeater for the search tool.
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentTypesHelper_contentTypesHelperContent Types helperprivate Context_contextprotected AmetysObjectResolver_resolverThe Ametys object resolverprotected SearchUIModelHelper_searchUIModelHelperSearch UI Model helperprotected ServerCommHelper_serverCommHelperThe servercomm helperprivate ServiceManager_smanager-
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 ModelRepeaterColumnsAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void_addAttributeToResults(List<Object> columns, ModelItem modelItem, String attributePath, Collection<String> contentTypes)private Configuration_getColumnConfiguration(ModelItem modelItem, Collection<String> contentTypes)private boolean_isEditionAllowed(ModelItem modelItem)Mapact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)voidcontextualize(Context context)voidservice(ServiceManager smanager)-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_serverCommHelper
protected ServerCommHelper _serverCommHelper
The servercomm helper
-
_resolver
protected AmetysObjectResolver _resolver
The Ametys object resolver
-
_contentTypesHelper
protected ContentTypesHelper _contentTypesHelper
Content Types helper
-
_searchUIModelHelper
protected SearchUIModelHelper _searchUIModelHelper
Search UI Model helper
-
_smanager
private ServiceManager _smanager
-
-
Constructor Detail
-
ModelRepeaterColumnsAction
public ModelRepeaterColumnsAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableAction- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
-
_addAttributeToResults
private void _addAttributeToResults(List<Object> columns, ModelItem modelItem, String attributePath, Collection<String> contentTypes) throws ProcessingException, ConfigurationException
-
_isEditionAllowed
private boolean _isEditionAllowed(ModelItem modelItem)
-
_getColumnConfiguration
private Configuration _getColumnConfiguration(ModelItem modelItem, Collection<String> contentTypes)
-
-