wt.pds
Class CompoundAccessController

java.lang.Object
  extended bywt.pds.AccessControllerAdapter
      extended bywt.pds.CompoundAccessController
All Implemented Interfaces:
AccessController, Serializable

public class CompoundAccessController
extends AccessControllerAdapter
implements Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String ACCESS_CONTROLLER_DISPLAY
           
private  AccessController accessController
           
private static String CLASSNAME
           
static boolean DEBUG
           
private static DebugWriter LOG
           
private  int maxCount
           
private static ClassInfo PERSISTABLE_CLASS_INFO
           
private static String RESOURCE
           
 
Fields inherited from class wt.pds.AccessControllerAdapter
NOOP_ACCESS_CONTROLLER
 
Fields inherited from interface wt.pds.AccessController
FILTER
 
Constructor Summary
CompoundAccessController(AccessController a_accessController)
          

Supported API: false
 
Method Summary
 WhereExpression buildAccessCondition(Vector a_tableInfos, boolean a_useOuterJoin)
          Build WHERE condtions for the specified class and the current principal.
 boolean checkAccess(Object a_object)
          Check access of the object.
 void checkQuery(StatementSpec a_statementSpec)
          

Supported API: false
 Vector getItemBuilders(Vector a_tableInfos, ResultBuilder a_resultBuilder, int a_itemOffset)
          Return a Vector of ItemBuilders that will be used to retrieve Access Control related objects.
 int getMaxCount()
          Gets the value of the attribute: maxCount.
 ItemBuilder getViewItemBuilder(ClassInfo a_classInfo, String a_alias)
          Retrun a ItemBuilders that will be used to retrieve Access Control related objects.
 boolean isItemBuilderProvided()
          

Supported API: false
 void setMaxCount(int a_MaxCount)
          Sets the value of the attribute: maxCount.
 
Methods inherited from class wt.pds.AccessControllerAdapter
checkAccess, getFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

maxCount

private int maxCount

accessController

private AccessController accessController

DEBUG

public static final boolean DEBUG

LOG

private static final DebugWriter LOG

PERSISTABLE_CLASS_INFO

private static final ClassInfo PERSISTABLE_CLASS_INFO

ACCESS_CONTROLLER_DISPLAY

private static final String ACCESS_CONTROLLER_DISPLAY
See Also:
Constant Field Values
Constructor Detail

CompoundAccessController

public CompoundAccessController(AccessController a_accessController)
                         throws WTPropertyVetoException


Supported API: false

Parameters:
a_accessController -
Throws:
WTPropertyVetoException
Method Detail

getMaxCount

public int getMaxCount()
Gets the value of the attribute: maxCount.

Supported API: false

Returns:
int

setMaxCount

public void setMaxCount(int a_MaxCount)
Sets the value of the attribute: maxCount.

Supported API: false

Parameters:
a_MaxCount -

checkAccess

public boolean checkAccess(Object a_object)
                    throws PersistenceException
Check access of the object. Return false if the current principal does not have READ permission on all of the objects. This method is implemented by call the Access Control service hasAccess() method.

Supported API: false

Specified by:
checkAccess in interface AccessController
Overrides:
checkAccess in class AccessControllerAdapter
Parameters:
a_object -
Returns:
boolean
Throws:
PersistenceException

getItemBuilders

public Vector getItemBuilders(Vector a_tableInfos,
                              ResultBuilder a_resultBuilder,
                              int a_itemOffset)
                       throws PersistenceException
Return a Vector of ItemBuilders that will be used to retrieve Access Control related objects. For each existing ItemBuilder, if Access Control is not supplied for that Item, then a surrogate ItemBuilder is added.

Supported API: false

Specified by:
getItemBuilders in interface AccessController
Overrides:
getItemBuilders in class AccessControllerAdapter
Parameters:
a_tableInfos - Vector of concrete TableExpression instances to use to create the Access Control items
a_resultBuilder - instance used to create the Access Control items
a_itemOffset - The current offset where the items will be placed in the results.
Returns:
Vector
Throws:
PersistenceException

getViewItemBuilder

public ItemBuilder getViewItemBuilder(ClassInfo a_classInfo,
                                      String a_alias)
Retrun a ItemBuilders that will be used to retrieve Access Control related objects.

Supported API: false

Specified by:
getViewItemBuilder in interface AccessController
Overrides:
getViewItemBuilder in class AccessControllerAdapter
Parameters:
a_classInfo -
a_alias -
Returns:
ItemBuilder

checkQuery

public void checkQuery(StatementSpec a_statementSpec)
                throws PersistenceException


Supported API: false

Specified by:
checkQuery in interface AccessController
Overrides:
checkQuery in class AccessControllerAdapter
Parameters:
a_statementSpec -
Throws:
PersistenceException

buildAccessCondition

public WhereExpression buildAccessCondition(Vector a_tableInfos,
                                            boolean a_useOuterJoin)
                                     throws PersistenceException
Build WHERE condtions for the specified class and the current principal.

Supported API: false

Specified by:
buildAccessCondition in interface AccessController
Overrides:
buildAccessCondition in class AccessControllerAdapter
Parameters:
a_tableInfos -
a_useOuterJoin -
Returns:
WhereExpression
Throws:
PersistenceException

isItemBuilderProvided

public boolean isItemBuilderProvided()


Supported API: false

Specified by:
isItemBuilderProvided in interface AccessController
Overrides:
isItemBuilderProvided in class AccessControllerAdapter
Returns:
boolean