Class UserClient
- java.lang.Object
-
- org.gcube.social_networking.social_networking_client_library.BaseClient
-
- org.gcube.social_networking.social_networking_client_library.UserClient
-
public class UserClient extends BaseClient
Users client.- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
-
-
Constructor Summary
Constructors Constructor Description UserClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<String>getAllUsernamesByGlobalRole(String globalRole)Get usernames by global roleList<String>getAllUsernamesByLocalRole(String localRole)Deprecated.use #getAllUsernamesByRole(String rolename) insteadSet<String>getAllUsernamesByRole(String rolename)Get usernames by role, the environment (i.e.List<String>getAllUsernamesContext()Get all usernames in this contextMap<String,String>getAllUsernamesFullnamesContext()Get all usernames and fullnames in this contextStringgetCustomAttribute(String attributeKey)Get attribute valueStringgetEmail()Get emailStringgetFullName()Get fullnameorg.gcube.social_networking.socialnetworking.model.beans.UserProfileExtendedgetProfile()Get profileBooleanuserExists(String username)Check if user exists-
Methods inherited from class org.gcube.social_networking.social_networking_client_library.BaseClient
getServiceEndpoint
-
-
-
-
Method Detail
-
getCustomAttribute
public String getCustomAttribute(String attributeKey)
Get attribute value- Returns:
-
getFullName
public String getFullName()
Get fullname- Returns:
- user's fullname
-
getEmail
public String getEmail()
Get email- Returns:
- users'email
-
getProfile
public org.gcube.social_networking.socialnetworking.model.beans.UserProfileExtended getProfile()
Get profile- Returns:
-
getAllUsernamesContext
public List<String> getAllUsernamesContext()
Get all usernames in this context- Returns:
-
getAllUsernamesFullnamesContext
public Map<String,String> getAllUsernamesFullnamesContext()
Get all usernames and fullnames in this context- Returns:
-
getAllUsernamesByGlobalRole
public List<String> getAllUsernamesByGlobalRole(String globalRole)
Get usernames by global role- Returns:
-
getAllUsernamesByLocalRole
@Deprecated public List<String> getAllUsernamesByLocalRole(String localRole)
Deprecated.use #getAllUsernamesByRole(String rolename) insteadGet usernames by role- Returns:
- the usernames having such role
-
getAllUsernamesByRole
public Set<String> getAllUsernamesByRole(String rolename)
Get usernames by role, the environment (i.e. VRE/VLab) is inferred from the token- Returns:
- the usernames having such role
-
-