|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.db.CmsExportPointDriver
Provides methods to write export points to the "real" file system.
Constructor Summary | |
CmsExportPointDriver(java.util.Set exportpoints)
Constructor for a CmsExportPointDriver. |
Method Summary | |
void |
createFolder(java.lang.String foldername,
java.lang.String exportpoint)
Creates a new folder in the real file system. |
java.lang.String |
getExportPoint(java.lang.String filename)
Returns the export point path of the given resource, or null if the resource is not contained in
any export point. |
java.util.Set |
getExportPointPaths()
Returns the set of all VFS paths that are exported as an export point. |
void |
removeResource(java.lang.String resourcename,
java.lang.String exportpoint)
Deletes a file (or folder) in the real file sytem. |
void |
writeFile(java.lang.String filename,
java.lang.String exportpoint,
byte[] content)
Writes a file with the given content to the real file system. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CmsExportPointDriver(java.util.Set exportpoints)
exportpoints
- the list of export pointsMethod Detail |
public void createFolder(java.lang.String foldername, java.lang.String exportpoint)
foldername
- the complete path to the folderexportpoint
- the name of the export pointpublic java.lang.String getExportPoint(java.lang.String filename)
null
if the resource is not contained in
any export point.
filename
- the uri of a resource in the OpenCms VFS
null
if no export point matchespublic java.util.Set getExportPointPaths()
public void removeResource(java.lang.String resourcename, java.lang.String exportpoint)
resourcename
- the complete path to the resource to be deletedexportpoint
- the name of the export pointpublic void writeFile(java.lang.String filename, java.lang.String exportpoint, byte[] content)
filename
- the path of the file to writeexportpoint
- the name of the export pointcontent
- the contents of the file to write
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |