Class ScormActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.lms.impl.importer.ScormActionServiceImpl
- All Implemented Interfaces:
ScormActionService
-
Constructor Summary
ConstructorDescriptionScormActionServiceImpl
(ScormFilePathService scormFilePathService, Unmarshaller unmarshaller, ManifestImporter manifestImporter, EntityExplorerActionSelectionService selectionService, BinaryFactory binaryFactory, Context context) -
Method Summary
Modifier and TypeMethodDescriptionvoid
importScorm
(org.directwebremoting.io.FileTransfer scormFile) Sets up the required data structure in the database and imports the resources into the repository.void
replaceScorm
(EntityExplorerActionSelection selection, org.directwebremoting.io.FileTransfer newScormFile) Replaces the scorm file with a new one.void
setAllowedZipMimeTypes
(List<String> types)
-
Constructor Details
-
ScormActionServiceImpl
public ScormActionServiceImpl(ScormFilePathService scormFilePathService, Unmarshaller unmarshaller, ManifestImporter manifestImporter, EntityExplorerActionSelectionService selectionService, BinaryFactory binaryFactory, Context context)
-
-
Method Details
-
setAllowedZipMimeTypes
-
importScorm
public void importScorm(org.directwebremoting.io.FileTransfer scormFile) throws ScormImportException Description copied from interface:ScormActionService
Sets up the required data structure in the database and imports the resources into the repository.- Specified by:
importScorm
in interfaceScormActionService
- Parameters:
scormFile
- the scorm file- Throws:
ScormImportException
- if an error occurs during the import.
-
replaceScorm
public void replaceScorm(EntityExplorerActionSelection selection, org.directwebremoting.io.FileTransfer newScormFile) throws IOException, RpcExecutionException Description copied from interface:ScormActionService
Replaces the scorm file with a new one. During replacement, the file will be named after the entity's primary key.- Specified by:
replaceScorm
in interfaceScormActionService
- Parameters:
newScormFile
- the new scorm file- Throws:
IOException
RpcExecutionException
-