Package org.ametys.odf.content
Class CopyContentComponent
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.content.CopyContentComponent
org.ametys.odf.content.CopyContentComponent
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
- Direct Known Subclasses:
CopyContentComponent
Component used for copy of content with some override for ODF content
See
CopyContentComponent
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.cms.content.CopyContentComponent
CopyContentComponent.CopyAttachmentsHandler
-
Field Summary
Fields inherited from class org.ametys.cms.content.CopyContentComponent
_contentHelper, _contentTypesHelper, _contentWorkflowHelper, _manager, _resolver, _workflowProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetInputsForCopy
(Content baseContent, String title, Map<String, Object> copyMap, String targetContentType, CopyReport copyReport) Retrieve the inputs for the copy workflow function.protected ContentValue
handleLinkedContent
(ElementDefinition definition, ModifiableContent content, boolean referenceMode, Map<String, Object> copyMap, CopyReport copyReport) Handle a single value of a content attributeMethods inherited from class org.ametys.cms.content.CopyContentComponent
computeValues, copyContent, copyLinkedContent, editContent, editContent, getDefaultActionIdForContentEdition, getDefaultInitActionId, getWorkflowName, service
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The avalon role
-
-
Constructor Details
-
CopyContentComponent
public CopyContentComponent()
-
-
Method Details
-
handleLinkedContent
protected ContentValue handleLinkedContent(ElementDefinition definition, ModifiableContent content, boolean referenceMode, Map<String, Object> copyMap, CopyReport copyReport) Description copied from class:CopyContentComponent
Handle a single value of a content attribute- Overrides:
handleLinkedContent
in classCopyContentComponent
- Parameters:
definition
- the attribute definitioncontent
- the linked value on the source contentreferenceMode
- true if a reference was initially requested, false if it was a copycopyMap
- the current copy mapcopyReport
- the copy report- Returns:
- the
ContentValue
(copied or not) to insert in the current Content.
-
getInputsForCopy
protected Map<String,Object> getInputsForCopy(Content baseContent, String title, Map<String, Object> copyMap, String targetContentType, CopyReport copyReport) Description copied from class:CopyContentComponent
Retrieve the inputs for the copy workflow function.- Overrides:
getInputsForCopy
in classCopyContentComponent
- Parameters:
baseContent
- The content to copytitle
- The title to setcopyMap
- The map with properties to copytargetContentType
- The type of content to create. If null the type(s) of created content will be those of base content.copyReport
- The report of the copy- Returns:
- The map of inputs.
-