|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.services.StandardManager
wt.access.StandardAccessControlManager
public class StandardAccessControlManager
The StandardAccessControlManager provides the standard implementation of a manager for access control. In addition to containing implementations for the methods in the AccessControlManager interface, it contains methods for maintenance of the ACL cache and auxiliary methods for ACL creation and maintenance.
Use the newStandardAccessControlManager static factory method(s),
not the StandardAccessControlManager constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
boolean |
checkAccess(Object object,
AccessPermission permission)
Determines whether the current principal has a given permission on a given object. |
void |
checkAccess(WTCollection objects,
AccessPermission permission)
Determines whether the current principal has a given permission on a collection of objects. |
ObjectVectorIfc |
filterObjects(ObjectVectorIfc objects,
AccessPermission permission)
Given a set of objects, this method constructs and returns a new set containing only objects where the current principal is granted the permission to these objects. |
QueryResult |
filterObjects(QueryResult objects,
AccessPermission permission)
Given a set of objects (stored as a QueryResult), this method constructs and returns a new set containing only objects where the current principal is granted the permission to these objects. |
boolean |
hasAccess(Object object,
AccessPermission permission)
Determines whether the current principal has the given access permission over the object passed as argument. |
boolean |
hasAccess(WTCollection objects,
AccessPermission permission)
Determines whether the current principal has the given access permission over the collection of objects passed as argument. |
boolean |
hasAccess(WTPrincipal user,
Object object,
AccessPermission permission)
Determines whether the given principal has the given access permission over the object passed as argument. |
boolean |
hasAccess(WTPrincipal user,
String type_id,
AdminDomainRef domain_ref,
State state,
AccessPermission permission)
Determines whether the given principal has the given access permission over a given type in a given domain and state. |
boolean |
hasAccess(WTPrincipal principal,
WTCollection objects,
AccessPermission permission)
Determines whether the given principal has the given access permission over the collection of objects passed as argument. |
| Methods inherited from class wt.services.StandardManager |
|---|
getManagerService, getManagerStatus, getName, getStartupType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean checkAccess(Object object,
AccessPermission permission)
throws WTException
AccessControlEvent.NOT_AUTHORIZED
event for auditing purposes and throws a NotAuthorizedException
if this is not the case.
If the object parameter specifies an instance of ObjectReference,
access rights are checked on the referenced object unless the reference
class itself is AccessControlled.
If the NotAuthorizedException thrown by this method
is caught and does not result in a user's action failing due to the
lack of access rights, auditing of the exception should be disabled.
Supported API: true
checkAccess in interface AccessControlManagerobject - object for which permissions are to be evaluatedpermission - access control permission
WTExceptionAccessControlServerHelper.disableNotAuthorizedAudit(),
AccessControlServerHelper.reenableNotAuthorizedAudit()
public void checkAccess(WTCollection objects,
AccessPermission permission)
throws WTException
AccessControlEvent.NOT_AUTHORIZED
event for auditing purposes and throws a NotAuthorizedException
if this is not the case.
If the objects parameter specifies a collection that
has not been inflated, access rights are checked on a copy of the
collection that has been inflated with access control enforcement
bypassed.
If the NotAuthorizedException thrown by this method
is caught and does not result in a user's action failing due to the
lack of access rights, auditing of the exception should be disabled.
Supported API: true
checkAccess in interface AccessControlManagerobjects - objects for which permissions are to be evaluatedpermission - access control permission
WTExceptionAccessControlServerHelper.disableNotAuthorizedAudit(),
AccessControlServerHelper.reenableNotAuthorizedAudit()
public boolean hasAccess(Object object,
AccessPermission permission)
throws WTException
If the object parameter specifies an instance of ObjectReference,
access rights are checked on the referenced object unless the reference
class itself is AccessControlled.
Supported API: true
hasAccess in interface AccessControlManagerobject - object for which permissions are to be evaluatedpermission - access control permission
WTException
public boolean hasAccess(WTCollection objects,
AccessPermission permission)
throws WTException
If the objects parameter specifies a collection that
has not been inflated, access rights are checked on a copy of the
collection that has been inflated with access control enforcement
bypassed.
Supported API: true
hasAccess in interface AccessControlManagerobjects - objects for which permissions are to be evaluatedpermission - access control permission
WTException
public boolean hasAccess(WTPrincipal user,
Object object,
AccessPermission permission)
throws WTException
If the object parameter specifies an instance of ObjectReference,
access rights are checked on the referenced object unless the reference
class itself is AccessControlled.
Supported API: true
hasAccess in interface AccessControlManageruser - principal whose access rights are to be evaluatedobject - object for which permissions are to be evaluatedpermission - access control permission
WTException
public boolean hasAccess(WTPrincipal principal,
WTCollection objects,
AccessPermission permission)
throws WTException
If the objects parameter specifies a collection that
has not been inflated, access rights are checked on a copy of the
collection that has been inflated with access control enforcement
bypassed.
Supported API: true
hasAccess in interface AccessControlManagerprincipal - principal whose access rights are to be evaluatedobjects - objects for which permissions are to be evaluatedpermission - access control permission
WTException
public boolean hasAccess(WTPrincipal user,
String type_id,
AdminDomainRef domain_ref,
State state,
AccessPermission permission)
throws WTException
hasAccess in interface AccessControlManageruser - principal whose access rights are to be evaluatedtype_id - persisted type identifierdomain_ref - reference to the domain for which policy rules are to be evaluatedstate - lifecycle statepermission - access control permission
WTException
public ObjectVectorIfc filterObjects(ObjectVectorIfc objects,
AccessPermission permission)
throws WTException
This method can be used to filter
out objects for which the user has no read access after a query is
performed.
Supported API: true
filterObjects in interface AccessControlManagerobjects - set of objectspermission - access control permission
WTException
public QueryResult filterObjects(QueryResult objects,
AccessPermission permission)
throws WTException
This method can be
used to filter out objects for which the user has no read access after
a database query is performed.
Supported API: true
filterObjects in interface AccessControlManagerobjects - set of objectspermission - access control permission
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||