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
public class CopyContentComponent extends CopyContentComponent
Component used for copy of content with some override for ODF content SeeCopyContentComponent
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.cms.content.CopyContentComponent
CopyContentComponent.CopyAttachmentsHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE
The avalon role-
Fields inherited from class org.ametys.cms.content.CopyContentComponent
_contentHelper, _contentTypesHelper, _contentWorkflowHelper, _manager, _resolver, _workflowProvider
-
-
Constructor Summary
Constructors Constructor Description CopyContentComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
getInputsForCopy(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 attribute-
Methods 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
-
-
-
-
Constructor Detail
-
CopyContentComponent
public CopyContentComponent()
-
-
Method Detail
-
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.
-
-