Class GetExtractionDefinitionFilesAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.plugins.core.ui.parameter.files.AbstractGetFilesAction
-
- org.ametys.plugins.core.ui.parameter.files.GetParameterFileAction
-
- org.ametys.plugins.extraction.execution.GetExtractionDefinitionFilesAction
-
- All Implemented Interfaces:
Component
,Contextualizable
,LogEnabled
,Serviceable
,Action
public class GetExtractionDefinitionFilesAction extends GetParameterFileAction
Action for getting extraction definition files
-
-
Field Summary
Fields Modifier and Type Field Description private CurrentUserProvider
_currentUserProvider
private RightManager
_rightManager
-
Fields inherited from class org.ametys.plugins.core.ui.parameter.files.AbstractGetFilesAction
_cocoonContext
-
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 GetExtractionDefinitionFilesAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
_resource2JsonObject(TraversableSource file, TraversableSource root)
Convert file to JSON objectMap
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
protected String
getRootURI(Request request)
Get the URI of root directory such as 'context://WEB-INF/param'protected boolean
isIgnoredSource(String fileName)
Test if the source has to be ignoredvoid
service(ServiceManager serviceManager)
-
Methods inherited from class org.ametys.plugins.core.ui.parameter.files.AbstractGetFilesAction
_collection2JsonObject, _getRelativePath, contextualize
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_rightManager
private RightManager _rightManager
-
_currentUserProvider
private CurrentUserProvider _currentUserProvider
-
-
Constructor Detail
-
GetExtractionDefinitionFilesAction
public GetExtractionDefinitionFilesAction()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractGetFilesAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Specified by:
act
in interfaceAction
- Overrides:
act
in classAbstractGetFilesAction
- Throws:
Exception
-
getRootURI
protected String getRootURI(Request request)
Description copied from class:AbstractGetFilesAction
Get the URI of root directory such as 'context://WEB-INF/param'- Overrides:
getRootURI
in classGetParameterFileAction
- Parameters:
request
- the request- Returns:
- The root URI
-
isIgnoredSource
protected boolean isIgnoredSource(String fileName)
Description copied from class:AbstractGetFilesAction
Test if the source has to be ignored- Overrides:
isIgnoredSource
in classGetParameterFileAction
- Parameters:
fileName
- The file name- Returns:
- true if the source has to be ignored
-
_resource2JsonObject
protected Map<String,Object> _resource2JsonObject(TraversableSource file, TraversableSource root)
Description copied from class:AbstractGetFilesAction
Convert file to JSON object- Overrides:
_resource2JsonObject
in classAbstractGetFilesAction
- Parameters:
file
- the fileroot
- the root directory- Returns:
- JSON object
-
-