net.sf.farrago.session
Interface FarragoSessionPrivilegeChecker

All Known Implementing Classes:
FarragoDbSessionPrivilegeChecker

public interface FarragoSessionPrivilegeChecker

This interface specifies the privilege check service methods. The caller submits request for access on each individual object along with the action to be performed.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/session/FarragoSessionPrivilegeChecker.java#9 $
Author:
Tai Tran

Method Summary
 void checkAccess()
          Checks access for all requests that have been submitted, and clears the request list.
 void requestAccess(CwmModelElement obj, FemUser user, FemRole role, String action)
          Submits a request for access to a catalog object.
 

Method Detail

requestAccess

void requestAccess(CwmModelElement obj,
                   FemUser user,
                   FemRole role,
                   String action)
Submits a request for access to a catalog object. Actual checking of the request may be deferred until the next call to checkAccess. It is legal to specify neither, one, or both of user and role; even when both are null, privileges granted to PUBLIC still apply.

Parameters:
obj - object to be accessed
user - the requesting user, or null for none
role - the requesting role, or null for none
action - the action to be performed on obj (see PrivilegedActionEnum for base set)

checkAccess

void checkAccess()
Checks access for all requests that have been submitted, and clears the request list.