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
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
-
Method Summary
Modifier and TypeMethodDescription_collection2JsonObject
(TraversableSource folder, TraversableSource root) Convert collection to JSON 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 ignoredMethods 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 Details
-
GetTempSkinResourcesAction
public GetTempSkinResourcesAction()
-
-
Method Details
-
getRootURI
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
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
Description copied from class:AbstractGetFilesAction
Convert file to JSON object- Overrides:
_resource2JsonObject
in classAbstractGetFilesAction
- Parameters:
file
- the fileroot
- the root directory- Returns:
- JSON object
-