public class SetMetadataAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
(package private) static SimpleDateFormat |
_DATE_FORMAT |
private AmetysObjectResolver |
_resolver |
manager
EMPTY_MAP
Constructor and Description |
---|
SetMetadataAction() |
Modifier and Type | Method and Description |
---|---|
private ModifiableCompositeMetadata |
_getHolderInComposite(ModifiableMetadataAwareAmetysObject ao,
String compositePath) |
private void |
_setMetadataInsideRT(Request request,
ModifiableCompositeMetadata holder,
String name,
String value,
String fileFieldId,
String richtextPath) |
private void |
_setMetadataInsideRTDataFolder(Request request,
ModifiableCompositeMetadata holder,
String name,
String value,
String fileFieldId,
String richtextPath) |
private void |
_setMetadataOutsideRT(ModifiableCompositeMetadata holder,
String type,
String name,
String[] values,
boolean multiple) |
Map |
act(Redirector redirector,
SourceResolver sourceResolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager serviceManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
static SimpleDateFormat _DATE_FORMAT
private AmetysObjectResolver _resolver
public SetMetadataAction()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver sourceResolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
private ModifiableCompositeMetadata _getHolderInComposite(ModifiableMetadataAwareAmetysObject ao, String compositePath)
private void _setMetadataOutsideRT(ModifiableCompositeMetadata holder, String type, String name, String[] values, boolean multiple) throws Exception
Exception
private void _setMetadataInsideRT(Request request, ModifiableCompositeMetadata holder, String name, String value, String fileFieldId, String richtextPath) throws Exception
Exception
private void _setMetadataInsideRTDataFolder(Request request, ModifiableCompositeMetadata holder, String name, String value, String fileFieldId, String richtextPath) throws Exception
Exception