Version: Beta4.2.1-r8614-Beta4.2-b41
|
Client-accessible interface representing a single mount point on the server-side.
Return the OriginalFile descriptor for this Repository. It will have the path "/"
Returns the best-guess mimetype for the given path.
Create an OriginalFile in the database for the given path.
Create an entry in the database for the given OriginalFile. If the given OriginalFile is null a ValidationException is thrown. Otherwise, an entry is added and an unloaded IObject returned with id set.
Create entries in the database for the OriginalFile and Images in the imageList. If the given ImageList is null or empty the OriginalFile is registered only. If the OriginalFile is null a ValidationException is thrown. Otherwise, objects are added and list containing a loaded OriginalFile followed by the loaded Images is returned with ids set.
Import image metadata using the parent orginal file. If the id does not exist a ValidationException is thrown. Otherwise, the image set linked to that original file will have its metadata imported. The imported pixels list is returned.
Load the OriginalFile at the given path with annotations and associated Pixels (if present). If the path does not point to an OriginalFile, a ValidationException exception is thrown. TODO should this just return null instead?
Returns a special RawFileStore which permits only reading. Any call to a write or configuration method will throw an ApiUsageException.
Returns a special RawFileStore which permits only writing. Any call to a read or configuraiton method will throw an ApiUsageException. If a file exists at the given path, a ValidationException will be thrown. Once writing is complete, call close(), which will seal the file from all further writing. The SHA1 of the OriginalFile should be checked against the local value.
Returns true if the file or path exists within the repository
Return the full path of a jpg thumbnail of the image file given in the path argument.
Return the full path of a jpg thumbnail of the image at the imageIndex in the file set represented by the file given in the path argument.
|