public class OMEROMetadataStore
extends java.lang.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(ome.system.ServiceFactory factory,
ome.util.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() |
ome.model.IObject |
getObjectByLSID(ome.util.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.
|
java.util.List<ome.model.core.Pixels> |
saveToDB(ome.model.fs.FilesetJobLink link)
Saves the current object graph to the database.
|
void |
updateObject(java.lang.String lsid,
ome.model.IObject sourceObject,
java.util.Map<java.lang.String,java.lang.Integer> indexes)
Updates a given model object in our object graph.
|
void |
updateReferences(java.util.Map<java.lang.String,java.lang.String[]> referenceCache)
Updates our object graph references.
|
public OMEROMetadataStore()
public OMEROMetadataStore(ome.system.ServiceFactory factory, ome.util.SqlAction sql) throws ome.conditions.ValidationException
factory
- a non-null, active ServiceFactory
sql
- the SQL action instanceome.conditions.ValidationException
- if the factory is null or there
is another error instantiating required services.public void updateObject(java.lang.String lsid, ome.model.IObject sourceObject, java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.String[]> referenceCache)
referenceCache
- Client side LSID reference cache.public ome.model.IObject getObjectByLSID(ome.util.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 java.util.List<ome.model.core.Pixels> saveToDB(ome.model.fs.FilesetJobLink link)
link
- a link from the fileset to be linked frompublic void populateMinMax(double[][][] imageChannelGlobalMinMax)
imageChannelGlobalMinMax
- Minimums and maximums to update.