ome.services
Class OmeroFilePathResolver

java.lang.Object
  extended by ome.services.OmeroFilePathResolver
All Implemented Interfaces:
FilePathResolver

public class OmeroFilePathResolver
extends Object
implements FilePathResolver

OMERO server based resolver for file paths.

Since:
OMERO4.3
Author:
Chris Allan      callan@blackcat.ca

Field Summary
protected  String omeroDataDir
          The server's OMERO data directory.
protected  ome.util.SqlAction sql
          SQL action instance for this class.
 
Constructor Summary
OmeroFilePathResolver(ome.util.SqlAction sql, String omeroDataDir)
          Constructor.
 
Method Summary
 String getOriginalFilePath(AbstractFileSystemService service, ome.model.core.Pixels pixels)
          Retrieves the original file path for a given set of pixels.
 Map<String,String> getPixelsParams(ome.model.core.Pixels pixels)
          Retrieves the pixels set's stored parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sql

protected final ome.util.SqlAction sql
SQL action instance for this class.


omeroDataDir

protected final String omeroDataDir
The server's OMERO data directory.

Constructor Detail

OmeroFilePathResolver

public OmeroFilePathResolver(ome.util.SqlAction sql,
                             String omeroDataDir)
Constructor.

Parameters:
sql - SQL action instance for this class.
omeroDataDir - The server's OMERO data directory.
Method Detail

getOriginalFilePath

public String getOriginalFilePath(AbstractFileSystemService service,
                                  ome.model.core.Pixels pixels)
Description copied from interface: FilePathResolver
Retrieves the original file path for a given set of pixels.

Specified by:
getOriginalFilePath in interface FilePathResolver
Parameters:
service - File system service which contains methods to resolve the root and directory structure of the path.
pixels - Pixels set to retrieve an original file path for.
Returns:
Absolute path to the original file for the set of pixels.

getPixelsParams

public Map<String,String> getPixelsParams(ome.model.core.Pixels pixels)
Description copied from interface: FilePathResolver
Retrieves the pixels set's stored parameters.

Specified by:
getPixelsParams in interface FilePathResolver
Parameters:
pixels - Pixels set to retrieve parameters for.
Returns:
Map of key vs. value with the parameters for this pixels set.


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

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