jreceiver.common.rec.security
Class UserRec
java.lang.Object
|
+--jreceiver.common.rec.BaseRec
|
+--jreceiver.common.rec.security.UserRec
- All Implemented Interfaces:
- Hashable, Rec, Selectable, User
- public class UserRec
- extends BaseRec
- implements User, Selectable
Bean to represent a single user record
- Version:
- $Revision: 1.3 $ $Date: 2002/09/24 17:15:28 $
- Author:
- Reed Esau
Field Summary |
protected java.lang.String |
full_name
|
protected boolean |
is_checked
is the item selected in the form? |
protected java.lang.String |
password
the un-hashed password |
protected java.lang.String |
role_id
|
protected java.lang.String |
user_id
|
Constructor Summary |
UserRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC |
UserRec(java.lang.String user_id,
java.lang.String password)
ctor |
UserRec(java.lang.String user_id,
java.lang.String password,
java.lang.String full_name,
java.lang.String role_id)
ctor |
Method Summary |
boolean |
getChecked()
get the current select state |
java.lang.String |
getFullName()
|
java.lang.String |
getId()
|
java.lang.Object |
getKey()
return the Integer or Key object that serves as this Rec's key. |
java.lang.String |
getPassword()
|
java.lang.String |
getRoleId()
|
void |
setChecked(boolean is_checked)
set the select state |
void |
setFullName(java.lang.String full_name)
|
void |
setId(java.lang.String user_id)
|
void |
setKey(java.lang.Object new_key)
assign the Number-derived, Key-derived or String that serves as this Rec's key. |
void |
setPassword(java.lang.String password)
|
void |
setRoleId(java.lang.String role_id)
|
java.util.Hashtable |
toHash()
Store the object as a hash suitable for
transport over an XML-RPC connection or similar. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
user_id
protected java.lang.String user_id
full_name
protected java.lang.String full_name
password
protected java.lang.String password
- the un-hashed password
role_id
protected java.lang.String role_id
is_checked
protected boolean is_checked
- is the item selected in the form?
UserRec
public UserRec(java.lang.String user_id,
java.lang.String password)
throws RecException
- ctor
UserRec
public UserRec(java.lang.String user_id,
java.lang.String password,
java.lang.String full_name,
java.lang.String role_id)
throws RecException
- ctor
UserRec
public UserRec(java.util.Hashtable hash)
throws RecException
- ctor - construct from a hashtable, usually retrieved via XML-RPC
getKey
public java.lang.Object getKey()
- return the Integer or Key object that serves as this Rec's key.
- Specified by:
getKey
in interface Rec
setKey
public void setKey(java.lang.Object new_key)
throws RecException
- assign the Number-derived, Key-derived or String that serves as this Rec's key.
- Specified by:
setKey
in interface Rec
getId
public java.lang.String getId()
- Specified by:
getId
in interface User
setId
public void setId(java.lang.String user_id)
- Specified by:
setId
in interface User
getFullName
public java.lang.String getFullName()
- Specified by:
getFullName
in interface User
setFullName
public void setFullName(java.lang.String full_name)
- Specified by:
setFullName
in interface User
getPassword
public java.lang.String getPassword()
- Specified by:
getPassword
in interface User
setPassword
public void setPassword(java.lang.String password)
- Specified by:
setPassword
in interface User
getRoleId
public java.lang.String getRoleId()
- Specified by:
getRoleId
in interface User
setRoleId
public void setRoleId(java.lang.String role_id)
- Specified by:
setRoleId
in interface User
getChecked
public boolean getChecked()
- Description copied from interface:
Selectable
- get the current select state
- Specified by:
getChecked
in interface Selectable
- Following copied from interface:
jreceiver.common.rec.Selectable
- Returns:
boolean
true if the item has been selected by the user; false otherwise
setChecked
public void setChecked(boolean is_checked)
- Description copied from interface:
Selectable
- set the select state
- Specified by:
setChecked
in interface Selectable
- Following copied from interface:
jreceiver.common.rec.Selectable
- Parameters:
is_checked
-
toString
public java.lang.String toString()
- Returns a string representation of the object.
- Specified by:
toString
in interface Hashable
- Overrides:
toString
in class java.lang.Object
toHash
public java.util.Hashtable toHash()
- Store the object as a hash suitable for
transport over an XML-RPC connection or similar.
Use UserRec(Hashtable)
to transform the data
back into an object of this type.
- Specified by:
toHash
in interface Hashable
- Returns:
-
Copyright © 2001-2002 Reed Esau, All Rights Reserved.