Class GetTempSkinResourcesAction
- 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.skineditor.skin.GetTempSkinResourcesAction
-
- All Implemented Interfaces:
Component
,Contextualizable
,LogEnabled
,Serviceable
,Action
public class GetTempSkinResourcesAction extends AbstractGetFilesAction
Action to get child files and folder of a skin directory
-
-
Field Summary
-
Fields inherited from class org.ametys.plugins.core.ui.parameter.files.AbstractGetFilesAction
_cocoonContext, _srcResolver
-
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 GetTempSkinResourcesAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
_collection2JsonObject(TraversableSource folder, TraversableSource root)
Convert collection to JSON objectprotected Map<String,Object>
_resource2JsonObject(TraversableSource file, TraversableSource root)
Convert file to JSON objectprotected String
getRootURI(Request request)
Get the URI of root directory such as 'context://WEB-INF/param'protected boolean
isIgnoredSource(TraversableSource source)
Test if the source has to be ignored-
Methods inherited from class org.ametys.plugins.core.ui.parameter.files.AbstractGetFilesAction
_getRelativePath, act, contextualize, service
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
GetTempSkinResourcesAction
public GetTempSkinResourcesAction()
-
-
Method Detail
-
getRootURI
protected String getRootURI(Request request)
Description copied from class:AbstractGetFilesAction
Get the URI of root directory such as 'context://WEB-INF/param'- Specified by:
getRootURI
in classAbstractGetFilesAction
- Parameters:
request
- the request- Returns:
- The root URI
-
isIgnoredSource
protected boolean isIgnoredSource(TraversableSource source)
Description copied from class:AbstractGetFilesAction
Test if the source has to be ignored- Overrides:
isIgnoredSource
in classAbstractGetFilesAction
- Parameters:
source
- The source- Returns:
- true if the source has to be ignored
-
_collection2JsonObject
protected Map<String,Object> _collection2JsonObject(TraversableSource folder, TraversableSource root)
Description copied from class:AbstractGetFilesAction
Convert collection to JSON object- Overrides:
_collection2JsonObject
in classAbstractGetFilesAction
- Parameters:
folder
- the folderroot
- the root directory- Returns:
- JSON object
-
_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
-
-