Package ome.logic

Class TypesImpl

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

    @Transactional(readOnly=true)
    public class TypesImpl
    extends AbstractLevel2Service
    implements ome.api.ITypes
    implementation of the ITypes service interface.
    Since:
    OMERO 3.0
    • Field Detail

      • sf

        protected transient org.hibernate.SessionFactory sf
    • Constructor Detail

      • TypesImpl

        public TypesImpl()
    • Method Detail

      • setSessionFactory

        public final void setSessionFactory​(org.hibernate.SessionFactory sessions)
        injector for usage by the container. Not for general use
        Parameters:
        sessions - the session factory
      • getServiceInterface

        public final java.lang.Class<? extends ome.api.ServiceInterface> getServiceInterface()
        Specified by:
        getServiceInterface in interface ome.system.SelfConfigurableService
      • createEnumeration

        @Transactional(readOnly=false)
        public <T extends ome.model.IEnum> T createEnumeration​(T newEnum)
        Specified by:
        createEnumeration in interface ome.api.ITypes
      • updateEnumeration

        @Transactional(readOnly=false)
        public <T extends ome.model.IEnum> T updateEnumeration​(T oEnum)
        Specified by:
        updateEnumeration in interface ome.api.ITypes
      • updateEnumerations

        @Transactional(readOnly=false)
        public <T extends ome.model.IEnum> void updateEnumerations​(java.util.List<T> listEnum)
        Specified by:
        updateEnumerations in interface ome.api.ITypes
      • deleteEnumeration

        @Transactional(readOnly=false)
        public <T extends ome.model.IEnum> void deleteEnumeration​(T oEnum)
        Specified by:
        deleteEnumeration in interface ome.api.ITypes
      • allEnumerations

        public <T extends ome.model.IEnum> java.util.List<T> allEnumerations​(java.lang.Class<T> k)
        Specified by:
        allEnumerations in interface ome.api.ITypes
      • getEnumeration

        public <T extends ome.model.IEnum> T getEnumeration​(java.lang.Class<T> k,
                                                            java.lang.String string)
        Specified by:
        getEnumeration in interface ome.api.ITypes
      • getEnumerationTypes

        public <T extends ome.model.IEnum> java.util.List<java.lang.Class<T>> getEnumerationTypes()
        Specified by:
        getEnumerationTypes in interface ome.api.ITypes
      • getEnumerationsWithEntries

        public <T extends ome.model.IEnum> java.util.Map<java.lang.Class<T>,​java.util.List<T>> getEnumerationsWithEntries()
        Specified by:
        getEnumerationsWithEntries in interface ome.api.ITypes
      • getOriginalEnumerations

        public <T extends ome.model.IEnum> java.util.List<T> getOriginalEnumerations()
        Specified by:
        getOriginalEnumerations in interface ome.api.ITypes
      • resetEnumerations

        @Transactional(readOnly=false)
        public <T extends ome.model.IEnum> void resetEnumerations​(java.lang.Class<T> klass)
        Specified by:
        resetEnumerations in interface ome.api.ITypes
      • getAnnotationTypes

        public java.util.List<java.lang.Class<ome.model.IAnnotated>> getAnnotationTypes()
        Specified by:
        getAnnotationTypes in interface ome.api.ITypes
      • getResultTypes

        public <T extends ome.model.IObject> java.util.List<java.lang.Class<T>> getResultTypes()
      • getContainerTypes

        public <T extends ome.model.IObject> java.util.List<java.lang.Class<T>> getContainerTypes()
      • getPojoTypes

        public <T extends ome.model.IObject> java.util.List<java.lang.Class<T>> getPojoTypes()
      • getImportTypes

        public <T extends ome.model.IObject> java.util.List<java.lang.Class<T>> getImportTypes()
      • permissions

        public <T extends ome.model.IObject> ome.model.internal.Permissions permissions​(java.lang.Class<T> k)