Package omero.grid
Class _RepositoryTie
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.grid._RepositoryDisp
-
- omero.grid._RepositoryTie
-
- All Implemented Interfaces:
Ice.Object,Ice.TieBase,java.io.Serializable,java.lang.Cloneable,_RepositoryOperations,_RepositoryOperationsNC,Repository
public class _RepositoryTie extends _RepositoryDisp implements Ice.TieBase
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUID-
Fields inherited from class omero.grid._RepositoryDisp
__ids
-
Fields inherited from interface omero.grid.Repository
ice_staticId
-
-
Constructor Summary
Constructors Constructor Description _RepositoryTie()_RepositoryTie(_RepositoryOperations delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HandlePrxdeletePaths(java.lang.String[] paths, boolean recursively, boolean force, Ice.Current __current)Delete several individual paths.booleanequals(java.lang.Object rhs)RawFileStorePrxfile(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.RawFileStorePrxfileById(long id, Ice.Current __current)booleanfileExists(java.lang.String path, Ice.Current __current)Returns true if the file or path exists within the repository.inthashCode()java.lang.Objectice_delegate()voidice_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.voidmakeDir(java.lang.String path, boolean parents, Ice.Current __current)Create a directory at the given path.java.lang.Stringmimetype(java.lang.String path, Ice.Current __current)Returns the best-guess mimetype for the given path.OriginalFileregister(java.lang.String path, RString mimetype, Ice.Current __current)Create an OriginalFile in the database for the given path.OriginalFileroot(Ice.Current __current)Return the OriginalFile descriptor for this Repository.RMaptreeList(java.lang.String path, Ice.Current __current)Similar tolistbut recursive and returns only primitive values for the file at each location.-
Methods inherited from class omero.grid._RepositoryDisp
___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
-
Methods inherited from class Ice.ObjectImpl
___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_preMarshal
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
_RepositoryTie
public _RepositoryTie()
-
_RepositoryTie
public _RepositoryTie(_RepositoryOperations delegate)
-
-
Method Detail
-
ice_delegate
public java.lang.Object ice_delegate()
- Specified by:
ice_delegatein interfaceIce.TieBase
-
ice_delegate
public void ice_delegate(java.lang.Object delegate)
- Specified by:
ice_delegatein interfaceIce.TieBase
-
equals
public boolean equals(java.lang.Object rhs)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
deletePaths
public HandlePrx deletePaths(java.lang.String[] paths, boolean recursively, boolean force, Ice.Current __current) throws ServerError
Description copied from interface:_RepositoryOperationsDelete several individual paths. Internally, this converts all of the paths into a singleDelete2command 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.- Specified by:
deletePathsin interface_RepositoryOperations__current- The Current object for the invocation.- Throws:
ServerError
-
file
public RawFileStorePrx file(java.lang.String path, java.lang.String mode, Ice.Current __current) throws ServerError
Description copied from interface:_RepositoryOperationsReturns a special RawFileStore which permits only the operations set out in the options string ""wb"", ""a+"", etc. FIXME: Initially only ""r"" and ""rw"" are supported as these are handled directly by RandomAccessFile and so don't break the current implementation. Any call to that tries to break the options will throw an ApiUsageException. If a file exists at the given path, a ValidationException will be thrown.- Specified by:
filein interface_RepositoryOperations__current- The Current object for the invocation.- Throws:
ServerError
-
fileById
public RawFileStorePrx fileById(long id, Ice.Current __current) throws ServerError
- Specified by:
fileByIdin interface_RepositoryOperations- Throws:
ServerError
-
fileExists
public boolean fileExists(java.lang.String path, Ice.Current __current) throws ServerErrorDescription copied from interface:_RepositoryOperationsReturns true if the file or path exists within the repository. In other words, if a call on `dirname path` tolistFileswould return an object for this path.- Specified by:
fileExistsin interface_RepositoryOperations__current- The Current object for the invocation.- Throws:
ServerError
-
list
public java.util.List<java.lang.String> list(java.lang.String path, Ice.Current __current) throws ServerErrorDescription copied from interface:_RepositoryOperationsReturns a set of strings naming the files and directories in the directory denoted by an abstract pathname.- Specified by:
listin interface_RepositoryOperations__current- The Current object for the invocation.- Throws:
ServerError
-
listFiles
public java.util.List<OriginalFile> listFiles(java.lang.String path, Ice.Current __current) throws ServerError
Description copied from interface:_RepositoryOperationsReturns an array of abstract pathname objects denoting the files in the directory denoted by an abstract pathname. It is expected that at a minimum the ""name"", ""path"", ""size"" and ""mtime"" attributes will be present for eachOriginalFileinstance.- Specified by:
listFilesin interface_RepositoryOperations__current- The Current object for the invocation.- Throws:
ServerError
-
makeDir
public void makeDir(java.lang.String path, boolean parents, Ice.Current __current) throws ServerErrorDescription copied from interface:_RepositoryOperationsCreate a directory at the given path. If parents is true, then all preceding paths will be generated and no exception will be thrown if the directory already exists. Otherwise, all parent directories must exist in both the DB and on the filesystem and be readable.- Specified by:
makeDirin interface_RepositoryOperations__current- The Current object for the invocation.- Throws:
ServerError
-
mimetype
public java.lang.String mimetype(java.lang.String path, Ice.Current __current) throws ServerErrorDescription copied from interface:_RepositoryOperationsReturns the best-guess mimetype for the given path.- Specified by:
mimetypein interface_RepositoryOperations__current- The Current object for the invocation.- Throws:
ServerError
-
register
public OriginalFile register(java.lang.String path, RString mimetype, Ice.Current __current) throws ServerError
Description copied from interface:_RepositoryOperationsCreate an OriginalFile in the database for the given path.- Specified by:
registerin interface_RepositoryOperations__current- The Current object for the invocation.- Throws:
ServerError
-
root
public OriginalFile root(Ice.Current __current) throws ServerError
Description copied from interface:_RepositoryOperationsReturn the OriginalFile descriptor for this Repository. It will have the path of the repository's root on the underlying filesystem.- Specified by:
rootin interface_RepositoryOperations- Parameters:
__current- The Current object for the invocation.- Throws:
ServerError
-
treeList
public RMap treeList(java.lang.String path, Ice.Current __current) throws ServerError
Description copied from interface:_RepositoryOperationsSimilar tolistbut 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 returnedRMapfor 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 } } } }- Specified by:
treeListin interface_RepositoryOperations__current- The Current object for the invocation.- Throws:
ServerError
-
-