Package org.ametys.odf.clientsideelement
Class SetContentAttributeClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.core.ui.StaticClientSideRelation
org.ametys.cms.clientsideelement.relations.SetContentAttributeClientSideElement
org.ametys.odf.clientsideelement.SetContentAttributeClientSideElement
- All Implemented Interfaces:
ClientSideElement,ClientSideRelation,LogEnabled,PluginAware,Component,Configurable,Serviceable
Set the attribute of type 'content' of a content, with another content.
If content is a
ProgramItem, additional check will be done on catalog and content language-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile -
Field Summary
FieldsFields inherited from class org.ametys.cms.clientsideelement.relations.SetContentAttributeClientSideElement
_contentHelper, _contentTypeExtensionPoint, _contentTypesHelper, _contentWorkflowHelper, _resolverFields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<WorkflowAwareContent,Integer> _filterContentsToEdit(Map<WorkflowAwareContent, Integer> contentsToEdit, List<String> contentIdsToReference, List<I18nizableText> errorMessages, List<String> errorIds, Map<String, Object> additionalParams) Filter the list of contents to editvoidservice(ServiceManager manager) Methods inherited from class org.ametys.cms.clientsideelement.relations.SetContentAttributeClientSideElement
_convert, _convert, _findCompatibleAttributes, _resolve, _resolve, _setContentAttribute, getCompatibleAttributes, setContentAttribute, setContentAttributeMethods inherited from class org.ametys.core.ui.StaticClientSideRelation
configure, getSourceRelationType, getTargetRelationTypeMethods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParametersMethods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toStringMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.core.ui.ClientSideElement
getDependencies, getId, getPluginName, getRights, getScripts, getScripts
-
Field Details
-
_odfHelper
The ODF helper
-
-
Constructor Details
-
SetContentAttributeClientSideElement
public SetContentAttributeClientSideElement()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classSetContentAttributeClientSideElement- Throws:
ServiceException
-
_filterContentsToEdit
protected Map<WorkflowAwareContent,Integer> _filterContentsToEdit(Map<WorkflowAwareContent, Integer> contentsToEdit, List<String> contentIdsToReference, List<I18nizableText> errorMessages, List<String> errorIds, Map<String, Object> additionalParams) Description copied from class:SetContentAttributeClientSideElementFilter the list of contents to edit- Overrides:
_filterContentsToEditin classSetContentAttributeClientSideElement- Parameters:
contentsToEdit- the map of contents to editcontentIdsToReference- The list of content ids that will be added as values in the content fielderrorMessages- the error messageserrorIds- the error content idsadditionalParams- the map of additional parameters- Returns:
- the list of filtered contents
-