jreceiver.common.rec.security
Class RoleAuthRec

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

public class RoleAuthRec
extends BaseRec
implements RoleAuth, Selectable

Bean to represent a Role Authorization

Version:
$Revision: 1.2 $ $Date: 2002/09/24 17:09:44 $
Author:
Reed Esau

Field Summary
protected  boolean is_authorized
           
protected  boolean is_checked
          is the item selected in the form?
protected  RoleAuthKey key
           
 
Fields inherited from interface jreceiver.common.rec.security.RoleAuth
HKEY_IS_AUTHORIZED
 
Fields inherited from interface jreceiver.common.rec.Rec
HKEY_KEY, NO_LIMIT
 
Fields inherited from interface jreceiver.common.rec.Selectable
HKEY_CHECKED
 
Constructor Summary
RoleAuthRec(java.util.Hashtable hash)
          ctor - construct from a hashtable, usually retrieved via XML-RPC
RoleAuthRec(RoleAuthKey key, boolean is_authorized)
          ctor
 
Method Summary
 boolean getChecked()
          get the current select state
 boolean getIsAuthorized()
           
 java.lang.Object getKey()
          return the Number-derived, Key-derived or String that serves as this Rec's key.
 RoleAuthKey getRoleAuthKey()
          strongly-typed key
static java.util.Vector reconstitute(java.util.Vector vector)
          Reconstitute each RoleAuthRec object that appears as a hash in the list.
 void setChecked(boolean is_checked)
          set the select state
 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

key

protected RoleAuthKey key

is_authorized

protected boolean is_authorized

is_checked

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

RoleAuthRec

public RoleAuthRec(RoleAuthKey key,
                   boolean is_authorized)
ctor

RoleAuthRec

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

getRoleAuthKey

public RoleAuthKey getRoleAuthKey()
strongly-typed key
Specified by:
getRoleAuthKey in interface RoleAuth

getKey

public java.lang.Object getKey()
Description copied from interface: Rec
return the Number-derived, Key-derived or String 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

getIsAuthorized

public boolean getIsAuthorized()
Specified by:
getIsAuthorized in interface RoleAuth

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 -  

toHash

public java.util.Hashtable toHash()
Store the object as a hash suitable for transport over an XML-RPC connection or similar.

Use RoleAuthRec(Hashtable) to transform the data back into an object of this type.

Specified by:
toHash in interface Hashable
Returns:
 

toString

public java.lang.String toString()
Description copied from interface: Hashable
Returns a string representation of the object.
Specified by:
toString in interface Hashable
Overrides:
toString in class java.lang.Object

reconstitute

public static java.util.Vector reconstitute(java.util.Vector vector)
Reconstitute each RoleAuthRec object that appears as a hash in the list.


Copyright © 2001-2002 Reed Esau, All Rights Reserved.