Class GNMetadataAdminExtension
java.lang.Object
org.gcube.spatial.data.geonetwork.extension.GNMetadataAdminExtension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringallowedOwnershipTransfer(it.geosolutions.geonetwork.util.HTTPUtils connection, ServerAccess access, Integer userId) static StringassignMassiveOwnership(it.geosolutions.geonetwork.util.HTTPUtils connection, ServerAccess access, Integer userId, Integer groupId) static StringclearMetaSelection(it.geosolutions.geonetwork.util.HTTPUtils connection, ServerAccess access) static StringcreateGroup(it.geosolutions.geonetwork.util.HTTPUtils connection, ServerAccess access, String groupName, String groupDescription, String groupMail, Integer groupId) static StringcreateUser(it.geosolutions.geonetwork.util.HTTPUtils connection, ServerAccess access, String name, String password, User.Profile profile, Collection<Integer> groups) static StringeditUser(it.geosolutions.geonetwork.util.HTTPUtils connection, ServerAccess access, User toAdd, Collection<Integer> groups) static StringgetGroups(it.geosolutions.geonetwork.util.HTTPUtils connection, ServerAccess access) static StringgetUserGroupd(it.geosolutions.geonetwork.util.HTTPUtils connection, ServerAccess access, Integer userId) static StringgetUsers(it.geosolutions.geonetwork.util.HTTPUtils connection, ServerAccess access) static StringmetadataOwners(it.geosolutions.geonetwork.util.HTTPUtils connection, ServerAccess access) static StringselectMeta(it.geosolutions.geonetwork.util.HTTPUtils connection, ServerAccess access, List<Long> toSelectIds) static StringtransferOwnership(it.geosolutions.geonetwork.util.HTTPUtils connection, ServerAccess access, Integer sourceUserId, Integer sourceGroupId, Integer destUserId, Integer destGroupId)
-
Constructor Details
-
GNMetadataAdminExtension
public GNMetadataAdminExtension()
-
-
Method Details
-
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.GNServerExceptionit.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.GNServerExceptionit.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.GNServerExceptionit.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.GNServerExceptionit.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.GNServerExceptionit.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.GNServerExceptionit.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.GNLibExceptionit.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.GNLibExceptionit.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.GNServerExceptionit.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.GNServerExceptionit.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.GNLibExceptionit.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.GNServerExceptionit.geosolutions.geonetwork.exception.GNLibException
-