public abstract class _ManagedRepositoryDisp extends Ice.ObjectImpl implements ManagedRepository
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
__ids |
static long |
serialVersionUID |
ice_staticId
Constructor and Description |
---|
_ManagedRepositoryDisp() |
Modifier and Type | Method and Description |
---|---|
static Ice.DispatchStatus |
___importFileset(ManagedRepository __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___importPaths(ManagedRepository __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___listChecksumAlgorithms(ManagedRepository __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___listImports(ManagedRepository __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___setChecksumAlgorithm(ManagedRepository __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___suggestChecksumAlgorithm(ManagedRepository __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___verifyChecksums(ManagedRepository __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
Ice.DispatchStatus |
__dispatch(IceInternal.Incoming in,
Ice.Current __current) |
protected void |
__readImpl(IceInternal.BasicStream __is) |
protected void |
__writeImpl(IceInternal.BasicStream __os) |
HandlePrx |
deletePaths(java.lang.String[] paths,
boolean recursively,
boolean force)
Delete several individual paths.
|
RawFileStorePrx |
file(java.lang.String path,
java.lang.String mode)
Returns a special RawFileStore which permits only the operations
set out in the options string ""wb"", ""a+"", etc.
|
RawFileStorePrx |
fileById(long id) |
boolean |
fileExists(java.lang.String path)
Returns true if the file or path exists within the repository.
|
protected void |
ice_copyStateFrom(Ice.Object __obj) |
java.lang.String |
ice_id() |
java.lang.String |
ice_id(Ice.Current __current) |
java.lang.String[] |
ice_ids() |
java.lang.String[] |
ice_ids(Ice.Current __current) |
boolean |
ice_isA(java.lang.String s) |
boolean |
ice_isA(java.lang.String s,
Ice.Current __current) |
static java.lang.String |
ice_staticId() |
ImportProcessPrx |
importFileset(Fileset fs,
ImportSettings settings)
Returns an
ImportProcess which can be used to upload files. |
ImportProcessPrx |
importPaths(java.util.List<java.lang.String> filePaths)
For clients without access to Bio-Formats, the simplified
importPaths method allows passing solely the absolute
path of the files to be uploaded (no directories) and all
configuration happens server-side. |
java.util.List<java.lang.String> |
list(java.lang.String path)
Returns a set of strings naming the files and directories in
the directory denoted by an abstract pathname.
|
java.util.List<ChecksumAlgorithm> |
listChecksumAlgorithms()
Return the list of checksum algorithms supported by this repository
for verifying the integrity of uploaded files.
|
java.util.List<OriginalFile> |
listFiles(java.lang.String path)
Returns an array of abstract pathname objects denoting the
files in the directory denoted by an abstract pathname.
|
java.util.List<ImportProcessPrx> |
listImports()
List imports that are currently running in this importer.
|
void |
makeDir(java.lang.String path,
boolean parents)
Create a directory at the given path.
|
java.lang.String |
mimetype(java.lang.String path)
Returns the best-guess mimetype for the given path.
|
OriginalFile |
register(java.lang.String path,
RString mimetype)
Create an OriginalFile in the database for the given path.
|
OriginalFile |
root()
Return the OriginalFile descriptor for this Repository.
|
java.util.List<java.lang.Long> |
setChecksumAlgorithm(ChecksumAlgorithm hasher,
java.util.List<java.lang.Long> ids)
Set the checksum algorithm for the original files identified
by the given IDs and calculate their checksum accordingly.
|
ChecksumAlgorithm |
suggestChecksumAlgorithm(java.util.List<ChecksumAlgorithm> supported)
Suggest a checksum algorithm to use for
ImportSettings.checksumAlgorithm according to the
preferences set by the server administrator. |
RMap |
treeList(java.lang.String path)
Similar to
list but recursive and returns only
primitive values for the file at each location. |
java.util.List<java.lang.Long> |
verifyChecksums(java.util.List<java.lang.Long> ids)
Verify the checksum for the original files identified by
the given IDs.
|
___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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
importFileset, importPaths, listChecksumAlgorithms, listImports, setChecksumAlgorithm, suggestChecksumAlgorithm, verifyChecksums
__read, __read, __write, __write, clone, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
deletePaths, file, fileById, fileExists, list, listFiles, makeDir, mimetype, register, root, treeList
public static final java.lang.String[] __ids
public static final long serialVersionUID
protected void ice_copyStateFrom(Ice.Object __obj) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public boolean ice_isA(java.lang.String s)
ice_isA
in interface Ice.Object
ice_isA
in class Ice.ObjectImpl
public boolean ice_isA(java.lang.String s, Ice.Current __current)
ice_isA
in interface Ice.Object
ice_isA
in class Ice.ObjectImpl
public java.lang.String[] ice_ids()
ice_ids
in interface Ice.Object
ice_ids
in class Ice.ObjectImpl
public java.lang.String[] ice_ids(Ice.Current __current)
ice_ids
in interface Ice.Object
ice_ids
in class Ice.ObjectImpl
public java.lang.String ice_id()
ice_id
in interface Ice.Object
ice_id
in class Ice.ObjectImpl
public java.lang.String ice_id(Ice.Current __current)
ice_id
in interface Ice.Object
ice_id
in class Ice.ObjectImpl
public static java.lang.String ice_staticId()
public final ImportProcessPrx importFileset(Fileset fs, ImportSettings settings) throws ServerError
ImportProcess
which can be used to upload files.
On _ImportProcessOperations.verifyUpload(java.util.List<java.lang.String>, Ice.Current)
, an Handle
will be
returned which can be watched for knowing when the server-side import
is complete.
Client paths set in the fileset entries must /-separate their components.
Once the upload is complete, the ImportProcess
must be closed.
Once _HandleOperations.getResponse(Ice.Current)
returns a non-null value, the
handle instance can and must be closed.importFileset
in interface _ManagedRepositoryOperationsNC
ServerError
public final ImportProcessPrx importPaths(java.util.List<java.lang.String> filePaths) throws ServerError
importPaths
method allows passing solely the absolute
path of the files to be uploaded (no directories) and all
configuration happens server-side. Much of the functionality
provided via Fileset
and
ImportSettings
is of course lost.importPaths
in interface _ManagedRepositoryOperationsNC
ServerError
public final java.util.List<ChecksumAlgorithm> listChecksumAlgorithms()
ImportSettings.checksumAlgorithm
.listChecksumAlgorithms
in interface _ManagedRepositoryOperationsNC
public final java.util.List<ImportProcessPrx> listImports() throws ServerError
Fileset
object which is being created
by the import. If the user has write permissions for the
fileset, then the import will be included.listImports
in interface _ManagedRepositoryOperationsNC
ServerError
public final java.util.List<java.lang.Long> setChecksumAlgorithm(ChecksumAlgorithm hasher, java.util.List<java.lang.Long> ids) throws ServerError
setChecksumAlgorithm
in interface _ManagedRepositoryOperationsNC
ServerError
public final ChecksumAlgorithm suggestChecksumAlgorithm(java.util.List<ChecksumAlgorithm> supported)
ImportSettings.checksumAlgorithm
according to the
preferences set by the server administrator. Provide a
list of the algorithms supported by the client, and the
server will report which of them is most preferred by
the server, or return null if none of them are supported.suggestChecksumAlgorithm
in interface _ManagedRepositoryOperationsNC
public final java.util.List<java.lang.Long> verifyChecksums(java.util.List<java.lang.Long> ids) throws ServerError
verifyChecksums
in interface _ManagedRepositoryOperationsNC
ServerError
public final HandlePrx deletePaths(java.lang.String[] paths, boolean recursively, boolean force) throws ServerError
Delete2
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 _RepositoryOperationsNC
ServerError
public final RawFileStorePrx file(java.lang.String path, java.lang.String mode) throws ServerError
file
in interface _RepositoryOperationsNC
ServerError
public final RawFileStorePrx fileById(long id) throws ServerError
fileById
in interface _RepositoryOperationsNC
ServerError
public final boolean fileExists(java.lang.String path) throws ServerError
listFiles
would return an object for this path.fileExists
in interface _RepositoryOperationsNC
ServerError
public final java.util.List<java.lang.String> list(java.lang.String path) throws ServerError
list
in interface _RepositoryOperationsNC
ServerError
public final java.util.List<OriginalFile> listFiles(java.lang.String path) throws ServerError
OriginalFile
instance.listFiles
in interface _RepositoryOperationsNC
ServerError
public final void makeDir(java.lang.String path, boolean parents) throws ServerError
makeDir
in interface _RepositoryOperationsNC
ServerError
public final java.lang.String mimetype(java.lang.String path) throws ServerError
mimetype
in interface _RepositoryOperationsNC
ServerError
public final OriginalFile register(java.lang.String path, RString mimetype) throws ServerError
register
in interface _RepositoryOperationsNC
ServerError
public final OriginalFile root() throws ServerError
root
in interface _RepositoryOperationsNC
ServerError
public final RMap treeList(java.lang.String path) throws ServerError
list
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 _RepositoryOperationsNC
ServerError
public static Ice.DispatchStatus ___importFileset(ManagedRepository __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___importPaths(ManagedRepository __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___listImports(ManagedRepository __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___listChecksumAlgorithms(ManagedRepository __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___suggestChecksumAlgorithm(ManagedRepository __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___verifyChecksums(ManagedRepository __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___setChecksumAlgorithm(ManagedRepository __obj, IceInternal.Incoming __inS, Ice.Current __current)
public Ice.DispatchStatus __dispatch(IceInternal.Incoming in, Ice.Current __current)
__dispatch
in interface Ice.Object
__dispatch
in class Ice.ObjectImpl
protected void __writeImpl(IceInternal.BasicStream __os)
__writeImpl
in class Ice.ObjectImpl
protected void __readImpl(IceInternal.BasicStream __is)
__readImpl
in class Ice.ObjectImpl