public class EditMetadataAction extends AbstractNotifierAction
Modifier and Type | Field and Description |
---|---|
private AmetysObjectResolver |
_resolver |
static String |
FORM_ELEMENTS_PREFIX
Prefix for form elements.
|
_observationManager
manager
EMPTY_MAP
Constructor and Description |
---|
EditMetadataAction() |
Modifier and Type | Method and Description |
---|---|
private void |
_saveBooleanMetadata(ModifiableCompositeMetadata metadata,
String metadataName,
String[] values,
boolean isMultiple) |
private void |
_saveDateMetadata(ModifiableCompositeMetadata metadata,
String metadataName,
String[] values,
boolean isMultiple) |
private void |
_saveDoubleMetadata(ModifiableCompositeMetadata metadata,
String metadataName,
String[] values,
boolean isMultiple) |
private void |
_saveLongMetadata(ModifiableCompositeMetadata metadata,
String metadataName,
String[] values,
boolean isMultiple) |
private void |
_saveMetadata(ModifiableCompositeMetadata metadata,
String[] metadataPath,
String type,
String[] values,
boolean isMultiple) |
private void |
_saveMetadata(ModifiableCompositeMetadata metadata,
String metadataName,
String type,
String[] values,
boolean isMultiple) |
private void |
_saveStringMetadata(ModifiableCompositeMetadata metadata,
String metadataName,
String[] values,
boolean isMultiple) |
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager smanager) |
_getCurrentUser
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String FORM_ELEMENTS_PREFIX
private AmetysObjectResolver _resolver
public EditMetadataAction()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class AbstractNotifierAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
private void _saveMetadata(ModifiableCompositeMetadata metadata, String[] metadataPath, String type, String[] values, boolean isMultiple)
private void _saveMetadata(ModifiableCompositeMetadata metadata, String metadataName, String type, String[] values, boolean isMultiple)
private void _saveStringMetadata(ModifiableCompositeMetadata metadata, String metadataName, String[] values, boolean isMultiple)
private void _saveDateMetadata(ModifiableCompositeMetadata metadata, String metadataName, String[] values, boolean isMultiple)
private void _saveLongMetadata(ModifiableCompositeMetadata metadata, String metadataName, String[] values, boolean isMultiple)
private void _saveDoubleMetadata(ModifiableCompositeMetadata metadata, String metadataName, String[] values, boolean isMultiple)
private void _saveBooleanMetadata(ModifiableCompositeMetadata metadata, String metadataName, String[] values, boolean isMultiple)