Class ScormActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.lms.impl.importer.ScormActionServiceImpl
- All Implemented Interfaces:
- ScormActionService
- 
Constructor SummaryConstructorsConstructorDescriptionScormActionServiceImpl(ScormFilePathService scormFilePathService, Unmarshaller unmarshaller, ManifestImporter manifestImporter, EntityExplorerActionSelectionService selectionService, BinaryFactory binaryFactory, Context context) 
- 
Method SummaryModifier 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- 
ScormActionServiceImplpublic ScormActionServiceImpl(ScormFilePathService scormFilePathService, Unmarshaller unmarshaller, ManifestImporter manifestImporter, EntityExplorerActionSelectionService selectionService, BinaryFactory binaryFactory, Context context) 
 
- 
- 
Method Details- 
setAllowedZipMimeTypes
- 
importScormpublic 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 interface- ScormActionService
- Parameters:
- scormFile- the scorm file
- Throws:
- ScormImportException- if an error occurs during the import.
 
- 
replaceScormpublic 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 interface- ScormActionService
- Parameters:
- newScormFile- the new scorm file
- Throws:
- IOException
- RpcExecutionException
 
 
-