Class UserUtils


  • public class UserUtils
    extends Object
    • Constructor Detail

      • UserUtils

        public UserUtils()
    • Method Detail

      • parseUserXMLResponse

        public static Set<User> parseUserXMLResponse​(String toParse)
                                              throws it.geosolutions.geonetwork.exception.GNLibException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
      • parseUserJSONResponse

        public static Set<User> parseUserJSONResponse​(String toParse)
                                               throws it.geosolutions.geonetwork.exception.GNLibException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
      • generateRandomUser

        public static User generateRandomUser​(Set<User> existing,
                                              Integer nameLenght,
                                              Integer passwordLength)
      • parseGroupsByUserResponse

        public static Set<Integer> parseGroupsByUserResponse​(String toParse)
                                                      throws it.geosolutions.geonetwork.exception.GNLibException
        Throws:
        it.geosolutions.geonetwork.exception.GNLibException
      • getByName

        public static User getByName​(Set<User> toLookInto,
                                     String toLookFor)