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 and (@link Course}.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentWorkflowHelperThe content workflow helperprotected CurrentUserProviderThe current user providerprotected ObservationManagerThe observation managerprotected ODFHelperThe ODF helperprotected AmetysObjectResolverThe ametys object resolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyAdditionalContents(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 catalogvoidservice(ServiceManager manager) voidupdateContents(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 -
_odfHelper
The ODF helper
-
-
Constructor Details
-
SkillsCopyUpdater
public SkillsCopyUpdater()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
updateContents
public void updateContents(String initialCatalogName, String newCatalogName, Map<Content, Content> copiedContents, Content targetParentContent) Description copied from interface:CopyODFUpdaterUpdate 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:
updateContentsin 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:CopyCatalogUpdaterGet the additional contents of the catalog- Specified by:
getAdditionalContentsin 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:CopyCatalogUpdaterCopy additional contents from the initial to the new catalog- Specified by:
copyAdditionalContentsin interfaceCopyCatalogUpdater- Parameters:
initialCatalogName- the name of initial catalognewCatalogName- the name of new catalogcopiedContents- the initial contents with their copied content
-