Package ome.logic

Class MetadataImpl

  • All Implemented Interfaces:
    ome.api.IMetadata, ome.api.ServiceInterface, ome.system.SelfConfigurableService

    public class MetadataImpl
    extends AbstractLevel2Service
    implements ome.api.IMetadata
    Implement the IMetadata I/F.
    Since:
    3.0-Beta4
    • Constructor Summary

      Constructors 
      Constructor Description
      MetadataImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Long countAnnotationsUsedNotOwned​(java.lang.Class annotationType, long userID)  
      java.lang.Long countSpecifiedAnnotations​(java.lang.Class type, java.util.Set<java.lang.String> include, java.util.Set<java.lang.String> exclude, ome.parameters.Parameters options)  
      java.lang.Class<? extends ome.api.ServiceInterface> getServiceInterface()
      Returns the Interface implemented by this class.
      java.util.Map getTaggedObjectsCount​(java.util.Set<java.lang.Long> tagIds, ome.parameters.Parameters options)  
      <A extends ome.model.annotations.Annotation>
      java.util.Set<A>
      loadAnnotation​(java.util.Set<java.lang.Long> annotationIds)  
      <T extends ome.model.IObject,​A extends ome.model.annotations.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, ome.parameters.Parameters options)  
      java.util.Set<ome.model.IObject> loadAnnotationsUsedNotOwned​(java.lang.Class annotationType, long userID)  
      java.util.Set loadChannelAcquisitionData​(java.util.Set<java.lang.Long> ids)  
      ome.model.acquisition.Instrument loadInstrument​(long id)  
      java.util.Map<java.lang.Long,​java.util.Set<ome.model.IObject>> loadLogFiles​(java.lang.Class<? extends ome.model.IObject> rootNodeType, java.util.Set<java.lang.Long> ids)  
      <A extends ome.model.annotations.Annotation>
      java.util.Set<A>
      loadSpecifiedAnnotations​(java.lang.Class type, java.util.Set<java.lang.String> include, java.util.Set<java.lang.String> exclude, ome.parameters.Parameters options)  
      <A extends ome.model.annotations.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, ome.parameters.Parameters options)  
      java.util.Map<java.lang.Long,​java.util.Set<ome.model.IObject>> loadTagContent​(java.util.Set<java.lang.Long> tagIds, ome.parameters.Parameters options)  
      java.util.Set<ome.model.IObject> loadTagSets​(ome.parameters.Parameters options)  
      void setIContainer​(ome.api.IContainer iContainer)
      IContainer bean injector.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetadataImpl

        public MetadataImpl()
    • Method Detail

      • getServiceInterface

        public final java.lang.Class<? extends ome.api.ServiceInterface> getServiceInterface()
        Returns the Interface implemented by this class.
        Specified by:
        getServiceInterface in interface ome.system.SelfConfigurableService
        Returns:
        See above.
      • setIContainer

        public final void setIContainer​(ome.api.IContainer iContainer)
        IContainer bean injector. For use during configuration. Can only be called once.
        Parameters:
        iContainer - The value to set.
      • loadInstrument

        @Transactional(readOnly=true)
        public ome.model.acquisition.Instrument loadInstrument​(long id)
        Specified by:
        loadInstrument in interface ome.api.IMetadata
      • loadChannelAcquisitionData

        @Transactional(readOnly=true)
        public java.util.Set loadChannelAcquisitionData​(java.util.Set<java.lang.Long> ids)
        Specified by:
        loadChannelAcquisitionData in interface ome.api.IMetadata
      • loadAnnotations

        @Transactional(readOnly=true)
        public <T extends ome.model.IObject,​A extends ome.model.annotations.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,
                                                                                                                                                                   ome.parameters.Parameters options)
        Specified by:
        loadAnnotations in interface ome.api.IMetadata
      • loadSpecifiedAnnotations

        @Transactional(readOnly=true)
        public <A extends ome.model.annotations.Annotation> java.util.Set<A> loadSpecifiedAnnotations​(java.lang.Class type,
                                                                                                      java.util.Set<java.lang.String> include,
                                                                                                      java.util.Set<java.lang.String> exclude,
                                                                                                      ome.parameters.Parameters options)
        Specified by:
        loadSpecifiedAnnotations in interface ome.api.IMetadata
      • countSpecifiedAnnotations

        @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,
                                                        ome.parameters.Parameters options)
        Specified by:
        countSpecifiedAnnotations in interface ome.api.IMetadata
      • loadAnnotation

        @Transactional(readOnly=true)
        public <A extends ome.model.annotations.Annotation> java.util.Set<A> loadAnnotation​(java.util.Set<java.lang.Long> annotationIds)
        Specified by:
        loadAnnotation in interface ome.api.IMetadata
      • loadTagContent

        @Transactional(readOnly=true)
        public java.util.Map<java.lang.Long,​java.util.Set<ome.model.IObject>> loadTagContent​(java.util.Set<java.lang.Long> tagIds,
                                                                                                   ome.parameters.Parameters options)
        Specified by:
        loadTagContent in interface ome.api.IMetadata
      • loadTagSets

        @Transactional(readOnly=true)
        public java.util.Set<ome.model.IObject> loadTagSets​(ome.parameters.Parameters options)
        Specified by:
        loadTagSets in interface ome.api.IMetadata
      • getTaggedObjectsCount

        @Transactional(readOnly=true)
        public java.util.Map getTaggedObjectsCount​(java.util.Set<java.lang.Long> tagIds,
                                                   ome.parameters.Parameters options)
        Specified by:
        getTaggedObjectsCount in interface ome.api.IMetadata
      • loadAnnotationsUsedNotOwned

        @Transactional(readOnly=true)
        public java.util.Set<ome.model.IObject> loadAnnotationsUsedNotOwned​(java.lang.Class annotationType,
                                                                            long userID)
        Specified by:
        loadAnnotationsUsedNotOwned in interface ome.api.IMetadata
      • countAnnotationsUsedNotOwned

        @Transactional(readOnly=true)
        public java.lang.Long countAnnotationsUsedNotOwned​(java.lang.Class annotationType,
                                                           long userID)
        Specified by:
        countAnnotationsUsedNotOwned in interface ome.api.IMetadata
      • loadSpecifiedAnnotationsLinkedTo

        @Transactional(readOnly=true)
        public <A extends ome.model.annotations.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,
                                                                                                                                                  ome.parameters.Parameters options)
        Specified by:
        loadSpecifiedAnnotationsLinkedTo in interface ome.api.IMetadata
      • loadLogFiles

        @Transactional(readOnly=true)
        public java.util.Map<java.lang.Long,​java.util.Set<ome.model.IObject>> loadLogFiles​(java.lang.Class<? extends ome.model.IObject> rootNodeType,
                                                                                                 java.util.Set<java.lang.Long> ids)
        Specified by:
        loadLogFiles in interface ome.api.IMetadata