|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.AccessControllerAdapter
wt.pds.SurrogateAccessController
This class provides Access Control via a surrogate mechanism in conjunction
with the Access Control service.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static boolean |
DEBUG
|
private static DebugWriter |
LOG
|
private AccessPermission |
permission
|
private static String |
RESOURCE
|
static AccessController |
STANDARD_ACCESS_CONTROLLER
Standard access controller that enforcess access control via Access Control Service. |
Fields inherited from class wt.pds.AccessControllerAdapter |
NOOP_ACCESS_CONTROLLER |
Fields inherited from interface wt.pds.AccessController |
FILTER |
Constructor Summary | |
SurrogateAccessController()
|
Method Summary | |
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. |
AccessPermission |
getPermission()
Gets the value of the attribute: permission; This attribute will be used for checking the access permission for each result. |
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 |
setPermission(AccessPermission a_Permission)
Sets the value of the attribute: permission; This attribute will be used for checking the access permission for each result. |
Methods inherited from class wt.pds.AccessControllerAdapter |
buildAccessCondition, checkAccess, getFilter |
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 STANDARD_ACCESS_CONTROLLER
private AccessPermission permission
public static final boolean DEBUG
private static final DebugWriter LOG
Constructor Detail |
public SurrogateAccessController()
Method Detail |
public AccessPermission getPermission()
public void setPermission(AccessPermission a_Permission) throws WTPropertyVetoException
a_Permission
-
WTPropertyVetoException
public boolean checkAccess(Object a_object) throws PersistenceException
checkAccess
in interface AccessController
checkAccess
in class AccessControllerAdapter
a_object
-
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 boolean isItemBuilderProvided()
isItemBuilderProvided
in interface AccessController
isItemBuilderProvided
in class AccessControllerAdapter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |