|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.api.model.ApiUser
public class ApiUser
This is the model for user information in the API.
Note that any method that returns user information will not contain any password information. The password property is only used when creating or updating users.
Constructor Summary | |
---|---|
ApiUser()
|
Method Summary | |
---|---|
void |
addRole(String role)
|
boolean |
equals(Object o)
|
String |
getName()
The username, which is unique within a Cloudera Manager installation. |
String |
getPassword()
Returns the user password. |
String |
getPwHash()
NOTE: Only available in the "export" view |
Boolean |
getPwLogin()
NOTE: Only available in the "export" view |
Long |
getPwSalt()
NOTE: Only available in the "export" view |
Set<String> |
getRoles()
A list of roles this user belongs to. |
int |
hashCode()
|
void |
setName(String name)
|
void |
setPassword(String password)
Sets the user password. |
void |
setPwHash(String pwHash)
|
void |
setPwLogin(Boolean pwLogin)
|
void |
setPwSalt(Long pwSalt)
|
void |
setRoles(Set<String> roles)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ApiUser()
Method Detail |
---|
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName()
public void setName(String name)
public String getPassword()
Passwords are not returned when querying user information, so this property will always be empty when reading information from a server.
public void setPassword(String password)
When creating a user or updating an existing user, this property should contain the plain text user password to be set.
password
- Plain text user password.public Set<String> getRoles()
In Cloudera Express, possible values are:
Note that although this interface provides a list of roles, a user should only be assigned a single role at a time.
public void setRoles(Set<String> roles)
public void addRole(String role)
public String getPwHash()
public void setPwHash(String pwHash)
public Long getPwSalt()
public void setPwSalt(Long pwSalt)
public Boolean getPwLogin()
public void setPwLogin(Boolean pwLogin)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |