Class UCDManager

  • All Implemented Interfaces:
    org.gcube.application.cms.caches.Cache<String,​UCDManagerI>, org.gcube.application.cms.caches.Engine<UCDManagerI>, UCDManagerI

    public class UCDManager
    extends org.gcube.application.cms.caches.AbstractScopedMap<UCDManagerI>
    implements UCDManagerI
    Provider of UCDManagerI (this) - nb on get should check / trigger cache refresh TTL - uses UCDMongoManager for storing - profile live map engine is discovered
    • Field Summary

      • Fields inherited from class org.gcube.application.cms.caches.TimedMap

        name, scopeMap, TTL
    • Constructor Summary

      Constructors 
      Constructor Description
      UCDManager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deleteById​(String id, boolean force)  
      org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor getById​(String id)  
      org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor put​(org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor desc)  
      Iterable<org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor> query​(org.gcube.application.geoportal.common.model.rest.QueryRequest queryRequest)  
      protected UCDManagerI retrieveObject​(String context)  
      • Methods inherited from class org.gcube.application.cms.caches.AbstractScopedMap

        getObject, init, shutdown
      • Methods inherited from class org.gcube.application.cms.caches.TimedMap

        dispose, get, getTTL, setTTL
    • Constructor Detail

      • UCDManager

        public UCDManager()
    • Method Detail

      • query

        public Iterable<org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor> query​(org.gcube.application.geoportal.common.model.rest.QueryRequest queryRequest)
                                                                                                         throws org.gcube.application.geoportal.common.model.rest.ConfigurationException
        Specified by:
        query in interface UCDManagerI
        Throws:
        org.gcube.application.geoportal.common.model.rest.ConfigurationException
      • deleteById

        public void deleteById​(String id,
                               boolean force)
                        throws org.gcube.application.cms.implementations.faults.RegistrationException,
                               org.gcube.application.geoportal.common.model.rest.ConfigurationException
        Specified by:
        deleteById in interface UCDManagerI
        Throws:
        org.gcube.application.cms.implementations.faults.RegistrationException
        org.gcube.application.geoportal.common.model.rest.ConfigurationException
      • put

        public org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor put​(org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor desc)
                                                                                             throws org.gcube.application.geoportal.common.model.rest.ConfigurationException,
                                                                                                    org.gcube.application.cms.implementations.faults.RegistrationException
        Specified by:
        put in interface UCDManagerI
        Throws:
        org.gcube.application.geoportal.common.model.rest.ConfigurationException
        org.gcube.application.cms.implementations.faults.RegistrationException
      • retrieveObject

        protected UCDManagerI retrieveObject​(String context)
                                      throws org.gcube.application.geoportal.common.model.rest.ConfigurationException
        Specified by:
        retrieveObject in class org.gcube.application.cms.caches.TimedMap<String,​UCDManagerI>
        Throws:
        org.gcube.application.geoportal.common.model.rest.ConfigurationException
      • getById

        public org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor getById​(String id)
                                                                                                 throws org.gcube.application.geoportal.common.model.rest.ConfigurationException,
                                                                                                        org.gcube.application.cms.implementations.faults.RegistrationException
        Specified by:
        getById in interface UCDManagerI
        Throws:
        org.gcube.application.geoportal.common.model.rest.ConfigurationException
        org.gcube.application.cms.implementations.faults.RegistrationException