com.hyper9.vangaea.types.beans.admin
Interface UserBean

All Superinterfaces:
AdminBean, com.hyper9.common.beans.Bean, java.io.Serializable, com.hyper9.common.beans.UniqueBean<java.lang.Integer>
All Known Implementing Classes:
UserBeanImpl

public interface UserBean
extends AdminBean

A bean describing a row in the tbl_users table.

Author:
akutz

Method Summary
 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 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
 

Method Detail

getServers

java.util.List<ServerInformationBean> getServers()
                                                 throws java.lang.Exception
Gets a list of servers this user has a set of linked credentials for. If no servers exist an empty list is returned.

Returns:
A list of servers this user has a set of linked credentials for.
Throws:
java.lang.Exception - When an error occurs.

getServer

ServerInformationBean getServer(int serverID)
                                throws java.lang.Exception
Gets a server with the given alias that this user has a set of linked credentials for. If no server exists a null value is returned.

Parameters:
serverID - The ID of the server to get.
Returns:
A server with the given alias that this user has a set of linked credentials for.
Throws:
java.lang.Exception - When an error occurs.

setUserName

void setUserName(java.lang.String userName)
Get's the user's user name.

Parameters:
userName - The user's user name.

getUserName

java.lang.String getUserName()
Get's the user's user name.

Returns:
The user's user name.

setKeyHash

void setKeyHash(java.lang.String keyHash)
Sets the key hash.

Parameters:
keyHash - The key hash.

getKeyHash

java.lang.String getKeyHash()
Gets the key hash.

Returns:
The key hash.

getPassphrase

java.lang.String getPassphrase()
Gets the passphrase.

Returns:
The passphrase.

setPassphrase

void setPassphrase(java.lang.String toSet)
Sets the passphrase.

Parameters:
toSet - The passphrase.


Copyright © 2009 Hyper9. All Rights Reserved.