public class SetParentContentClientSideElement extends SetContentMetadataClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected ContentTypeExtensionPoint |
_contentTypeEP
The extension point for content types
|
protected HierarchicalReferenceTablesHelper |
_hierarchicalSimpleContentsHelper
The helper component for hierarchical simple contents
|
_contentHelper, _contentWorkflowHelper, _ctypesEP, _ctypesHelper, _filterCompatibleContentMetadataExtensionPoint, _resolver
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
SetParentContentClientSideElement() |
Modifier and Type | Method and Description |
---|---|
private MetadataDefinition |
_getParentMetadataDef(Content content) |
private Map<String,String> |
_validContentToMap(Content validContent,
List<String> childContentTypes) |
Map<String,Object> |
areValidMoves(List<String> contentIdsToMove,
String newParentContentId,
String leafContentTypeId)
Tells if the given simple contents can have their parent metadata changed for the given new simple content parent.
|
void |
service(ServiceManager manager) |
_convert, _convert, _findCompatibleMetadata, _resolve, _resolve, _setContentMetatada, getCompatibleMetadata, 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 HierarchicalReferenceTablesHelper _hierarchicalSimpleContentsHelper
protected ContentTypeExtensionPoint _contentTypeEP
public SetParentContentClientSideElement()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class SetContentMetadataClientSideElement
ServiceException
public Map<String,Object> areValidMoves(List<String> contentIdsToMove, String newParentContentId, String leafContentTypeId)
contentIdsToMove
- The ids of the simple contents willing to change their parent metadatanewParentContentId
- The id 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 id of the content type of the leaves of the tree. Otherwise, must be nullprivate MetadataDefinition _getParentMetadataDef(Content content)