Package org.ametys.odf.catalog
Class SkillsCopyUpdater
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.catalog.SkillsCopyUpdater
- All Implemented Interfaces:
CopyCatalogUpdater
,CopyODFUpdater
,LogEnabled
,Serviceable
public class SkillsCopyUpdater
extends AbstractLogEnabled
implements CopyCatalogUpdater, Serviceable
Copy updater to update the micro skills on a macro skill and the macro skills on a
Program
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentWorkflowHelper
The content workflow helperprotected CurrentUserProvider
The current user providerprotected ObservationManager
The observation managerprotected AmetysObjectResolver
The ametys object resolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyAdditionalContents
(String initialCatalogName, String newCatalogName, Map<Content, Content> copiedContents) Copy additional contents from the initial to the new cataloggetAdditionalContents
(String catalogName) Get the additional contents of the catalogvoid
service
(ServiceManager manager) void
updateContents
(String initialCatalogName, String newCatalogName, Map<Content, Content> copiedContents, Content targetParentContent) Update contents after the full copy of an ODF content.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_resolver
The ametys object resolver -
_observationManager
The observation manager -
_currentUserProvider
The current user provider -
_contentWorkflowHelper
The content workflow helper
-
-
Constructor Details
-
SkillsCopyUpdater
public SkillsCopyUpdater()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
updateContents
public void updateContents(String initialCatalogName, String newCatalogName, Map<Content, Content> copiedContents, Content targetParentContent) Description copied from interface:CopyODFUpdater
Update contents after the full copy of an ODF content. Implements this method when you need to do some stuff when all contents have been copied.- Specified by:
updateContents
in interfaceCopyODFUpdater
- Parameters:
initialCatalogName
- the name of initial catalognewCatalogName
- the name of new catalogcopiedContents
- the initial contents with their copied contenttargetParentContent
- the target parent content where the contents are copied. Can be null.
-
getAdditionalContents
Description copied from interface:CopyCatalogUpdater
Get the additional contents of the catalog- Specified by:
getAdditionalContents
in interfaceCopyCatalogUpdater
- Parameters:
catalogName
- the catalog name- Returns:
- additional contents managed by the updater
-
copyAdditionalContents
public void copyAdditionalContents(String initialCatalogName, String newCatalogName, Map<Content, Content> copiedContents) Description copied from interface:CopyCatalogUpdater
Copy additional contents from the initial to the new catalog- Specified by:
copyAdditionalContents
in interfaceCopyCatalogUpdater
- Parameters:
initialCatalogName
- the name of initial catalognewCatalogName
- the name of new catalogcopiedContents
- the initial contents with their copied content
-