Package org.ametys.odf.content
Class CopyContentMetadataComponent
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.cms.content.CopyContentMetadataComponent
-
- org.ametys.odf.content.CopyContentMetadataComponent
-
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
- Direct Known Subclasses:
CopyContentMedatataComponent
public class CopyContentMetadataComponent extends CopyContentMetadataComponent
Component used for copy of content with some override for ODF content SeeCopyContentMetadataComponent
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.cms.content.CopyContentMetadataComponent
CopyContentMetadataComponent.CopyAttachmentsHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE
The avalon role-
Fields inherited from class org.ametys.cms.content.CopyContentMetadataComponent
_contentHelper, _contentTypeExtensionPoint, _contentTypesHelper, _manager, _outgoingReferencesExtractor, _resolver, _workflowProvider
-
-
Constructor Summary
Constructors Constructor Description CopyContentMetadataComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyContentReferenceMetadata(CompositeMetadata baseMetaHolder, ModifiableCompositeMetadata targetMetaHolder, MetadataDefinition metadataDefinition, String metadataPath, Map<String,Object> copyMap, Map<String,Object> innerCopyMapInputs, CopyReport copyReport)
Duplicate a metadata of typeMetadataType.CONTENT
.-
Methods inherited from class org.ametys.cms.content.CopyContentMetadataComponent
_buildCopyMap, _buildCopyMap, _buildCopyMap, _copyFile, _copyFolder, _copyMetadataMap, _copyReferencedContents, _copyRepeater, _extractOutgoingReferences, _getInputsForContentReferencesEdition, _getInputsForCopy, _getInputsForEdition, _getMetadataDefinition, _getWorklowName, _handleInnerCopyMap, _reportMetadataException, _retrieveTargetContent, _runContentReferencesEdition, _setBooleanMetadata, _setDateMetadata, _setDoubleMetadata, _setLongMetadata, _setStringMetadata, _updateRichTextMetadata, buildCopyMap, copyBasicMetadata, copyBinaryMetadata, copyCompositeMetadata, copyContent, copyContent, copyContent, copyContent, copyContent, copyContent, copyContent, copyContent, copyContent, copyFileMetadata, copyGeocodeMetadata, copyMetadata, copyMetadataMap, copyMultilingualStringMetadata, copyReferenceMetadata, copyRichTextMetadata, copySubContentMetadata, copyUserMetadata, editContent, editContent, getActionIdForCopy2, getDefaultActionIdForContentEdition, getDefaultActionIdForEditingContentReferences, getDefaultInitActionId, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
CopyContentMetadataComponent
public CopyContentMetadataComponent()
-
-
Method Detail
-
copyContentReferenceMetadata
public void copyContentReferenceMetadata(CompositeMetadata baseMetaHolder, ModifiableCompositeMetadata targetMetaHolder, MetadataDefinition metadataDefinition, String metadataPath, Map<String,Object> copyMap, Map<String,Object> innerCopyMapInputs, CopyReport copyReport)
Description copied from class:CopyContentMetadataComponent
Duplicate a metadata of typeMetadataType.CONTENT
. If the copy map has a '$mode' parameter set to 'create', a new content will be created for each referenced content in the base metadata. The referenced contents are created if needed but content references are not set here. It should be done manually as done inCopyContentMetadataComponent._runContentReferencesEdition(org.ametys.cms.repository.Content, org.ametys.plugins.workflow.support.WorkflowProvider.AmetysObjectWorkflow, int, boolean, org.ametys.cms.content.CopyReport)
- Overrides:
copyContentReferenceMetadata
in classCopyContentMetadataComponent
- Parameters:
baseMetaHolder
- The metadata holder of the content to copytargetMetaHolder
- The metadata holder of the target contentmetadataDefinition
- The definition of the metadatametadataPath
- The content metadata path.copyMap
- The properties to copyinnerCopyMapInputs
- The properties of sub objectscopyReport
- The report of the copy
-
-