Class UserClient
java.lang.Object
org.gcube.social_networking.social_networking_client_library.BaseClient
org.gcube.social_networking.social_networking_client_library.UserClient
Users client.
- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllUsernamesByGlobalRole(String globalRole) Get usernames by global rolegetAllUsernamesByLocalRole(String localRole) Deprecated.use #getAllUsernamesByRole(String rolename) insteadgetAllUsernamesByRole(String rolename) Get usernames by role, the environment (i.e.Get all usernames in this contextGet all usernames and fullnames in this contextgetCustomAttribute(String attributeKey) Get attribute valuegetEmail()Get emailGet fullnameorg.gcube.social_networking.socialnetworking.model.beans.UserProfileExtendedGet profileuserExists(String username) Check if user existsMethods inherited from class org.gcube.social_networking.social_networking_client_library.BaseClient
getServiceEndpoint
-
Constructor Details
-
UserClient
- Throws:
Exception
-
-
Method Details
-
getCustomAttribute
Get attribute value- Returns:
-
getFullName
Get fullname- Returns:
- user's fullname
-
getEmail
Get email- Returns:
- users'email
-
getProfile
public org.gcube.social_networking.socialnetworking.model.beans.UserProfileExtended getProfile()Get profile- Returns:
-
getAllUsernamesContext
Get all usernames in this context- Returns:
-
getAllUsernamesFullnamesContext
Get all usernames and fullnames in this context- Returns:
-
getAllUsernamesByGlobalRole
Get usernames by global role- Returns:
-
getAllUsernamesByLocalRole
Deprecated.use #getAllUsernamesByRole(String rolename) insteadGet usernames by role- Returns:
- the usernames having such role
-
getAllUsernamesByRole
Get usernames by role, the environment (i.e. VRE/VLab) is inferred from the token- Returns:
- the usernames having such role
-
userExists
Check if user exists- Returns:
-