Class GNMetadataAdminExtension


  • public class GNMetadataAdminExtension
    extends Object
    • Constructor Detail

      • GNMetadataAdminExtension

        public GNMetadataAdminExtension()
    • Method Detail

      • allowedOwnershipTransfer

        public static String allowedOwnershipTransfer​(it.geosolutions.geonetwork.util.HTTPUtils connection,
                                                      ServerAccess access,
                                                      Integer userId)
                                               throws it.geosolutions.geonetwork.exception.GNServerException,
                                                      it.geosolutions.geonetwork.exception.GNLibException
        Throws:
        it.geosolutions.geonetwork.exception.GNServerException
        it.geosolutions.geonetwork.exception.GNLibException
      • metadataOwners

        public static String metadataOwners​(it.geosolutions.geonetwork.util.HTTPUtils connection,
                                            ServerAccess access)
                                     throws it.geosolutions.geonetwork.exception.GNServerException,
                                            it.geosolutions.geonetwork.exception.GNLibException
        Throws:
        it.geosolutions.geonetwork.exception.GNServerException
        it.geosolutions.geonetwork.exception.GNLibException
      • selectMeta

        public static String selectMeta​(it.geosolutions.geonetwork.util.HTTPUtils connection,
                                        ServerAccess access,
                                        List<Long> toSelectIds)
                                 throws it.geosolutions.geonetwork.exception.GNServerException,
                                        it.geosolutions.geonetwork.exception.GNLibException
        Throws:
        it.geosolutions.geonetwork.exception.GNServerException
        it.geosolutions.geonetwork.exception.GNLibException
      • clearMetaSelection

        public static String clearMetaSelection​(it.geosolutions.geonetwork.util.HTTPUtils connection,
                                                ServerAccess access)
                                         throws it.geosolutions.geonetwork.exception.GNServerException,
                                                it.geosolutions.geonetwork.exception.GNLibException
        Throws:
        it.geosolutions.geonetwork.exception.GNServerException
        it.geosolutions.geonetwork.exception.GNLibException
      • assignMassiveOwnership

        public static String assignMassiveOwnership​(it.geosolutions.geonetwork.util.HTTPUtils connection,
                                                    ServerAccess access,
                                                    Integer userId,
                                                    Integer groupId)
                                             throws it.geosolutions.geonetwork.exception.GNServerException,
                                                    it.geosolutions.geonetwork.exception.GNLibException
        Throws:
        it.geosolutions.geonetwork.exception.GNServerException
        it.geosolutions.geonetwork.exception.GNLibException
      • transferOwnership

        public static String transferOwnership​(it.geosolutions.geonetwork.util.HTTPUtils connection,
                                               ServerAccess access,
                                               Integer sourceUserId,
                                               Integer sourceGroupId,
                                               Integer destUserId,
                                               Integer destGroupId)
                                        throws it.geosolutions.geonetwork.exception.GNServerException,
                                               it.geosolutions.geonetwork.exception.GNLibException
        Throws:
        it.geosolutions.geonetwork.exception.GNServerException
        it.geosolutions.geonetwork.exception.GNLibException
      • editUser

        public static String editUser​(it.geosolutions.geonetwork.util.HTTPUtils connection,
                                      ServerAccess access,
                                      User toAdd,
                                      Collection<Integer> groups)
                               throws it.geosolutions.geonetwork.exception.GNLibException,
                                      it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • getUserGroupd

        public static String getUserGroupd​(it.geosolutions.geonetwork.util.HTTPUtils connection,
                                           ServerAccess access,
                                           Integer userId)
                                    throws it.geosolutions.geonetwork.exception.GNLibException,
                                           it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • getUsers

        public static String getUsers​(it.geosolutions.geonetwork.util.HTTPUtils connection,
                                      ServerAccess access)
                               throws it.geosolutions.geonetwork.exception.GNServerException,
                                      it.geosolutions.geonetwork.exception.GNLibException
        Throws:
        it.geosolutions.geonetwork.exception.GNServerException
        it.geosolutions.geonetwork.exception.GNLibException
      • createUser

        public static String createUser​(it.geosolutions.geonetwork.util.HTTPUtils connection,
                                        ServerAccess access,
                                        String name,
                                        String password,
                                        User.Profile profile,
                                        Collection<Integer> groups)
                                 throws it.geosolutions.geonetwork.exception.GNServerException,
                                        it.geosolutions.geonetwork.exception.GNLibException
        Throws:
        it.geosolutions.geonetwork.exception.GNServerException
        it.geosolutions.geonetwork.exception.GNLibException
      • createGroup

        public static String createGroup​(it.geosolutions.geonetwork.util.HTTPUtils connection,
                                         ServerAccess access,
                                         String groupName,
                                         String groupDescription,
                                         String groupMail,
                                         Integer groupId)
                                  throws it.geosolutions.geonetwork.exception.GNLibException,
                                         it.geosolutions.geonetwork.exception.GNServerException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
        it.geosolutions.geonetwork.exception.GNServerException
      • getGroups

        public static String getGroups​(it.geosolutions.geonetwork.util.HTTPUtils connection,
                                       ServerAccess access)
                                throws it.geosolutions.geonetwork.exception.GNServerException,
                                       it.geosolutions.geonetwork.exception.GNLibException
        Throws:
        it.geosolutions.geonetwork.exception.GNServerException
        it.geosolutions.geonetwork.exception.GNLibException