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
_contentTypesHelper
Content Types helperprivate Context
_context
protected AmetysObjectResolver
_resolver
The Ametys object resolverprotected SearchUIModelHelper
_searchUIModelHelper
Search UI Model helperprotected ServerCommHelper
_serverCommHelper
The 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)
Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
contextualize(Context context)
void
service(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:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in 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)
-
-