Class UserUtils
- java.lang.Object
-
- org.gcube.spatial.data.geonetwork.utils.UserUtils
-
public class UserUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description UserUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UsergenerateRandomUser(Set<User> existing, Integer nameLenght, Integer passwordLength)static UsergetByName(Set<User> toLookInto, String toLookFor)static Set<Integer>parseGroupsByUserResponse(String toParse)static Set<User>parseUserJSONResponse(String toParse)static Set<User>parseUserXMLResponse(String toParse)
-
-
-
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
-
-