ome.services.blitz.repo
Class PublicRepositoryI

java.lang.Object
  extended by Ice.ObjectImpl
      extended by omero.grid._RepositoryDisp
          extended by ome.services.blitz.repo.PublicRepositoryI
All Implemented Interfaces:
Ice.Object, Serializable, Cloneable, omero.grid._RepositoryOperations, omero.grid._RepositoryOperationsNC, omero.grid.Repository

public class PublicRepositoryI
extends omero.grid._RepositoryDisp

An implementation of he PublicRepository interface

Author:
Colin Blackburn , Josh Moore, josh at glencoesoftware.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class omero.grid._RepositoryDisp
__ids
 
Constructor Summary
PublicRepositoryI(File root, long repoObjectId, Executor executor, ome.util.SqlAction sql, Principal principal)
           
 
Method Summary
 boolean create(String path, Ice.Current __current)
          Create a file in the repository if one doesn't already exist.
 void delete(String path, Ice.Current __current)
           
 omero.api.RawFileStorePrx file(long fileId, Ice.Current __current)
           
 boolean fileExists(String path, Ice.Current __current)
          Return true if a file exists in the repository.
 String getThumbnail(String path, Ice.Current __current)
          Get (the path of) the thumbnail image for an image file on the repository.
 String getThumbnailByIndex(String path, int imageIndex, Ice.Current __current)
          Get (the path of) the thumbnail image for an image file on the repository.
protected  List<omero.model.Pixels> importFile(File file, String clientSessionUuid, Map<Integer,omero.model.Image> imageMap)
           
 List<omero.model.Image> importFileSet(omero.model.OriginalFile keyFile, Ice.Current __current)
          Import an image set's metadata.
 List<omero.model.OriginalFile> listFiles(String path, omero.grid.RepositoryListConfig config, Ice.Current __current)
           
 List<omero.grid.FileSet> listFileSets(String path, omero.grid.RepositoryListConfig config, Ice.Current __current)
          Get a list of those files as importable and non-importable list.
 omero.model.OriginalFile load(String path, Ice.Current __current)
          Interface methods yet TODO
 String mimetype(String path, Ice.Current __current)
          Get the mimetype for a file.
 omero.api.RawPixelsStorePrx pixels(String path, Ice.Current __current)
           
 omero.api.RawFileStorePrx read(String path, Ice.Current __current)
           
 omero.model.OriginalFile register(String path, omero.RString mimetype, Ice.Current __current)
          Register an OriginalFile using its path
 List<omero.model.IObject> registerFileSet(omero.model.OriginalFile keyFile, List<omero.model.Image> imageList, Ice.Current __current)
          Register the Images in a list of Images, a single image will be a one-element list
 omero.model.OriginalFile registerOriginalFile(omero.model.OriginalFile omeroFile, Ice.Current __current)
          Register an OriginalFile object
 void rename(String path, Ice.Current __current)
           
 omero.api.RenderingEnginePrx render(String path, Ice.Current __current)
           
 omero.model.OriginalFile root(Ice.Current __current)
           
 omero.api.ThumbnailStorePrx thumbs(String path, Ice.Current __current)
           
 void transfer(String srcPath, omero.grid.RepositoryPrx target, String targetPath, Ice.Current __current)
           
 omero.api.RawFileStorePrx write(String path, Ice.Current __current)
           
 
Methods inherited from class omero.grid._RepositoryDisp
___create, ___delete, ___file, ___fileExists, ___getThumbnail, ___getThumbnailByIndex, ___importFileSet, ___listFiles, ___listFileSets, ___load, ___mimetype, ___pixels, ___read, ___register, ___registerFileSet, ___registerOriginalFile, ___rename, ___render, ___root, ___thumbs, ___transfer, ___write, __dispatch, __read, __read, __write, __write, create, delete, file, fileExists, getThumbnail, getThumbnailByIndex, ice_copyStateFrom, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, importFileSet, listFiles, listFileSets, load, mimetype, pixels, read, register, registerFileSet, registerOriginalFile, rename, render, root, thumbs, transfer, write
 
Methods inherited from class Ice.ObjectImpl
___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __collocDispatch, clone, ice_dispatch, ice_hash, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Ice.Object
__collocDispatch, clone, equals, ice_dispatch, ice_hash, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
 

Constructor Detail

PublicRepositoryI

public PublicRepositoryI(File root,
                         long repoObjectId,
                         Executor executor,
                         ome.util.SqlAction sql,
                         Principal principal)
                  throws Exception
Throws:
Exception
Method Detail

root

public omero.model.OriginalFile root(Ice.Current __current)
                              throws omero.ServerError
Throws:
omero.ServerError

register

public omero.model.OriginalFile register(String path,
                                         omero.RString mimetype,
                                         Ice.Current __current)
                                  throws omero.ServerError
Register an OriginalFile using its path

Parameters:
path - Absolute path of the file to be registered.
mimetype - Mimetype as an RString
__current - ice context.
Returns:
The OriginalFile with id set (unloaded)
Throws:
omero.ServerError

registerOriginalFile

public omero.model.OriginalFile registerOriginalFile(omero.model.OriginalFile omeroFile,
                                                     Ice.Current __current)
                                              throws omero.ServerError
Register an OriginalFile object

Parameters:
obj - OriginalFile object.
__current - ice context.
Returns:
The OriginalFile with id set
Throws:
omero.ServerError

registerFileSet

public List<omero.model.IObject> registerFileSet(omero.model.OriginalFile keyFile,
                                                 List<omero.model.Image> imageList,
                                                 Ice.Current __current)
                                          throws omero.ServerError
Register the Images in a list of Images, a single image will be a one-element list

Parameters:
filename - The absolute path of the parent file.
imageList - A list of Image objects.
params - Map
__current - ice context.
Returns:
A List of Images with ids set
Throws:
omero.ServerError

importFileSet

public List<omero.model.Image> importFileSet(omero.model.OriginalFile keyFile,
                                             Ice.Current __current)
                                      throws omero.ServerError
Import an image set's metadata.

Parameters:
id - The id of the parent original file.
__current - ice context.
Returns:
Throws:
omero.ServerError

importFile

protected List<omero.model.Pixels> importFile(File file,
                                              String clientSessionUuid,
                                              Map<Integer,omero.model.Image> imageMap)

delete

public void delete(String path,
                   Ice.Current __current)
            throws omero.ServerError
Throws:
omero.ServerError

listFiles

public List<omero.model.OriginalFile> listFiles(String path,
                                                omero.grid.RepositoryListConfig config,
                                                Ice.Current __current)
                                         throws omero.ServerError
Throws:
omero.ServerError

listFileSets

public List<omero.grid.FileSet> listFileSets(String path,
                                             omero.grid.RepositoryListConfig config,
                                             Ice.Current __current)
                                      throws omero.ServerError
Get a list of those files as importable and non-importable list.

Parameters:
path - A path on a repository
config - A RepositoryListConfig defining the listing config.
__current - ice context.
Returns:
A List of FileSet objects. The map uses the object name as key. This is the file name but should be something guaranteed to be unique.
Throws:
omero.ServerError

mimetype

public String mimetype(String path,
                       Ice.Current __current)
                throws omero.ServerError
Get the mimetype for a file.

Parameters:
path - A path on a repository.
__current - ice context.
Returns:
mimetype
Throws:
omero.ServerError

getThumbnail

public String getThumbnail(String path,
                           Ice.Current __current)
                    throws omero.ServerError
Get (the path of) the thumbnail image for an image file on the repository.

Parameters:
path - A path on a repository.
__current - ice context.
Returns:
The path of the thumbnail
Throws:
omero.ServerError

getThumbnailByIndex

public String getThumbnailByIndex(String path,
                                  int imageIndex,
                                  Ice.Current __current)
                           throws omero.ServerError
Get (the path of) the thumbnail image for an image file on the repository.

Parameters:
path - A path on a repository.
imageIndex - The index of an image in a multi-image file set.
__current - ice context.
Returns:
The path of the thumbnail
Throws:
omero.ServerError

fileExists

public boolean fileExists(String path,
                          Ice.Current __current)
                   throws omero.ServerError
Return true if a file exists in the repository.

Parameters:
path - A path on a repository.
__current - ice context.
Returns:
The existence of the file
Throws:
omero.ServerError

create

public boolean create(String path,
                      Ice.Current __current)
               throws omero.ServerError
Create a file in the repository if one doesn't already exist.

Parameters:
path - A path on a repository.
__current - ice context.
Returns:
The creation of the file (false means file already exists).
Throws:
omero.ServerError

load

public omero.model.OriginalFile load(String path,
                                     Ice.Current __current)
                              throws omero.ServerError
Interface methods yet TODO

Throws:
omero.ServerError

pixels

public omero.api.RawPixelsStorePrx pixels(String path,
                                          Ice.Current __current)
                                   throws omero.ServerError
Throws:
omero.ServerError

file

public omero.api.RawFileStorePrx file(long fileId,
                                      Ice.Current __current)
                               throws omero.ServerError
Throws:
omero.ServerError

read

public omero.api.RawFileStorePrx read(String path,
                                      Ice.Current __current)
                               throws omero.ServerError
Throws:
omero.ServerError

rename

public void rename(String path,
                   Ice.Current __current)
            throws omero.ServerError
Throws:
omero.ServerError

render

public omero.api.RenderingEnginePrx render(String path,
                                           Ice.Current __current)
                                    throws omero.ServerError
Throws:
omero.ServerError

thumbs

public omero.api.ThumbnailStorePrx thumbs(String path,
                                          Ice.Current __current)
                                   throws omero.ServerError
Throws:
omero.ServerError

transfer

public void transfer(String srcPath,
                     omero.grid.RepositoryPrx target,
                     String targetPath,
                     Ice.Current __current)
              throws omero.ServerError
Throws:
omero.ServerError

write

public omero.api.RawFileStorePrx write(String path,
                                       Ice.Current __current)
                                throws omero.ServerError
Throws:
omero.ServerError


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.