public class OMEROMetadataStore extends Object
SecuritySystem.login(ome.system.Principal)
method. While
attempts have been made to allow the caller to switch back and forth between
Images and Pixels during metadata population it is strongly
encouraged that at least Images and Pixels are populated in ascending order.
For example: Image_1 --> Pixels_1, Pixels_2 followed by Image_2 --> Pixels_1,
Pixels2, Pixels_3.Constructor and Description |
---|
OMEROMetadataStore()
Empty constructor for testing purposes.
|
OMEROMetadataStore(ServiceFactory factory,
SqlAction sql)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
checkAndCollapseGraph()
Checks the entire object graph for sections that may be collapsed if
the data is derived from a Plate.
|
void |
createRoot() |
IObject |
getObjectByLSID(LSID lsid)
Retrieves an object from the internal object graph by LSID.
|
void |
populateMinMax(double[][][] imageChannelGlobalMinMax)
Synchronize the minimum and maximum intensity values with those
specified by the client and save them in the DB.
|
List<Pixels> |
saveToDB(FilesetJobLink link)
Saves the current object graph to the database.
|
void |
updateObject(String lsid,
IObject sourceObject,
Map<String,Integer> indexes)
Updates a given model object in our object graph.
|
void |
updateReferences(Map<String,String[]> referenceCache)
Updates our object graph references.
|
public OMEROMetadataStore()
public OMEROMetadataStore(ServiceFactory factory, SqlAction sql) throws ValidationException
factory
- a non-null, active ServiceFactory
sql
- the SQL action instanceValidationException
- if the factory is null or there
is another error instantiating required services.public void updateObject(String lsid, IObject sourceObject, Map<String,Integer> indexes)
lsid
- LSID of model object.sourceObject
- Model object itself.indexes
- Any indexes that should are used to describe the model
object's graph location.public void updateReferences(Map<String,String[]> referenceCache)
referenceCache
- Client side LSID reference cache.public IObject getObjectByLSID(LSID lsid)
lsid
- LSID of the object.null
if the object is not in the
internal LSID map.public void createRoot()
public void checkAndCollapseGraph()
public List<Pixels> saveToDB(FilesetJobLink link)
link
- a link from the fileset to be linked frompublic void populateMinMax(double[][][] imageChannelGlobalMinMax)
imageChannelGlobalMinMax
- Minimums and maximums to update.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.