|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.AccessControllerAdapter
This class provides a concrete implementation of an AccessController
that provides access to all objects. No access control check is performed.
It is assumed that no access control is needed, a sub-class will override
one or more of the methods, or another process will be responsible for
access control.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static boolean |
DEBUG
|
private static DebugWriter |
LOG
|
static AccessController |
NOOP_ACCESS_CONTROLLER
Default no-op access controller that enforcess no access control. |
private static String |
RESOURCE
|
Fields inherited from interface wt.pds.AccessController |
FILTER |
Constructor Summary | |
AccessControllerAdapter()
|
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; 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final AccessController NOOP_ACCESS_CONTROLLER
public static final boolean DEBUG
private static final DebugWriter LOG
Constructor Detail |
public AccessControllerAdapter()
Method Detail |
public FilterResultProcessor getFilter() throws WTException
getFilter
in interface AccessController
WTException
public boolean checkAccess(Object a_object) throws PersistenceException
checkAccess
in interface AccessController
a_object
-
PersistenceException
public boolean checkAccess(Object[] a_objects) throws PersistenceException
checkAccess
in interface AccessController
a_objects
-
PersistenceException
public WhereExpression buildAccessCondition(Vector a_tableInfos, boolean a_useOuterJoin) throws PersistenceException
buildAccessCondition
in interface AccessController
a_tableInfos
- a_useOuterJoin
-
PersistenceException
public Vector getItemBuilders(Vector a_tableInfos, ResultBuilder a_resultBuilder, int a_itemOffset) throws PersistenceException
getItemBuilders
in interface AccessController
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
a_classInfo
- a_alias
-
public void checkQuery(StatementSpec a_statementSpec) throws PersistenceException
checkQuery
in interface AccessController
a_statementSpec
-
PersistenceException
public boolean isItemBuilderProvided()
isItemBuilderProvided
in interface AccessController
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |