com.arsdigita.toolbox.ui
Class ComponentAccess

java.lang.Object
  extended bycom.arsdigita.toolbox.ui.ComponentAccess

public class ComponentAccess
extends Object

Wrapper class that registers access checks (actions) to a Bebop component.

Version:
$Revision: #10 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Michael Pih

Field Summary
static String versionId
           
 
Constructor Summary
ComponentAccess(Component c)
           
ComponentAccess(Component c, String check)
           
 
Method Summary
 void addAccessCheck(String check)
          Add an access check to this component.
 boolean canAccess(PageState state, Security security)
          Do all the access checks registered to the component pass?
 ArrayList getAccessCheckList()
          Get the access checks.
 Component getComponent()
          Get the component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

ComponentAccess

public ComponentAccess(Component c)
Parameters:
c - The component

ComponentAccess

public ComponentAccess(Component c,
                       String check)
Parameters:
c - The component
check - An access check
Method Detail

addAccessCheck

public void addAccessCheck(String check)
Add an access check to this component.

Parameters:
check - The access check

getAccessCheckList

public ArrayList getAccessCheckList()
Get the access checks.

Returns:
The list of access checks

getComponent

public Component getComponent()
Get the component.

Returns:
The component

canAccess

public boolean canAccess(PageState state,
                         Security security)
Do all the access checks registered to the component pass?

Parameters:
state - The page state
security - The Security implementation that will perform the access checks
Returns:
true if all the access checks pass, false otherwise


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC