org.jclouds.openstack.trove.v1.domain
Class User

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

public class User
extends Object
implements Comparable<User>

An Openstack Trove Database User.


Nested Class Summary
static class User.Builder
           
 
Constructor Summary
protected User(String name, String password, String host, List<Map<String,String>> databases)
           
protected User(String name, String password, String host, Set<String> databases)
           
 
Method Summary
static User.Builder builder()
           
 int compareTo(User that)
           
 boolean equals(Object obj)
           
 List<String> getDatabases()
           
 String getHost()
           
 String getIdentifier()
           
 String getName()
           
 String getPassword()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 User.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

@ConstructorProperties(value={"name","password","host","databases"})
protected User(String name,
                                          String password,
                                          String host,
                                          List<Map<String,String>> databases)

User

protected User(String name,
               String password,
               String host,
               Set<String> databases)
Method Detail

getName

public String getName()
Returns:
the name of this user. The name is not a unique or even sufficient identifier in some cases.
See Also:
getIdentifier(), User.Builder.name(String)

getPassword

public String getPassword()
Returns:
the password for this user.
See Also:
User.Builder.password(String)

getHost

public String getHost()
Returns:
the host for this user.
See Also:
User.Builder.host(String)

getIdentifier

public String getIdentifier()
Returns:
a unique identifier for this user. In most cases, this is just the name. If the user is restricted to connections from a specific host, the hostname must be appended to the user name with a "@".

getDatabases

public List<String> getDatabases()
Returns:
the databases for this user.
See Also:
User.Builder#databases(String)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

string

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

toString

public String toString()
Overrides:
toString in class Object

builder

public static User.Builder builder()

toBuilder

public User.Builder toBuilder()

compareTo

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


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