Class GN26Extension

  • All Implemented Interfaces:
    it.geosolutions.geonetwork.GNClient

    public class GN26Extension
    extends it.geosolutions.geonetwork.GN26Client
    • Field Detail

      • version

        protected final it.geosolutions.geonetwork.util.GNVersion version
    • Constructor Detail

      • GN26Extension

        public GN26Extension​(String serviceURL)
      • GN26Extension

        public GN26Extension​(String serviceURL,
                             String username,
                             String password)
    • Method Detail

      • getConnection

        public it.geosolutions.geonetwork.util.HTTPUtils getConnection()
                                                                throws it.geosolutions.geonetwork.exception.GNLibException
        Specified by:
        getConnection in interface it.geosolutions.geonetwork.GNClient
        Overrides:
        getConnection in class it.geosolutions.geonetwork.GNAbstractClient
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
      • ping

        public boolean ping()
      • insertMetadata

        public long insertMetadata​(it.geosolutions.geonetwork.util.GNInsertConfiguration arg0,
                                   File arg1)
                            throws it.geosolutions.geonetwork.exception.GNLibException,
                                   it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • insertRequest

        public long insertRequest​(File arg0)
                           throws it.geosolutions.geonetwork.exception.GNLibException,
                                  it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • setPrivileges

        public void setPrivileges​(long arg0,
                                  it.geosolutions.geonetwork.util.GNPrivConfiguration arg1)
                           throws it.geosolutions.geonetwork.exception.GNLibException,
                                  it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • search

        public it.geosolutions.geonetwork.util.GNSearchResponse search​(it.geosolutions.geonetwork.util.GNSearchRequest arg0)
                                                                throws it.geosolutions.geonetwork.exception.GNLibException,
                                                                       it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • search

        public it.geosolutions.geonetwork.util.GNSearchResponse search​(File arg0)
                                                                throws it.geosolutions.geonetwork.exception.GNLibException,
                                                                       it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • get

        public org.jdom.Element get​(Long arg0)
                             throws it.geosolutions.geonetwork.exception.GNLibException,
                                    it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • get

        public org.jdom.Element get​(String arg0)
                             throws it.geosolutions.geonetwork.exception.GNLibException,
                                    it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • deleteMetadata

        public void deleteMetadata​(long arg0)
                            throws it.geosolutions.geonetwork.exception.GNLibException,
                                   it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • updateMetadata

        public void updateMetadata​(long arg0,
                                   File arg1)
                            throws it.geosolutions.geonetwork.exception.GNLibException,
                                   it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • updateMetadata

        public void updateMetadata​(long arg0,
                                   File arg1,
                                   String arg2)
                            throws it.geosolutions.geonetwork.exception.GNLibException,
                                   it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • getInfo

        public it.geosolutions.geonetwork.op.gn3.GN3MetadataGetInfo.MetadataInfo getInfo​(Long arg0)
                                                                                  throws it.geosolutions.geonetwork.exception.GNLibException,
                                                                                         it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • getInfo

        public it.geosolutions.geonetwork.op.gn3.GN3MetadataGetInfo.MetadataInfo getInfo​(String arg0)
                                                                                  throws it.geosolutions.geonetwork.exception.GNLibException,
                                                                                         it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • updateMetadata

        public void updateMetadata​(long arg0,
                                   int arg1,
                                   File arg2)
                            throws it.geosolutions.geonetwork.exception.GNLibException,
                                   it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • updateMetadata

        public void updateMetadata​(long arg0,
                                   int arg1,
                                   File arg2,
                                   String arg3)
                            throws it.geosolutions.geonetwork.exception.GNLibException,
                                   it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • getInfo

        @Deprecated
        public it.geosolutions.geonetwork.op.gn2x.custom.GNMetadataGetInfo.MetadataInfo getInfo​(Long arg0,
                                                                                                boolean arg1)
                                                                                         throws it.geosolutions.geonetwork.exception.GNLibException,
                                                                                                it.geosolutions.geonetwork.exception.GNServerException
        Deprecated.
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • getInfo

        @Deprecated
        public it.geosolutions.geonetwork.op.gn2x.custom.GNMetadataGetInfo.MetadataInfo getInfo​(String arg0,
                                                                                                boolean arg1)
                                                                                         throws it.geosolutions.geonetwork.exception.GNLibException,
                                                                                                it.geosolutions.geonetwork.exception.GNServerException
        Deprecated.
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException