Class SetParentContentClientSideElement
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.cms.content.referencetable.SetParentContentClientSideElement
- All Implemented Interfaces:
ClientSideElement,ClientSideRelation,LogEnabled,PluginAware,Component,Configurable,Serviceable
Set the "parent" attribute of a simple content
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HierarchicalReferenceTablesHelperThe helper component for hierarchical simple contentsFields 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 TypeMethodDescriptionareValidMoves(List<String> contentIdsToMove, String newParentContentId, String leafContentTypeId) Tells if the given simple contents can have their parent attribute changed for the given new simple content parent.voidservice(ServiceManager manager) Methods inherited from class org.ametys.cms.clientsideelement.relations.SetContentAttributeClientSideElement
_convert, _convert, _filterContentsToEdit, _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
-
_hierarchicalSimpleContentsHelper
The helper component for hierarchical simple contents
-
-
Constructor Details
-
SetParentContentClientSideElement
public SetParentContentClientSideElement()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classSetContentAttributeClientSideElement- Throws:
ServiceException
-
areValidMoves
public Map<String,Object> areValidMoves(List<String> contentIdsToMove, String newParentContentId, String leafContentTypeId) Tells if the given simple contents can have their parent attribute changed for the given new simple content parent.- Parameters:
contentIdsToMove- The identifiers of the simple contents willing to change their parent attributenewParentContentId- The identifier of the new parent simple content. Can be "root" if it is the root of simple contentsleafContentTypeId- If newParentContentId is equal to "root", is the identifier of the content type of the leaves of the tree. Otherwise, must be null- Returns:
- A map with a key 'validContents' for the ids of valid contents for the move, a key 'invalidContents' for the ids of invalid contents for the move and key 'noRightContents' for the ids of contents with no read access, among contentIdsToMove
-