org.jclouds.openstack.keystone.v2_0.domain
Class User

java.lang.Object
  extended by org.jclouds.openstack.keystone.v2_0.domain.User
All Implemented Interfaces:
Comparable<User>

public class User
extends Object
implements Comparable<User>

A digital representation of a person, system, or service who uses OpenStack cloud services. Keystone authentication services will validate that incoming request are being made by the user who claims to be making the call. Users have a login and may be assigned tokens to access users. Users may be directly assigned to a particular tenant and behave as if they are contained in that tenant.

Author:
Adrian Cole
See Also:

Nested Class Summary
static class User.Builder
           
 
Field Summary
protected  String id
           
protected  String name
           
protected  Set<Role> roles
           
 
Constructor Summary
User(String id, String name, Set<Role> roles)
           
 
Method Summary
static User.Builder builder()
           
 int compareTo(User that)
           
 boolean equals(Object object)
           
 String getId()
          When providing an ID, it is assumed that the user exists in the current OpenStack deployment
 String getName()
           
 Set<Role> getRoles()
           
 int hashCode()
           
 User.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected final String id

name

protected final String name

roles

protected final Set<Role> roles
Constructor Detail

User

public User(String id,
            String name,
            Set<Role> roles)
Method Detail

builder

public static User.Builder builder()

toBuilder

public User.Builder toBuilder()

getId

public String getId()
When providing an ID, it is assumed that the user exists in the current OpenStack deployment

Returns:
the id of the user in the current OpenStack deployment

getName

public String getName()
Returns:
the name of the user

getRoles

public Set<Role> getRoles()
Returns:
the roles assigned to the user

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(User that)
Specified by:
compareTo in interface Comparable<User>


Copyright © 2009-2012 jclouds. All Rights Reserved.