Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jreceiver.common.rpc.xmlrpc
Class RoleAuthsImpl  view RoleAuthsImpl download RoleAuthsImpl.java

java.lang.Object
  extended byjreceiver.common.rpc.xmlrpc.XmlRpcBaseImpl
      extended byjreceiver.common.rpc.xmlrpc.ServerTableImpl
          extended byjreceiver.common.rpc.xmlrpc.RoleAuthsImpl
All Implemented Interfaces:
jreceiver.common.rpc.RoleAuths, jreceiver.common.rpc.RpcBase, jreceiver.common.rpc.ServerTable

public class RoleAuthsImpl
extends ServerTableImpl
implements jreceiver.common.rpc.RoleAuths

RoleAuth-definition queries and updates via XML-RPC

Version:
$Revision: 1.3 $ $Date: 2002/09/24 18:40:56 $

Field Summary
 
Fields inherited from class jreceiver.common.rpc.xmlrpc.ServerTableImpl
log
 
Fields inherited from class jreceiver.common.rpc.xmlrpc.XmlRpcBaseImpl
 
Fields inherited from interface jreceiver.common.rpc.RoleAuths
GET_KEY_COUNT_FOR_ROLE, GET_KEYS_FOR_ROLE, GET_RECS_FOR_METHODS, HANDLER_NAME, IS_AUTHORIZED
 
Fields inherited from interface jreceiver.common.rpc.ServerTable
DELETE_RECS, GET_KEY_COUNT, GET_KEYS, GET_REC, GET_RECS, STORE_REC, STORE_RECS
 
Fields inherited from interface jreceiver.common.rpc.RpcBase
DETECT
 
Constructor Summary
RoleAuthsImpl(java.net.URL remote_host, jreceiver.common.rec.security.User user)
          ctor for this implementation
 
Method Summary
 int getKeyCountForRole(java.lang.String role_id)
          Obtain a total count of RoleAuth keys for a role
 java.util.Vector getKeysForRole(java.lang.String role_id, java.lang.String order_by, int rec_offset, int rec_count)
          Obtain an ordered range of RoleAuth keys for the specified role.
 java.util.Vector getRecsForMethods(jreceiver.common.rec.security.User user, java.util.Vector method_keys, java.lang.String order_by, java.util.Hashtable args)
          plural - obtain an ordered range of keys for the specified role
 boolean isAuthorized(jreceiver.common.rec.security.User user, jreceiver.common.rec.security.MethodKey method)
          singular - obtain an ordered range of keys for the specified role
 jreceiver.common.rec.Key reconstituteKey(java.util.Hashtable hash)
          restore a key object from hashtable form
 jreceiver.common.rec.Rec reconstituteRec(java.util.Hashtable hash)
          restore a rec object from hashtable form
 
Methods inherited from class jreceiver.common.rpc.xmlrpc.ServerTableImpl
deleteRecs, getKeyCount, getKeys, getRec, getRec, getRecs, getRecs, reconstituteKeys, reconstituteRecs, storeRec, storeRecs
 
Methods inherited from class jreceiver.common.rpc.xmlrpc.XmlRpcBaseImpl
detect, execute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jreceiver.common.rpc.ServerTable
deleteRecs, getKeyCount, getKeys, getRec, getRec, getRecs, getRecs, storeRec, storeRecs
 
Methods inherited from interface jreceiver.common.rpc.RpcBase
detect
 

Constructor Detail

RoleAuthsImpl

public RoleAuthsImpl(java.net.URL remote_host,
                     jreceiver.common.rec.security.User user)
              throws jreceiver.common.rpc.RpcException
ctor for this implementation

Method Detail

reconstituteRec

public jreceiver.common.rec.Rec reconstituteRec(java.util.Hashtable hash)
                                         throws jreceiver.common.rec.RecException
restore a rec object from hashtable form

Specified by:
reconstituteRec in class ServerTableImpl

reconstituteKey

public jreceiver.common.rec.Key reconstituteKey(java.util.Hashtable hash)
restore a key object from hashtable form

Overrides:
reconstituteKey in class ServerTableImpl

getKeyCountForRole

public int getKeyCountForRole(java.lang.String role_id)
                       throws jreceiver.common.rpc.RpcException
Obtain a total count of RoleAuth keys for a role

Specified by:
getKeyCountForRole in interface jreceiver.common.rpc.RoleAuths

getKeysForRole

public java.util.Vector getKeysForRole(java.lang.String role_id,
                                       java.lang.String order_by,
                                       int rec_offset,
                                       int rec_count)
                                throws jreceiver.common.rpc.RpcException
Obtain an ordered range of RoleAuth keys for the specified role.

Specified by:
getKeysForRole in interface jreceiver.common.rpc.RoleAuths

getRecsForMethods

public java.util.Vector getRecsForMethods(jreceiver.common.rec.security.User user,
                                          java.util.Vector method_keys,
                                          java.lang.String order_by,
                                          java.util.Hashtable args)
                                   throws jreceiver.common.rpc.RpcException
plural - obtain an ordered range of keys for the specified role

Specified by:
getRecsForMethods in interface jreceiver.common.rpc.RoleAuths

isAuthorized

public boolean isAuthorized(jreceiver.common.rec.security.User user,
                            jreceiver.common.rec.security.MethodKey method)
                     throws jreceiver.common.rpc.RpcException
singular - obtain an ordered range of keys for the specified role

Specified by:
isAuthorized in interface jreceiver.common.rpc.RoleAuths