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 Modifier and Type Field Description (package private) static String[]__IGNORED_SOURCE-
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 StringgetRootURI(Request request)Get the URI of root directory such as 'context://WEB-INF/param'protected booleanisIgnoredSource(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
-
-
-
-
Field Detail
-
__IGNORED_SOURCE
static final String[] __IGNORED_SOURCE
-
-
Constructor Detail
-
GetTempSkinResourcesAction
public GetTempSkinResourcesAction()
-
-
Method Detail
-
getRootURI
protected String getRootURI(Request request)
Description copied from class:AbstractGetFilesActionGet the URI of root directory such as 'context://WEB-INF/param'- Specified by:
getRootURIin classAbstractGetFilesAction- Parameters:
request- the request- Returns:
- The root URI
-
isIgnoredSource
protected boolean isIgnoredSource(TraversableSource source)
Description copied from class:AbstractGetFilesActionTest if the source has to be ignored- Overrides:
isIgnoredSourcein 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:AbstractGetFilesActionConvert collection to JSON object- Overrides:
_collection2JsonObjectin 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:AbstractGetFilesActionConvert file to JSON object- Overrides:
_resource2JsonObjectin classAbstractGetFilesAction- Parameters:
file- the fileroot- the root directory- Returns:
- JSON object
-
-