|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.AccessControllerAdapter
wt.pds.CompositeAccessController
This class combines multiple AccessController implementations.
Supported API: false
Extendable: false
Nested Class Summary | |
(package private) static class |
CompositeAccessController.FilterResultProcessorBridge
|
Field Summary | |
private static String |
CLASSNAME
|
private Vector |
components
|
private static String |
RESOURCE
|
Fields inherited from class wt.pds.AccessControllerAdapter |
DEBUG, NOOP_ACCESS_CONTROLLER |
Fields inherited from interface wt.pds.AccessController |
FILTER |
Constructor Summary | |
CompositeAccessController()
Supported API: false |
|
CompositeAccessController(Vector a_components)
Supported API: false |
Method Summary | |
void |
addComponent(AccessController a_accessController)
Supported API: false |
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 |
Vector |
getComponents()
Gets the object for the association that plays role: components. |
FilterResultProcessor |
getFilter()
Gets the value of the attribute: filter; Filter for processing multiple rows. |
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 |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Vector components
Constructor Detail |
public CompositeAccessController(Vector a_components)
a_components
- public CompositeAccessController()
Method Detail |
public FilterResultProcessor getFilter() throws WTException
getFilter
in interface AccessController
getFilter
in class AccessControllerAdapter
WTException
public Vector getComponents()
public boolean checkAccess(Object a_object) throws PersistenceException
checkAccess
in interface AccessController
checkAccess
in class AccessControllerAdapter
a_object
-
PersistenceException
public WhereExpression buildAccessCondition(Vector a_tableInfos, boolean a_useOuterJoin) throws PersistenceException
buildAccessCondition
in interface AccessController
buildAccessCondition
in class AccessControllerAdapter
a_tableInfos
- a_useOuterJoin
-
PersistenceException
public Vector getItemBuilders(Vector a_tableInfos, ResultBuilder a_resultBuilder, int a_itemOffset) throws PersistenceException
getItemBuilders
in interface AccessController
getItemBuilders
in class AccessControllerAdapter
a_tableInfos
- Vector of concrete TableExpression instances to use to create the Access Control itemsa_resultBuilder
- instance used to create the Access Control itemsa_itemOffset
- The current offset where the items will be placed in the results.
PersistenceException
public ItemBuilder getViewItemBuilder(ClassInfo a_classInfo, String a_alias)
getViewItemBuilder
in interface AccessController
getViewItemBuilder
in class AccessControllerAdapter
a_classInfo
- a_alias
-
public void checkQuery(StatementSpec a_statementSpec) throws PersistenceException
checkQuery
in interface AccessController
checkQuery
in class AccessControllerAdapter
a_statementSpec
-
PersistenceException
public void addComponent(AccessController a_accessController)
a_accessController
- public boolean isItemBuilderProvided()
isItemBuilderProvided
in interface AccessController
isItemBuilderProvided
in class AccessControllerAdapter
public boolean checkAccess(Object[] a_objects) throws PersistenceException
checkAccess
in interface AccessController
checkAccess
in class AccessControllerAdapter
a_objects
-
PersistenceException
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |