jreceiver.common.rec.security
Class RoleRec

java.lang.Object
  |
  +--jreceiver.common.rec.BaseRec
        |
        +--jreceiver.common.rec.security.RoleRec
All Implemented Interfaces:
Hashable, Rec, Role, Selectable

public class RoleRec
extends BaseRec
implements Role, Selectable

Bean to represent a single role folder record

Version:
$Revision: 1.3 $ $Date: 2002/12/29 00:44:09 $
Author:
Reed Esau

Field Summary
protected  java.lang.String descript
           
protected  boolean is_checked
          is the item selected in the form?
protected  java.lang.String role_id
           
 
Fields inherited from interface jreceiver.common.rec.security.Role
HKEY_DESCRIPT, ROLE_ADMINS, ROLE_USERS
 
Fields inherited from interface jreceiver.common.rec.Rec
HKEY_KEY, NO_LIMIT
 
Fields inherited from interface jreceiver.common.rec.Selectable
HKEY_CHECKED
 
Constructor Summary
RoleRec()
          ctor - default
RoleRec(java.util.Hashtable hash)
          ctor - construct from a hashtable, usually retrieved via XML-RPC
RoleRec(java.lang.String role_id, java.lang.String descript)
          ctor
 
Method Summary
 boolean getChecked()
          get the current select state
 java.lang.String getDescript()
           
 java.lang.String getDescriptStr()
          used for display purposes
 java.lang.String getId()
           
 java.lang.Object getKey()
          return the Integer or Key object that serves as this Rec's key.
 java.util.Map getParams()
          return the url parameters necessary to identify this rec by key
 void setChecked(boolean is_checked)
          set the select state
 void setDescript(java.lang.String descript)
           
 void setId(java.lang.String role_id)
           
 void setKey(java.lang.Object new_key)
          assign the Number-derived, Key-derived or String that serves as this Rec's key.
 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 jreceiver.common.rec.BaseRec
dissolve, dissolveMap, find, find, find, find
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

role_id

protected java.lang.String role_id

descript

protected java.lang.String descript

is_checked

protected boolean is_checked
is the item selected in the form?
Constructor Detail

RoleRec

public RoleRec()
ctor - default

RoleRec

public RoleRec(java.lang.String role_id,
               java.lang.String descript)
ctor

RoleRec

public RoleRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC
Method Detail

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)
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 Role

setId

public void setId(java.lang.String role_id)
Specified by:
setId in interface Role

getDescript

public java.lang.String getDescript()
Specified by:
getDescript in interface Role

setDescript

public void setDescript(java.lang.String descript)
Specified by:
setDescript in interface Role

getDescriptStr

public java.lang.String getDescriptStr()
used for display purposes

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 -  

getParams

public java.util.Map getParams()
return the url parameters necessary to identify this rec by key

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 RoleRec(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.