com.softwareag.centrasite.appl.framework.validation.acl
Interface AclController

All Known Implementing Classes:
DefaultAclController

public interface AclController

The AclController is an abstract object, which is used to grant or deny access to objects.

The controllers job is mainly the maintenance of the so-called acl providers: These are carrying the actual access control lists. The controller provides a set of convenience methods, which are translated to provider calls.


Method Summary
 void assertGranted(AclContext pContext, java.lang.String pId)
          Called to asser, that access is granted.
 boolean isDenied(AclContext pContext, java.lang.String pId)
          Called to query, whether access is denied.
 boolean isGranted(AclContext pContext, java.lang.String pId)
          Called to query, whether access is granted.
 

Method Detail

isGranted

boolean isGranted(AclContext pContext,
                  java.lang.String pId)
                  throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Called to query, whether access is granted.

Parameters:
pContext - The object, which is specifying the access requester.
pId - Id of the object, to which access is requested.
Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException
See Also:
isDenied(AclContext, String)

isDenied

boolean isDenied(AclContext pContext,
                 java.lang.String pId)
                 throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Called to query, whether access is denied.

Parameters:
pContext - The object, which is specifying the access requester.
pId - Id of the object, to which access is requested.
Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException
See Also:
isGranted(AclContext, String)

assertGranted

void assertGranted(AclContext pContext,
                   java.lang.String pId)
                   throws CSAppAuthenticationException,
                          com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Called to asser, that access is granted.

Parameters:
pContext - The object, which is specifying the access requestor
pId - Id of the object, to which access is requested.
Throws:
CSAppAuthenticationException - The assertion failed, because access is denied.
com.softwareag.centrasite.appl.framework.CSAppFrameworkException
See Also:
isGranted(AclContext, String)