Class DefaultMongoConcessioni

  • All Implemented Interfaces:
    org.gcube.application.geoportal.common.rest.MongoConcessioni
    Direct Known Subclasses:
    StatefulMongoConcessioni

    public class DefaultMongoConcessioni
    extends Object
    implements org.gcube.application.geoportal.common.rest.MongoConcessioni
    • Constructor Detail

      • DefaultMongoConcessioni

        public DefaultMongoConcessioni()
    • Method Detail

      • createNew

        public org.gcube.application.geoportal.common.model.legacy.Concessione createNew​(org.gcube.application.geoportal.common.model.legacy.Concessione c)
                                                                                  throws Exception
        Specified by:
        createNew in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • deleteById

        public void deleteById​(String id)
                        throws Exception
        Specified by:
        deleteById in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • deleteById

        public void deleteById​(String id,
                               Boolean force)
                        throws Exception
        Specified by:
        deleteById in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • getById

        public org.gcube.application.geoportal.common.model.legacy.Concessione getById​(String id)
                                                                                throws Exception
        Specified by:
        getById in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • getList

        public Iterator<org.gcube.application.geoportal.common.model.legacy.Concessione> getList()
                                                                                          throws Exception
        Specified by:
        getList in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • publish

        public org.gcube.application.geoportal.common.model.legacy.Concessione publish​(String id)
                                                                                throws Exception
        Specified by:
        publish in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • unPublish

        public void unPublish​(String id)
                       throws Exception
        Specified by:
        unPublish in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • getCurrentConfiguration

        public org.gcube.application.geoportal.common.model.configuration.Configuration getCurrentConfiguration()
                                                                                                         throws Exception
        Specified by:
        getCurrentConfiguration in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • search

        public Iterator<org.gcube.application.geoportal.common.model.legacy.Concessione> search​(String s)
                                                                                         throws Exception
        Specified by:
        search in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • query

        public Iterator<org.gcube.application.geoportal.common.model.legacy.Concessione> query​(org.gcube.application.geoportal.common.model.rest.QueryRequest queryRequest)
                                                                                        throws Exception
        Specified by:
        query in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • queryForJSON

        public String queryForJSON​(org.gcube.application.geoportal.common.model.rest.QueryRequest queryRequest)
                            throws Exception
        Specified by:
        queryForJSON in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • queryForType

        public <T> Iterator<T> queryForType​(org.gcube.application.geoportal.common.model.rest.QueryRequest queryRequest,
                                            Class<T> aClass)
                                     throws Exception
        Specified by:
        queryForType in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • registerFileSet

        public org.gcube.application.geoportal.common.model.legacy.Concessione registerFileSet​(String id,
                                                                                               org.gcube.application.geoportal.common.model.rest.AddSectionToConcessioneRequest request)
                                                                                        throws Exception
        Specified by:
        registerFileSet in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • cleanFileSet

        public org.gcube.application.geoportal.common.model.legacy.Concessione cleanFileSet​(String id,
                                                                                            String path)
                                                                                     throws Exception
        Specified by:
        cleanFileSet in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • update

        public org.gcube.application.geoportal.common.model.legacy.Concessione update​(String id,
                                                                                      String jsonUpdate)
                                                                               throws Exception
        Specified by:
        update in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception
      • replace

        public org.gcube.application.geoportal.common.model.legacy.Concessione replace​(org.gcube.application.geoportal.common.model.legacy.Concessione replacement)
                                                                                throws Exception
        Specified by:
        replace in interface org.gcube.application.geoportal.common.rest.MongoConcessioni
        Throws:
        Exception