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
FieldsModifier and TypeFieldDescriptionprotected CurrentUserProviderThe current user providerprotected ShareableCourseHelperThe shareable course helper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidservice(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
-
_currentUserProvider
The current user provider
-
-
Constructor Details
-
ShareableCourseCopyUpdater
public ShareableCourseCopyUpdater()
-
-
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.
-