Class ScormActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.lms.impl.importer.ScormActionServiceImpl
- All Implemented Interfaces:
ScormActionService
-
Constructor Summary
ConstructorsConstructorDescriptionScormActionServiceImpl(ScormFilePathService scormFilePathService, Unmarshaller unmarshaller, ManifestImporter manifestImporter, EntityExplorerActionSelectionService selectionService, BinaryFactory binaryFactory, Context context) -
Method Summary
Modifier and TypeMethodDescriptionvoidimportScorm(org.directwebremoting.io.FileTransfer scormFile) Sets up the required data structure in the database and imports the resources into the repository.voidreplaceScorm(EntityExplorerActionSelection selection, org.directwebremoting.io.FileTransfer newScormFile) Replaces the scorm file with a new one.voidsetAllowedZipMimeTypes(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:ScormActionServiceSets up the required data structure in the database and imports the resources into the repository.- Specified by:
importScormin 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:ScormActionServiceReplaces the scorm file with a new one. During replacement, the file will be named after the entity's primary key.- Specified by:
replaceScormin interfaceScormActionService- Parameters:
newScormFile- the new scorm file- Throws:
IOExceptionRpcExecutionException
-