wt.pds
Interface AccessController

All Known Implementing Classes:
AccessControllerAdapter

public interface AccessController

This class encapsulates the access control decision for an object array. This is used to provide access control at various levels as result objects are built.

Supported API: false

Extendable: false


Field Summary
static String FILTER
          Label for the attribute; Filter for processing multiple rows.
 
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.
 boolean checkAccess(Object[] a_objects)
          Check access of all objects in the array.
 void checkQuery(StatementSpec a_statementSpec)
          

Supported API: false
 FilterResultProcessor getFilter()
          Gets the value of the attribute: FILTER.
 Vector getItemBuilders(Vector a_tableInfos, ResultBuilder a_resultBuilder, int a_itemOffset)
          Retrun a Vector of ItemBuilders that will be used to retrieve Access Control related objects.
 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
 

Field Detail

FILTER

public static final String FILTER
Label for the attribute; Filter for processing multiple rows.

Supported API: false

See Also:
Constant Field Values
Method Detail

getFilter

public FilterResultProcessor getFilter()
                                throws WTException
Gets the value of the attribute: FILTER. Filter for processing multiple rows.

Supported API: false

Returns:
FilterResultProcessor
Throws:
WTException

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.

Supported API: false

Parameters:
a_object -
Returns:
boolean
Throws:
PersistenceException

checkAccess

public boolean checkAccess(Object[] a_objects)
                    throws PersistenceException
Check access of all objects in the array. Return false if the current principal does not have READ permission on all of the objects.

Supported API: false

Parameters:
a_objects -
Returns:
boolean
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

Parameters:
a_tableInfos -
a_useOuterJoin -
Returns:
WhereExpression
Throws:
PersistenceException

getItemBuilders

public Vector getItemBuilders(Vector a_tableInfos,
                              ResultBuilder a_resultBuilder,
                              int a_itemOffset)
                       throws PersistenceException
Retrun a Vector of ItemBuilders that will be used to retrieve Access Control related objects.

Supported API: false

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

Parameters:
a_classInfo -
a_alias -
Returns:
ItemBuilder

checkQuery

public void checkQuery(StatementSpec a_statementSpec)
                throws PersistenceException


Supported API: false

Parameters:
a_statementSpec -
Throws:
PersistenceException

isItemBuilderProvided

public boolean isItemBuilderProvided()


Supported API: false

Returns:
boolean