Class UserClient


  • public class UserClient
    extends BaseClient
    Users client.
    Author:
    Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
    • 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) instead
        Get 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
      • userExists

        public Boolean userExists​(String username)
        Check if user exists
        Returns: