org.jclouds.openstack.keystone.v2_0.domain
Class User
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingCollection<E>
com.google.common.collect.ForwardingSet<Role>
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:
| 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 interface java.util.Set |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
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)
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.