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
public class SetParentContentClientSideElement extends SetContentAttributeClientSideElement
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
Fields Modifier and Type Field Description protected HierarchicalReferenceTablesHelper
_hierarchicalSimpleContentsHelper
The helper component for hierarchical simple contents-
Fields inherited from class org.ametys.cms.clientsideelement.relations.SetContentAttributeClientSideElement
_contentHelper, _contentTypeExtensionPoint, _contentTypesHelper, _contentWorkflowHelper, _resolver
-
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
-
Constructor Summary
Constructors Constructor Description SetParentContentClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
service(ServiceManager manager)
-
Methods inherited from class org.ametys.cms.clientsideelement.relations.SetContentAttributeClientSideElement
_convert, _convert, _filterContentsToEdit, _findCompatibleAttributes, _resolve, _resolve, _setContentAttribute, getCompatibleAttributes, setContentAttribute, setContentAttribute
-
Methods inherited from class org.ametys.core.ui.StaticClientSideRelation
configure, getSourceRelationType, getTargetRelationType
-
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
-
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ametys.core.ui.ClientSideElement
getDependencies, getId, getPluginName, getRights, getScripts, getScripts
-
-
-
-
Field Detail
-
_hierarchicalSimpleContentsHelper
protected HierarchicalReferenceTablesHelper _hierarchicalSimpleContentsHelper
The helper component for hierarchical simple contents
-
-
Constructor Detail
-
SetParentContentClientSideElement
public SetParentContentClientSideElement()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in 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 key 'validContents' and key 'invalidContents'
-
-