|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.fileresource.FileResourceManager
public class FileResourceManager
Initial Date: Apr 8, 2004
| Field Summary | |
|---|---|
static java.lang.String |
ZIPDIR
|
| Method Summary | |
|---|---|
FileResource |
addFileResource(java.io.File fResource,
java.lang.String newName)
|
FileResource |
addFileResource(java.io.File fResource,
java.lang.String newName,
FileResource knownResource)
Add a file resource if the resource type is already known. |
OLATResourceable |
createCopy(OLATResourceable res)
Creates a copy of the given resourceable. |
OLATResourceable |
createCopy(OLATResourceable res,
java.lang.String resourceFolderName)
Creates a copy of the given resourceable. |
void |
deleteFileResource(OLATResourceable res)
|
boolean |
deleteUnzipContent(OLATResourceable res)
Deletes the contents of the last unzip operation. |
MediaResource |
getAsDownloadeableMediaResource(OLATResourceable res)
|
Component |
getDetailsComponent(OLATResourceable res,
java.util.Locale locale)
|
java.io.File |
getFileResource(OLATResourceable res)
|
java.io.File |
getFileResourceRoot(OLATResourceable res)
|
OlatRootFolderImpl |
getFileResourceRootImpl(OLATResourceable res)
|
static FileResourceManager |
getInstance()
|
java.lang.String |
getUnzippedDirRel(OLATResourceable res)
|
java.io.File |
unzipFileResource(OLATResourceable res)
Unzips a resource and returns the unzipped folder's root. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ZIPDIR
| Method Detail |
|---|
public static final FileResourceManager getInstance()
public FileResource addFileResource(java.io.File fResource,
java.lang.String newName,
FileResource knownResource)
throws AddingResourceException
fResource - newName - knownResource - maybe null, FileResource type will be calculated
AddingResourceException
public FileResource addFileResource(java.io.File fResource,
java.lang.String newName)
throws AddingResourceException
fResource - newName -
AddingResourceExceptionpublic void deleteFileResource(OLATResourceable res)
res - public java.io.File getFileResourceRoot(OLATResourceable res)
res -
public OlatRootFolderImpl getFileResourceRootImpl(OLATResourceable res)
res -
public java.io.File getFileResource(OLATResourceable res)
res -
public MediaResource getAsDownloadeableMediaResource(OLATResourceable res)
res -
public java.lang.String getUnzippedDirRel(OLATResourceable res)
res -
public java.io.File unzipFileResource(OLATResourceable res)
res -
public boolean deleteUnzipContent(OLATResourceable res)
res -
public Component getDetailsComponent(OLATResourceable res,
java.util.Locale locale)
res - locale -
public OLATResourceable createCopy(OLATResourceable res)
res -
public OLATResourceable createCopy(OLATResourceable res,
java.lang.String resourceFolderName)
res -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||