public class SetContentMetadataClientSideElement extends SetContentMetadataClientSideElement
ProgramItem
, additional check will be done on catalog and content languageClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected ODFHelper |
_odfHelper
The ODF helper
|
_contentHelper, _contentWorkflowHelper, _ctypesEP, _ctypesHelper, _filterCompatibleContentMetadataExtensionPoint, _resolver
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
SetContentMetadataClientSideElement() |
Modifier and Type | Method and Description |
---|---|
protected void |
_setContentMetatada(List<String> contentIdsToReference,
Map<WorkflowAwareContent,Integer> contentToEdit,
ContentType contentType,
String metadataPath,
List<String> workflowActionIds,
List<I18nizableText> errorMessages,
List<String> errorIds,
Map<String,Object> additionalParams)
Set the metadata 'metadatapath' of contents 'contentIdsToEdit' with value 'contentIdsToReference'
|
void |
service(ServiceManager manager) |
_convert, _convert, _findCompatibleMetadata, _resolve, _resolve, getCompatibleMetadata, setContentMetatada, setContentMetatada
configure, getSourceRelationType, getTargetRelationType
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDependencies, getId, getPluginName, getRights, getScripts, getScripts
protected ODFHelper _odfHelper
public SetContentMetadataClientSideElement()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class SetContentMetadataClientSideElement
ServiceException
protected void _setContentMetatada(List<String> contentIdsToReference, Map<WorkflowAwareContent,Integer> contentToEdit, ContentType contentType, String metadataPath, List<String> workflowActionIds, List<I18nizableText> errorMessages, List<String> errorIds, Map<String,Object> additionalParams)
SetContentMetadataClientSideElement
_setContentMetatada
in class SetContentMetadataClientSideElement
contentIdsToReference
- The list of content ids that will be added as values in the content fieldcontentToEdit
- The map {key: contents to edit and that will have a metadata of type content modified; value: the new position if metadata is multiple and it is a reorder of values. May be null or equals to -1 if it is not a reorder}contentType
- The content typemetadataPath
- The metadata selected to do modification in the contentIdsToEdit contentsworkflowActionIds
- The ids of workflow actions to use to edit the metadata. Actions will be tested in this order and first available action will be usederrorMessages
- The list that will be felt with error messages of content that had an issue during the operationerrorIds
- The list that will be felt with ids of content that had an issue during the operationadditionalParams
- the map of additional parameters