jreceiver.common.rpc
Interface RoleAuths

All Superinterfaces:
RpcBase, ServerTable

public interface RoleAuths
extends ServerTable

Role Authorization queries and updates for a (possibly-remote) JRec server

Version:
$Revision: 1.3 $ $Date: 2002/09/24 18:38:00 $
Author:
Reed Esau

Field Summary
static java.lang.String GET_KEY_COUNT_FOR_ROLE
           
static java.lang.String GET_KEYS_FOR_ROLE
           
static java.lang.String GET_RECS_FOR_METHODS
           
static java.lang.String HANDLER_NAME
           
static java.lang.String 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
 
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 list of RoleAuth keys for the specified role.
 java.util.Vector getRecsForMethods(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 user
 boolean isAuthorized(User user, MethodKey method)
          singular - determine authorization for a user and a handler.method
 
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
 

Field Detail

HANDLER_NAME

public static final java.lang.String HANDLER_NAME

GET_KEY_COUNT_FOR_ROLE

public static final java.lang.String GET_KEY_COUNT_FOR_ROLE

GET_KEYS_FOR_ROLE

public static final java.lang.String GET_KEYS_FOR_ROLE

GET_RECS_FOR_METHODS

public static final java.lang.String GET_RECS_FOR_METHODS

IS_AUTHORIZED

public static final java.lang.String IS_AUTHORIZED
Method Detail

getKeyCountForRole

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

getKeysForRole

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

getRecsForMethods

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

isAuthorized

public boolean isAuthorized(User user,
                            MethodKey method)
                     throws RpcException
singular - determine authorization for a user and a handler.method


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