|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.ims.qti.editor.QTIEditorPackage
public class QTIEditorPackage
Initial Date: 27.08.2003
| Field Summary | |
|---|---|
static java.lang.String |
FOLDERNAMEFOR_CHANGELOG
|
| Constructor Summary | |
|---|---|
QTIEditorPackage(Identity identity,
FileResource fileResource,
Translator translator)
|
|
QTIEditorPackage(java.lang.String title,
java.lang.String type,
java.util.Locale locale)
Create a new qtipackage. |
|
| Method Summary | |
|---|---|
void |
cleanupTmpPackageDir()
Cleanup any temporary directory for this qti file only. |
void |
commitChangelog(QTIChangeLogMessage clm)
save the change log in the changelog folder, must be called before savePackageToRepository. |
VFSContainer |
getBaseDir()
|
java.io.File |
getChangelogBaseDir()
Returns the package's change log directory |
java.io.File |
getMediaBaseDir()
Returns the package's media directory. |
java.lang.String |
getMediaBaseURL()
Return the media base URL for delivering media of this package. |
QTIDocument |
getQTIDocument()
|
OLATResourceable |
getRepresentingResourceable()
Return the underlying resourceable. |
static java.io.File |
getTmpBaseDir()
Get the temporary root dir where all packages are located. |
boolean |
hasSerializedChangelog()
check if a serialized change log exists |
boolean |
isResumed()
|
java.util.Map |
loadChangelog()
resume the change log from the temporary file |
void |
removeMediaFiles(java.util.Set<java.lang.String> removable)
Remove the media files specified in the input set (removable contains filenames) |
boolean |
savePackageTo(java.io.File fOut)
Package the package to the given file. |
boolean |
savePackageToRepository()
|
void |
serializeChangelog(java.util.Map history)
save a temporary file with the change history |
void |
serializeQTIDocument()
Saves a serialized versionof the underlying QTIDocument. |
void |
setResumed(boolean b)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FOLDERNAMEFOR_CHANGELOG
| Constructor Detail |
|---|
public QTIEditorPackage(Identity identity,
FileResource fileResource,
Translator translator)
identity - fileResource -
public QTIEditorPackage(java.lang.String title,
java.lang.String type,
java.util.Locale locale)
title - type - locale - | Method Detail |
|---|
public OLATResourceable getRepresentingResourceable()
public static java.io.File getTmpBaseDir()
public java.lang.String getMediaBaseURL()
public java.io.File getMediaBaseDir()
public VFSContainer getBaseDir()
public java.io.File getChangelogBaseDir()
public QTIDocument getQTIDocument()
public boolean savePackageToRepository()
public void commitChangelog(QTIChangeLogMessage clm)
changelog - public boolean savePackageTo(java.io.File fOut)
fOut -
public void removeMediaFiles(java.util.Set<java.lang.String> removable)
removable - public void serializeQTIDocument()
public void serializeChangelog(java.util.Map history)
history - public boolean hasSerializedChangelog()
public java.util.Map loadChangelog()
public void cleanupTmpPackageDir()
public boolean isResumed()
public void setResumed(boolean b)
b -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||