public class VirtualFS
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GLOBAL_ID_END |
static java.lang.String |
GLOBAL_ID_START |
Constructor and Description |
---|
VirtualFS() |
Modifier and Type | Method and Description |
---|---|
static DBFile |
copyFile(MutableDataSource mds,
DBFile filetoCopy,
java.lang.String destPath)
Create virtual file
|
static DBFile |
createFile(MutableDataSource mds,
java.lang.String fileName,
java.lang.String path)
Create virtual file
|
static DBNode[] |
createVolumes(MutableDataSource mds) |
static DBFile |
cutFile(MutableDataSource mds,
DBFile filetoCopy,
java.lang.String destPath)
Create virtual file
|
static void |
deleteNode(MutableDataSource mds,
DBNode node,
DBNode parentNode)
Delete Virtual File
|
static void |
deleteNode(MutableDataSource mds,
java.lang.String encodedPath)
Delete Virtual File
|
static DBNode |
findLast(java.lang.String encodedPath,
MutableDataSource mds) |
static DBNode |
findParent(DBNode node,
java.lang.String path,
MutableDataSource mds) |
static java.lang.String |
getCleanResourcePath(java.lang.String encodedPath) |
static GlobalKey |
getGlobalKeyFromResourceId(java.lang.String className,
java.lang.String resourceId) |
static DBNode[] |
getNodes(java.lang.String path,
MutableDataSource mds) |
static Contact |
getVirtualContact(MutableDataSource mds,
DBNode node) |
static Quote |
getVirtualQuote(MutableDataSource mds,
DBNode node) |
static Task |
getVirtualTask(MutableDataSource mds,
DBNode node) |
static DBVolume |
getVolumeByName(java.lang.String volumeName,
DataSource ds) |
static java.lang.String |
getVolumeCodeFromPath(java.lang.String path,
DataSource ds) |
static DBVolume |
getVolumeFromPath(java.lang.String decodedPath,
DataSource ds) |
static boolean |
isVirtualPath(java.lang.String decodedPath,
DataSource ds) |
static java.util.ArrayList<DBNode> |
uploadFiles(MutableDataSource mds,
java.lang.String path,
FileUpload[] uploads)
Create virtual file
|
public static final java.lang.String GLOBAL_ID_START
public static final java.lang.String GLOBAL_ID_END
public static DBNode[] getNodes(java.lang.String path, MutableDataSource mds) throws java.lang.Exception
java.lang.Exception
public static DBNode findLast(java.lang.String encodedPath, MutableDataSource mds) throws java.lang.Exception
java.lang.Exception
public static DBNode findParent(DBNode node, java.lang.String path, MutableDataSource mds) throws java.lang.Exception
java.lang.Exception
public static DBNode[] createVolumes(MutableDataSource mds)
public static java.lang.String getCleanResourcePath(java.lang.String encodedPath)
public static boolean isVirtualPath(java.lang.String decodedPath, @Nonnull DataSource ds)
public static DBVolume getVolumeByName(java.lang.String volumeName, @Nonnull DataSource ds)
public static DBVolume getVolumeFromPath(java.lang.String decodedPath, @Nonnull DataSource ds)
public static java.lang.String getVolumeCodeFromPath(java.lang.String path, @Nonnull DataSource ds)
public static Task getVirtualTask(MutableDataSource mds, DBNode node)
public static Contact getVirtualContact(MutableDataSource mds, DBNode node)
public static Quote getVirtualQuote(MutableDataSource mds, DBNode node)
public static GlobalKey getGlobalKeyFromResourceId(java.lang.String className, java.lang.String resourceId)
public static void deleteNode(MutableDataSource mds, java.lang.String encodedPath) throws java.lang.Exception
mds
- mdsencodedPath
- java.lang.Exception
- exceptionpublic static void deleteNode(MutableDataSource mds, DBNode node, DBNode parentNode) throws java.lang.Exception
mds
- mdsnode
- parentNode
- java.lang.Exception
- exceptionpublic static java.util.ArrayList<DBNode> uploadFiles(MutableDataSource mds, java.lang.String path, FileUpload[] uploads) throws java.lang.Exception
mds
- the data source to usepath
- uploads
- java.lang.Exception
- a serious problem.public static DBFile createFile(MutableDataSource mds, java.lang.String fileName, java.lang.String path) throws java.lang.Exception
mds
- the data source to usefileName
- path
- java.lang.Exception
- a serious problem.public static DBFile copyFile(MutableDataSource mds, DBFile filetoCopy, java.lang.String destPath) throws java.lang.Exception
mds
- the data source to usefiletoCopy
- destPath
- java.lang.Exception
- a serious problem.public static DBFile cutFile(MutableDataSource mds, DBFile filetoCopy, java.lang.String destPath) throws java.lang.Exception
mds
- the data source to usefiletoCopy
- destPath
- java.lang.Exception
- a serious problem.stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.