Package ome.services.blitz.impl
Class MetadataI
- java.lang.Object
-
- ome.services.blitz.impl.AbstractAmdServant
-
- ome.services.blitz.impl.MetadataI
-
- All Implemented Interfaces:
_IMetadataOperations
,_ServiceInterfaceOperations
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class MetadataI extends AbstractAmdServant implements _IMetadataOperations
Implementation of theIMetadata
service.- Since:
- 3.0-Beta4
-
-
Constructor Summary
Constructors Constructor Description MetadataI(ome.api.IMetadata service, BlitzExecutor be)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
countAnnotationsUsedNotOwned_async(AMD_IMetadata_countAnnotationsUsedNotOwned __cb, java.lang.String annotationType, long userID, Ice.Current __current)
Counts the number of annotation of a given type used by the specified user but not owned by the user.void
countSpecifiedAnnotations_async(AMD_IMetadata_countSpecifiedAnnotations __cb, java.lang.String annotationType, java.util.List<java.lang.String> include, java.util.List<java.lang.String> exclude, Parameters options, Ice.Current __current)
Counts the number of annotation of a given type.void
getTaggedObjectsCount_async(AMD_IMetadata_getTaggedObjectsCount __cb, java.util.List<java.lang.Long> ids, Parameters options, Ice.Current __current)
Returns a map whose key is a tag id and the value the number of Projects, Datasets, and Images linked to that tag.void
loadAnnotation_async(AMD_IMetadata_loadAnnotation __cb, java.util.List<java.lang.Long> ids, Ice.Current __current)
Loads the specified annotations.void
loadAnnotations_async(AMD_IMetadata_loadAnnotations __cb, java.lang.String rootType, java.util.List<java.lang.Long> rootIds, java.util.List<java.lang.String> annotationTypes, java.util.List<java.lang.Long> annotatorIds, Parameters options, Ice.Current __current)
Loads all the annotations of given types, that have been attached to the specifiedrootNodes
for the specifiedannotatorIds
.void
loadAnnotationsUsedNotOwned_async(AMD_IMetadata_loadAnnotationsUsedNotOwned __cb, java.lang.String annotationType, long userID, Ice.Current __current)
Loads the annotations of a given type used by the specified user but not owned by the user.void
loadChannelAcquisitionData_async(AMD_IMetadata_loadChannelAcquisitionData __cb, java.util.List<java.lang.Long> ids, Ice.Current __current)
Loads the logical channels and the acquisition metadata related to them.void
loadInstrument_async(AMD_IMetadata_loadInstrument __cb, long id, Ice.Current __current)
Loads the instrument and its components i.e.void
loadLogFiles_async(AMD_IMetadata_loadLogFiles __cb, java.lang.String rootType, java.util.List<java.lang.Long> ids, Ice.Current __current)
Finds the original file IDs for the import logs corresponding to the given Image or Fileset IDs.void
loadSpecifiedAnnotations_async(AMD_IMetadata_loadSpecifiedAnnotations __cb, java.lang.String annotationType, java.util.List<java.lang.String> include, java.util.List<java.lang.String> exclude, Parameters options, Ice.Current __current)
Loads all the annotations of a given type.void
loadSpecifiedAnnotationsLinkedTo_async(AMD_IMetadata_loadSpecifiedAnnotationsLinkedTo __cb, java.lang.String annotationType, java.util.List<java.lang.String> include, java.util.List<java.lang.String> exclude, java.lang.String rootNodeType, java.util.List<java.lang.Long> nodeIds, Parameters options, Ice.Current __current)
Loads the annotations of a given type linked to the specified objects.void
loadTagContent_async(AMD_IMetadata_loadTagContent __cb, java.util.List<java.lang.Long> ids, Parameters options, Ice.Current __current)
Loads the TagSet if the id is specified otherwise loads all the TagSet.void
loadTagSets_async(AMD_IMetadata_loadTagSets __cb, Parameters options, Ice.Current __current)
Loads all the TagSets.protected java.lang.String
map(java.lang.String annotationType)
protected void
map(java.util.List<java.lang.String> annotationTypes)
-
Methods inherited from class ome.services.blitz.impl.AbstractAmdServant
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
-
-
-
-
Constructor Detail
-
MetadataI
public MetadataI(ome.api.IMetadata service, BlitzExecutor be)
Creates a new instance.- Parameters:
service
- Reference to the service.be
- The executor.
-
-
Method Detail
-
loadChannelAcquisitionData_async
public void loadChannelAcquisitionData_async(AMD_IMetadata_loadChannelAcquisitionData __cb, java.util.List<java.lang.Long> ids, Ice.Current __current) throws ServerError
Description copied from interface:_IMetadataOperations
Loads the logical channels and the acquisition metadata related to them.- Specified by:
loadChannelAcquisitionData_async
in interface_IMetadataOperations
- Parameters:
__cb
- The callback object for the operation.ids
- The collection of logical channel's ids. Mustn't benull
.__current
- The Current object for the invocation.- Throws:
ServerError
-
loadAnnotations_async
public void loadAnnotations_async(AMD_IMetadata_loadAnnotations __cb, java.lang.String rootType, java.util.List<java.lang.Long> rootIds, java.util.List<java.lang.String> annotationTypes, java.util.List<java.lang.Long> annotatorIds, Parameters options, Ice.Current __current) throws ServerError
Description copied from interface:_IMetadataOperations
Loads all the annotations of given types, that have been attached to the specifiedrootNodes
for the specifiedannotatorIds
. If no types specified, all annotations will be loaded. This method looks for the annotations that have been attached to each of the specified objects. It then maps eachrootId
onto the set of annotations that were found for that node. If no annotations were found for that node, then the entry will benull
. Otherwise it will be aMap
containingAnnotation
objects.- Specified by:
loadAnnotations_async
in interface_IMetadataOperations
- Parameters:
__cb
- The callback object for the operation.rootType
- The type of the nodes the annotations are linked to. Mustn't benull
.rootIds
- Ids of the objects of typerootType
. Mustn't benull
.annotationTypes
- The types of annotation to retrieve. Ifnull
all annotations will be loaded. String of the typeomero.model.annotations.*
.annotatorIds
- Ids of the users for whom annotations should be retrieved. Ifnull
, all annotations returned.__current
- The Current object for the invocation.- Throws:
ServerError
-
loadSpecifiedAnnotations_async
public void loadSpecifiedAnnotations_async(AMD_IMetadata_loadSpecifiedAnnotations __cb, java.lang.String annotationType, java.util.List<java.lang.String> include, java.util.List<java.lang.String> exclude, Parameters options, Ice.Current __current) throws ServerError
Description copied from interface:_IMetadataOperations
Loads all the annotations of a given type. It is possible to filter the annotations by including or excluding name spaces set on the annotations.- Specified by:
loadSpecifiedAnnotations_async
in interface_IMetadataOperations
- Parameters:
__cb
- The callback object for the operation.annotationType
- The type of annotations to load.exclude
- Exclude the annotations with the specified name spaces.options
- The POJO options.__current
- The Current object for the invocation.- Throws:
ServerError
-
countSpecifiedAnnotations_async
public void countSpecifiedAnnotations_async(AMD_IMetadata_countSpecifiedAnnotations __cb, java.lang.String annotationType, java.util.List<java.lang.String> include, java.util.List<java.lang.String> exclude, Parameters options, Ice.Current __current) throws ServerError
Description copied from interface:_IMetadataOperations
Counts the number of annotation of a given type.- Specified by:
countSpecifiedAnnotations_async
in interface_IMetadataOperations
- Parameters:
__cb
- The callback object for the operation.annotationType
- The type of annotations to load.exclude
- The collection of name space, one of the constants defined by this class.options
- The POJO options.__current
- The Current object for the invocation.- Throws:
ServerError
-
loadTagSets_async
public void loadTagSets_async(AMD_IMetadata_loadTagSets __cb, Parameters options, Ice.Current __current) throws ServerError
Description copied from interface:_IMetadataOperations
Loads all the TagSets. Returns a collection ofAnnotationAnnotatioLink
objects and, if theorphan
parameters istrue
, theTagAnnotation
object. Note that the difference between a TagSet and a Tag is made using the NS_INSIGHT_TAG_SET namespace.- Specified by:
loadTagSets_async
in interface_IMetadataOperations
- Parameters:
__cb
- The callback object for the operation.options
- The POJO options.__current
- The Current object for the invocation.- Throws:
ServerError
-
loadTagContent_async
public void loadTagContent_async(AMD_IMetadata_loadTagContent __cb, java.util.List<java.lang.Long> ids, Parameters options, Ice.Current __current) throws ServerError
Description copied from interface:_IMetadataOperations
Loads the TagSet if the id is specified otherwise loads all the TagSet.- Specified by:
loadTagContent_async
in interface_IMetadataOperations
- Parameters:
__cb
- The callback object for the operation.ids
- The id of the tag to load or-1
.__current
- The Current object for the invocation.- Throws:
ServerError
-
getTaggedObjectsCount_async
public void getTaggedObjectsCount_async(AMD_IMetadata_getTaggedObjectsCount __cb, java.util.List<java.lang.Long> ids, Parameters options, Ice.Current __current) throws ServerError
Description copied from interface:_IMetadataOperations
Returns a map whose key is a tag id and the value the number of Projects, Datasets, and Images linked to that tag.- Specified by:
getTaggedObjectsCount_async
in interface_IMetadataOperations
- Parameters:
__cb
- The callback object for the operation.ids
- The collection of ids.__current
- The Current object for the invocation.- Throws:
ServerError
-
loadAnnotation_async
public void loadAnnotation_async(AMD_IMetadata_loadAnnotation __cb, java.util.List<java.lang.Long> ids, Ice.Current __current) throws ServerError
Description copied from interface:_IMetadataOperations
Loads the specified annotations.- Specified by:
loadAnnotation_async
in interface_IMetadataOperations
- Parameters:
__cb
- The callback object for the operation.ids
- The collection of annotation ids.__current
- The Current object for the invocation.- Throws:
ServerError
-
loadInstrument_async
public void loadInstrument_async(AMD_IMetadata_loadInstrument __cb, long id, Ice.Current __current) throws ServerError
Description copied from interface:_IMetadataOperations
Loads the instrument and its components i.e. detectors, objectives, etc.- Specified by:
loadInstrument_async
in interface_IMetadataOperations
- Parameters:
__cb
- The callback object for the operation.id
- The id of the instrument to load.__current
- The Current object for the invocation.- Throws:
ServerError
-
countAnnotationsUsedNotOwned_async
public void countAnnotationsUsedNotOwned_async(AMD_IMetadata_countAnnotationsUsedNotOwned __cb, java.lang.String annotationType, long userID, Ice.Current __current) throws ServerError
Description copied from interface:_IMetadataOperations
Counts the number of annotation of a given type used by the specified user but not owned by the user.- Specified by:
countAnnotationsUsedNotOwned_async
in interface_IMetadataOperations
- Parameters:
__cb
- The callback object for the operation.annotationType
- The type of annotations to load.__current
- The Current object for the invocation.- Throws:
ServerError
-
loadAnnotationsUsedNotOwned_async
public void loadAnnotationsUsedNotOwned_async(AMD_IMetadata_loadAnnotationsUsedNotOwned __cb, java.lang.String annotationType, long userID, Ice.Current __current) throws ServerError
Description copied from interface:_IMetadataOperations
Loads the annotations of a given type used by the specified user but not owned by the user.- Specified by:
loadAnnotationsUsedNotOwned_async
in interface_IMetadataOperations
- Parameters:
__cb
- The callback object for the operation.annotationType
- The type of annotations to load.__current
- The Current object for the invocation.- Throws:
ServerError
-
loadSpecifiedAnnotationsLinkedTo_async
public void loadSpecifiedAnnotationsLinkedTo_async(AMD_IMetadata_loadSpecifiedAnnotationsLinkedTo __cb, java.lang.String annotationType, java.util.List<java.lang.String> include, java.util.List<java.lang.String> exclude, java.lang.String rootNodeType, java.util.List<java.lang.Long> nodeIds, Parameters options, Ice.Current __current) throws ServerError
Description copied from interface:_IMetadataOperations
Loads the annotations of a given type linked to the specified objects. It is possible to filter the annotations by including or excluding name spaces set on the annotations. This method looks for the annotations that have been attached to each of the specified objects. It then maps eachrootNodeId
onto the set of annotations that were found for that node. If no annotations were found for that node, the map will not contain an entry for that node. Otherwise it will be aSet
containingAnnotation
objects. TherootNodeType
supported are: Project, Dataset, Image, Pixels, Screen, Plate, PlateAcquisition, Well, Fileset.- Specified by:
loadSpecifiedAnnotationsLinkedTo_async
in interface_IMetadataOperations
- Parameters:
__cb
- The callback object for the operation.annotationType
- The type of annotations to load.exclude
- Exclude the annotations with the specified name spaces.rootNodeType
- The type of objects the annotations are linked to.nodeIds
- The identifiers of the objects.__current
- The Current object for the invocation.- Throws:
ServerError
-
loadLogFiles_async
public void loadLogFiles_async(AMD_IMetadata_loadLogFiles __cb, java.lang.String rootType, java.util.List<java.lang.Long> ids, Ice.Current __current) throws ServerError
Description copied from interface:_IMetadataOperations
Finds the original file IDs for the import logs corresponding to the given Image or Fileset IDs.- Specified by:
loadLogFiles_async
in interface_IMetadataOperations
- Parameters:
__cb
- The callback object for the operation.rootType
- the root node type, may beImage
orFileset
ids
- the IDs of the entities for which the import log original file IDs are required__current
- The Current object for the invocation.- Throws:
ServerError
-
map
protected void map(java.util.List<java.lang.String> annotationTypes) throws ServerError
- Throws:
ServerError
-
map
protected java.lang.String map(java.lang.String annotationType) throws ServerError
- Throws:
ServerError
-
-