public class _RepositoryTie extends _RepositoryDisp implements Ice.TieBase
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
__idsice_staticId| Constructor and Description |
|---|
_RepositoryTie(_RepositoryOperations delegate) |
_RepositoryTie() |
| Modifier and Type | Method and Description |
|---|---|
HandlePrx |
deletePaths(java.lang.String[] paths,
boolean recursively,
boolean force,
Ice.Current __current)
Delete several individual paths.
|
boolean |
equals(java.lang.Object rhs) |
RawFileStorePrx |
file(java.lang.String path,
java.lang.String mode,
Ice.Current __current)
Returns a special RawFileStore which permits only the operations
set out in the options string ""wb"", ""a+"", etc.
|
RawFileStorePrx |
fileById(long id,
Ice.Current __current) |
boolean |
fileExists(java.lang.String path,
Ice.Current __current)
Returns true if the file or path exists within the repository.
|
int |
hashCode() |
java.lang.Object |
ice_delegate() |
void |
ice_delegate(java.lang.Object delegate) |
java.util.List<java.lang.String> |
list(java.lang.String path,
Ice.Current __current)
Returns a set of strings naming the files and directories in
the directory denoted by an abstract pathname.
|
java.util.List<OriginalFile> |
listFiles(java.lang.String path,
Ice.Current __current)
Returns an array of abstract pathname objects denoting the
files in the directory denoted by an abstract pathname.
|
void |
makeDir(java.lang.String path,
boolean parents,
Ice.Current __current)
Create a directory at the given path.
|
java.lang.String |
mimetype(java.lang.String path,
Ice.Current __current)
Returns the best-guess mimetype for the given path.
|
OriginalFile |
register(java.lang.String path,
RString mimetype,
Ice.Current __current)
Create an OriginalFile in the database for the given path.
|
OriginalFile |
root(Ice.Current __current)
Return the OriginalFile descriptor for this Repository.
|
RMap |
treeList(java.lang.String path,
Ice.Current __current)
Similar to
list but recursive and returns only
primitive values for the file at each location. |
___deletePaths, ___file, ___fileById, ___fileExists, ___list, ___listFiles, ___makeDir, ___mimetype, ___register, ___root, ___treeList, __dispatch, __readImpl, __writeImpl, deletePaths, file, fileById, fileExists, ice_copyStateFrom, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, list, listFiles, makeDir, mimetype, register, root, treeList___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __read, __read, __readImpl, __write, __write, __writeImpl, clone, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshalpublic static final long serialVersionUID
public _RepositoryTie()
public _RepositoryTie(_RepositoryOperations delegate)
public java.lang.Object ice_delegate()
ice_delegate in interface Ice.TieBasepublic void ice_delegate(java.lang.Object delegate)
ice_delegate in interface Ice.TieBasepublic boolean equals(java.lang.Object rhs)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic HandlePrx deletePaths(java.lang.String[] paths, boolean recursively, boolean force, Ice.Current __current) throws ServerError
_RepositoryOperationsDelete2 command
and submits it.
If a ""recursively"" is true, then directories will be searched
and all of their contained files will be placed before them in
the delete order. When the directory is removed from the database,
it will removed from the filesystem if and only if it is empty.
If ""recursively"" is false, then the delete will produce an error
according to the ""force"" flag.
If ""force"" is false, this method attempts the delete of all given
paths in a single transaction, and any failure will cause the
entire transaction to fail.
If ""force"" is true, however, then all the other deletes will succeed.
which could possibly leave dangling files within no longer extant
directories.deletePaths in interface _RepositoryOperations__current - The Current object for the invocation.ServerErrorpublic RawFileStorePrx file(java.lang.String path, java.lang.String mode, Ice.Current __current) throws ServerError
_RepositoryOperationsfile in interface _RepositoryOperations__current - The Current object for the invocation.ServerErrorpublic RawFileStorePrx fileById(long id, Ice.Current __current) throws ServerError
fileById in interface _RepositoryOperationsServerErrorpublic boolean fileExists(java.lang.String path,
Ice.Current __current)
throws ServerError
_RepositoryOperationslistFiles would return an object for this path.fileExists in interface _RepositoryOperations__current - The Current object for the invocation.ServerErrorpublic java.util.List<java.lang.String> list(java.lang.String path,
Ice.Current __current)
throws ServerError
_RepositoryOperationslist in interface _RepositoryOperations__current - The Current object for the invocation.ServerErrorpublic java.util.List<OriginalFile> listFiles(java.lang.String path, Ice.Current __current) throws ServerError
_RepositoryOperationsOriginalFile instance.listFiles in interface _RepositoryOperations__current - The Current object for the invocation.ServerErrorpublic void makeDir(java.lang.String path,
boolean parents,
Ice.Current __current)
throws ServerError
_RepositoryOperationsmakeDir in interface _RepositoryOperations__current - The Current object for the invocation.ServerErrorpublic java.lang.String mimetype(java.lang.String path,
Ice.Current __current)
throws ServerError
_RepositoryOperationsmimetype in interface _RepositoryOperations__current - The Current object for the invocation.ServerErrorpublic OriginalFile register(java.lang.String path, RString mimetype, Ice.Current __current) throws ServerError
_RepositoryOperationsregister in interface _RepositoryOperations__current - The Current object for the invocation.ServerErrorpublic OriginalFile root(Ice.Current __current) throws ServerError
_RepositoryOperationsroot in interface _RepositoryOperations__current - The Current object for the invocation.ServerErrorpublic RMap treeList(java.lang.String path, Ice.Current __current) throws ServerError
_RepositoryOperationslist but recursive and returns only
primitive values for the file at each location. Guaranteed for
each path is only the values id and mimetype.
After a call to unwrap, the returned RMap for a
call to treeList("/user_1/dir0") might look something like:
{
"/user_1/dir0/file1.txt" :
{
"id":10,
"mimetype":
"binary",
"size": 10000L
},
"/user_1/dir0/dir1" :
{
"id": 100,
"mimetype": "Directory",
"size": 0L,
"files":
{
"/user_1/dir0/dir1/file1indir.txt" :
{
"id": 1,
"mimetype": "png",
"size": 500
}
}
}
}
treeList in interface _RepositoryOperations__current - The Current object for the invocation.ServerError