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

java.lang.Object
  extended by com.google.common.collect.ForwardingObject
      extended by com.google.common.collect.ForwardingCollection<E>
          extended by com.google.common.collect.ForwardingSet<Role>
              extended by org.jclouds.openstack.keystone.v2_0.domain.User
All Implemented Interfaces:
Iterable<Role>, Collection<Role>, Set<Role>

public class User
extends com.google.common.collect.ForwardingSet<Role>

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.

See Also:

Nested Class Summary
static class User.Builder<T extends User.Builder<T>>
           
 
Constructor Summary
protected User(String id, String name, String email, Boolean enabled, String tenantId, Set<Role> roles)
           
 
Method Summary
static User.Builder<?> builder()
           
protected  Set<Role> delegate()
           
 boolean equals(Object obj)
           
 String getEmail()
           
 String getId()
          When providing an ID, it is assumed that the user exists in the current OpenStack deployment
 String getName()
           
 String getTenantId()
           
 int hashCode()
           
 boolean isEnabled()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 User.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class com.google.common.collect.ForwardingSet
standardEquals, standardHashCode, standardRemoveAll
 
Methods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

User

@ConstructorProperties(value={"id","name","email","enabled","tenantId","roles"})
protected User(String id,
                                          String name,
                                          @Nullable
                                          String email,
                                          @Nullable
                                          Boolean enabled,
                                          @Nullable
                                          String tenantId,
                                          @Nullable
                                          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

getEmail

public String getEmail()
Returns:
the e-mail

isEnabled

public boolean isEnabled()
Returns:
if the user is enabled

getTenantId

public String getTenantId()
Returns:
the user tenant

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<Role>
Specified by:
hashCode in interface Set<Role>
Overrides:
hashCode in class com.google.common.collect.ForwardingSet<Role>

equals

public boolean equals(Object obj)
Specified by:
equals in interface Collection<Role>
Specified by:
equals in interface Set<Role>
Overrides:
equals in class com.google.common.collect.ForwardingSet<Role>

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class com.google.common.collect.ForwardingObject

delegate

protected Set<Role> delegate()
Overrides:
delegate in class com.google.common.collect.ForwardingSet<Role>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.