Class AddOrUpdateResource
java.lang.Object
org.ametys.plugins.explorer.resources.AddOrUpdateResource
- All Implemented Interfaces:
Component
,Contextualizable
,Serviceable
Adding or updating a resource file.
-
Field Summary
Modifier and TypeFieldDescriptionprotected AddOrUpdateResourceHelper
resource operation helperprotected Context
The avalon contextstatic final String
Avalon Role -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd, add and rename or update a resourcevoid
contextualize
(Context context) void
service
(ServiceManager serviceManager)
-
Field Details
-
ROLE
Avalon Role -
_addOrUpdateResourceHelper
resource operation helper -
_context
The avalon context
-
-
Constructor Details
-
AddOrUpdateResource
public AddOrUpdateResource()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
addOrUpdateResources
Add, add and rename or update a resource- Parameters:
parentId
- The id of the collection parentrawMode
- The modeunzip
- If there is an unzip to be doneparts
- The parts to import- Returns:
- The results
-