public class MetadataImpl extends AbstractLevel2Service implements IMetadata
IMetadata
I/F.iQuery, iUpdate, metadata, queryFactory, readOnlyStatus, sec
MOVIE_MPEG_NS, MOVIE_QT_NS, MOVIE_WMV_NS, NS_IMPORTER_ARCHIVED, NS_INSIGHT_RATING, NS_INSIGHT_TAG_SET
Constructor and Description |
---|
MetadataImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
countAnnotationsUsedNotOwned(java.lang.Class annotationType,
long userID)
Counts the number of annotation of a given type used by the specified
user but not owned by the user.
|
java.lang.Long |
countSpecifiedAnnotations(java.lang.Class type,
java.util.Set<java.lang.String> include,
java.util.Set<java.lang.String> exclude,
Parameters options)
Counts the number of annotation of a given type.
|
java.lang.Class<? extends ServiceInterface> |
getServiceInterface()
Returns the Interface implemented by this class.
|
java.util.Map |
getTaggedObjectsCount(java.util.Set<java.lang.Long> tagIds,
Parameters options)
Returns a map whose key is a tag's id and the value the number of
Projects, Datasets, and Images linked to that tag.
|
<A extends Annotation> |
loadAnnotation(java.util.Set<java.lang.Long> annotationIds)
Loads the specified annotations.
|
<T extends IObject,A extends Annotation> |
loadAnnotations(java.lang.Class<T> rootNodeType,
java.util.Set<java.lang.Long> rootNodeIds,
java.util.Set<java.lang.String> annotationTypes,
java.util.Set<java.lang.Long> annotatorIds,
Parameters options)
Loads all the annotations of given types,
that have been attached to the specified
rootNodes
for the specified annotatorIds . |
java.util.Set<IObject> |
loadAnnotationsUsedNotOwned(java.lang.Class annotationType,
long userID)
Loads the annotations of a given type used by the specified
user but not owned by the user.
|
java.util.Set |
loadChannelAcquisitionData(java.util.Set<java.lang.Long> ids)
Loads the
logical channels and the acquisition metadata
related to them. |
Instrument |
loadInstrument(long id)
Loads the instrument and its components i.e. detectors, objectives, etc.
|
java.util.Map<java.lang.Long,java.util.Set<IObject>> |
loadLogFiles(java.lang.Class<? extends IObject> rootNodeType,
java.util.Set<java.lang.Long> ids)
Find the original file IDs for the import logs corresponding to the given Image or Fileset IDs.
|
<A extends Annotation> |
loadSpecifiedAnnotations(java.lang.Class type,
java.util.Set<java.lang.String> include,
java.util.Set<java.lang.String> exclude,
Parameters options)
Loads all the annotations of a given type.
|
<A extends Annotation> |
loadSpecifiedAnnotationsLinkedTo(java.lang.Class type,
java.util.Set<java.lang.String> include,
java.util.Set<java.lang.String> exclude,
java.lang.Class rootNodeType,
java.util.Set<java.lang.Long> rootNodeIds,
Parameters options)
Loads the annotations of a given type linked to the specified objects.
|
java.util.Map<java.lang.Long,java.util.Set<IObject>> |
loadTagContent(java.util.Set<java.lang.Long> tagIds,
Parameters options)
Loads the Tag Set if the id is specified otherwise loads all the Tag
Set.
|
java.util.Set<IObject> |
loadTagSets(Parameters options)
Loads all the tag Sets.
|
void |
setIContainer(IContainer iContainer)
IContainer bean injector.
|
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setReadOnlyStatus, setSecuritySystem, setUpdateService
public final java.lang.Class<? extends ServiceInterface> getServiceInterface()
getServiceInterface
in interface SelfConfigurableService
public final void setIContainer(IContainer iContainer)
iContainer
- The value to set.@Transactional(readOnly=true) public Instrument loadInstrument(long id)
IMetadata
loadInstrument
in interface IMetadata
id
- The id of the instrument to load.@Transactional(readOnly=true) public java.util.Set loadChannelAcquisitionData(java.util.Set<java.lang.Long> ids)
IMetadata
logical channels
and the acquisition metadata
related to them.loadChannelAcquisitionData
in interface IMetadata
ids
- The collection of logical channel's ids.
Mustn't be null
.@Transactional(readOnly=true) public <T extends IObject,A extends Annotation> java.util.Map<java.lang.Long,java.util.Set<A>> loadAnnotations(java.lang.Class<T> rootNodeType, java.util.Set<java.lang.Long> rootNodeIds, java.util.Set<java.lang.String> annotationTypes, java.util.Set<java.lang.Long> annotatorIds, Parameters options)
IMetadata
rootNodes
for the specified annotatorIds
.
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 each rootNodeId
onto
the set of annotations that were found for that node. If no
annotations were found for that node, then the entry will be
null
. Otherwise it will be a Set
containing Annotation
objects.loadAnnotations
in interface IMetadata
rootNodeType
- The type of the nodes the annotations are linked to.
Mustn't be null
.rootNodeIds
- Ids of the objects of type rootNodeType
.
Mustn't be null
.annotationTypes
- The types of annotation to retrieve.
If null
all annotations will be
loaded. String of the type
ome.model.annotations.*
.annotatorIds
- Ids of the users for whom annotations should be
retrieved.
If null
, all annotations returned.Set
of
all annotations for that node or null
.@Transactional(readOnly=true) public <A extends Annotation> java.util.Set<A> loadSpecifiedAnnotations(java.lang.Class type, java.util.Set<java.lang.String> include, java.util.Set<java.lang.String> exclude, Parameters options)
IMetadata
loadSpecifiedAnnotations
in interface IMetadata
type
- The type of annotations to load.include
- Include the annotations with the specified name spaces.exclude
- Exclude the annotations with the specified name spaces.options
- The POJO options.@Transactional(readOnly=true) public java.lang.Long countSpecifiedAnnotations(java.lang.Class type, java.util.Set<java.lang.String> include, java.util.Set<java.lang.String> exclude, Parameters options)
IMetadata
countSpecifiedAnnotations
in interface IMetadata
type
- The type of annotations to load.include
- The collection of name space, one of the constants
defined by this class.exclude
- The collection of name space, one of the constants
defined by this class.options
- The POJO options.@Transactional(readOnly=true) public <A extends Annotation> java.util.Set<A> loadAnnotation(java.util.Set<java.lang.Long> annotationIds)
IMetadata
loadAnnotation
in interface IMetadata
annotationIds
- The collection of annotation's ids.@Transactional(readOnly=true) public java.util.Map<java.lang.Long,java.util.Set<IObject>> loadTagContent(java.util.Set<java.lang.Long> tagIds, Parameters options)
IMetadata
loadTagContent
in interface IMetadata
tagIds
- The id of the tag to load or -1
.options
- The POJO options.Tag/Tag Set
and the value
either a Map or a list of related DataObject
.@Transactional(readOnly=true) public java.util.Set<IObject> loadTagSets(Parameters options)
IMetadata
AnnotationAnnotatioLink
objects and, if the
orphan
parameters is true
, the
TagAnnotation
object.
Note that the difference between a Tag Set and a Tag is made
using the name space IMetadata.NS_INSIGHT_TAG_SET
.loadTagSets
in interface IMetadata
options
- The POJO options.@Transactional(readOnly=true) public java.util.Map getTaggedObjectsCount(java.util.Set<java.lang.Long> tagIds, Parameters options)
IMetadata
getTaggedObjectsCount
in interface IMetadata
tagIds
- The collection of ids.options
- The POJO options.@Transactional(readOnly=true) public java.util.Set<IObject> loadAnnotationsUsedNotOwned(java.lang.Class annotationType, long userID)
IMetadata
loadAnnotationsUsedNotOwned
in interface IMetadata
annotationType
- The type of annotations to load.userID
- The identifier of the user.@Transactional(readOnly=true) public java.lang.Long countAnnotationsUsedNotOwned(java.lang.Class annotationType, long userID)
IMetadata
countAnnotationsUsedNotOwned
in interface IMetadata
annotationType
- The type of annotations to load.userID
- The identifier of the user.@Transactional(readOnly=true) public <A extends Annotation> java.util.Map<java.lang.Long,java.util.Set<A>> loadSpecifiedAnnotationsLinkedTo(java.lang.Class type, java.util.Set<java.lang.String> include, java.util.Set<java.lang.String> exclude, java.lang.Class rootNodeType, java.util.Set<java.lang.Long> rootNodeIds, Parameters options)
IMetadata
rootNodeId
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 a Set
containing Annotation
objects.
The rootNodeType
supported are:
Project, Dataset, Image, Pixels, Screen, Plate, PlateAcquisition, Well,
Fileset.loadSpecifiedAnnotationsLinkedTo
in interface IMetadata
type
- The type of annotations to load.include
- Include the annotations with the specified name spaces.exclude
- Exclude the annotations with the specified name spaces.rootNodeType
- The type of objects the annotations are linked to.rootNodeIds
- The identifiers of the objects.options
- The POJO options.@Transactional(readOnly=true) public java.util.Map<java.lang.Long,java.util.Set<IObject>> loadLogFiles(java.lang.Class<? extends IObject> rootNodeType, java.util.Set<java.lang.Long> ids)
IMetadata
loadLogFiles
in interface IMetadata
rootNodeType
- the root node type, may be Image
or Fileset
ids
- the IDs of the entities for which the import log original file IDs are required
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.