Package org.ametys.odf.course
Class ShareableCourseCopyUpdater
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.course.ShareableCourseCopyUpdater
- All Implemented Interfaces:
CopyODFContentUpdater
,CopyODFUpdater
,LogEnabled
,Serviceable
public class ShareableCourseCopyUpdater
extends AbstractLogEnabled
implements CopyODFContentUpdater, Serviceable
Copy updater to initialize shareable fields on
Course
.-
Field Summary
Modifier and TypeFieldDescriptionprotected CurrentUserProvider
The current user providerprotected ShareableCourseHelper
The shareable course helper -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
_currentUserProvider
The current user provider
-
-
Constructor Details
-
ShareableCourseCopyUpdater
public ShareableCourseCopyUpdater()
-
-
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.
-