|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hyper9.uvapi.impls.BeanImpl
com.hyper9.uvapi.impls.UniqueBeanImpl<java.lang.Integer>
com.hyper9.vangaea.impls.beans.admin.AdminBeanImpl
com.hyper9.vangaea.impls.beans.admin.UserBeanImpl
public class UserBeanImpl
A class for a row in the tbl_users table.
| Field Summary |
|---|
| Fields inherited from class com.hyper9.vangaea.impls.beans.admin.AdminBeanImpl |
|---|
conn, isDeleted, isDirty |
| Constructor Summary | |
|---|---|
UserBeanImpl()
The default constructor for serialization. |
|
| Method Summary | |
|---|---|
static UserBean |
get(java.sql.Connection conn,
int id)
Gets a user by its ID from the data source. |
static UserBean |
get(java.sql.Connection conn,
java.lang.String userName)
Gets a user by its user name from the data source. |
java.lang.String |
getKeyHash()
Gets the key hash. |
java.lang.String |
getPassphrase()
Gets the passphrase. |
ServerInformationBean |
getServer(int serverID)
Gets a server with the given alias that this user has a set of linked credentials for. |
java.util.List<ServerInformationBean> |
getServers()
Gets a list of servers this user has a set of linked credentials for. |
java.lang.String |
getUserName()
Get's the user's user name. |
void |
setKeyHash(java.lang.String keyHash)
Sets the key hash. |
void |
setPassphrase(java.lang.String toSet)
Sets the passphrase. |
void |
setUserName(java.lang.String userName)
Get's the user's user name. |
| Methods inherited from class com.hyper9.vangaea.impls.beans.admin.AdminBeanImpl |
|---|
getConnection, isDeleted, isDirty |
| Methods inherited from class com.hyper9.uvapi.impls.UniqueBeanImpl |
|---|
getID, setID |
| Methods inherited from class com.hyper9.uvapi.impls.BeanImpl |
|---|
toString, toString, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hyper9.vangaea.types.beans.admin.AdminBean |
|---|
getConnection, isDeleted, isDirty |
| Methods inherited from interface com.hyper9.common.beans.UniqueBean |
|---|
getID, setID |
| Methods inherited from interface com.hyper9.common.beans.Bean |
|---|
toString, toString, toString, toString |
| Constructor Detail |
|---|
public UserBeanImpl()
| Method Detail |
|---|
public void setUserName(java.lang.String userName)
UserBean
setUserName in interface UserBeanuserName - The user's user name.public java.lang.String getUserName()
UserBean
getUserName in interface UserBeanpublic void setKeyHash(java.lang.String keyHash)
UserBean
setKeyHash in interface UserBeankeyHash - The key hash.public java.lang.String getKeyHash()
UserBean
getKeyHash in interface UserBeanpublic java.lang.String getPassphrase()
UserBean
getPassphrase in interface UserBeanpublic void setPassphrase(java.lang.String toSet)
UserBean
setPassphrase in interface UserBeantoSet - The passphrase.
public static UserBean get(java.sql.Connection conn,
int id)
throws java.lang.Exception
id - The user's unique ID.conn - The data connection to use.
java.lang.Exception - When an error occurs.
public static UserBean get(java.sql.Connection conn,
java.lang.String userName)
throws java.sql.SQLException
userName - The user name.conn - The data connection to use.
java.sql.SQLException - When a SQL error occurs.
public java.util.List<ServerInformationBean> getServers()
throws java.lang.Exception
UserBean
getServers in interface UserBeanjava.lang.Exception - When an error occurs.
public ServerInformationBean getServer(int serverID)
throws java.lang.Exception
UserBean
getServer in interface UserBeanserverID - The ID of the server to get.
java.lang.Exception - When an error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||