|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.access.AccessControlManagerFwd
The AccessControlManager interface contains the signature of the methods
supported by managers of the access control package. These methods fall
into three classes: (1) access control enforcement methods (checkAccess,
for example); (2) specialized query methods; and (3) maintenance of access
control rules and lists.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
FC_RESOURCE
|
(package private) static boolean |
SERVER
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
AccessControlManagerFwd()
|
Method Summary | |
AdHocControlled |
addPermission(AdHocControlled obj,
WTPrincipalReference principal_ref,
AccessPermission permission,
AdHocAccessKey owner_key)
Adds an ad hoc access control rule granting a principal the specified permission to an object. |
AdHocControlled |
addPermission(AdHocControlled obj,
WTPrincipalReference principal_ref,
AccessPermission permission,
AdHocAccessKey owner_key,
long owner_id)
Adds an ad hoc access control rule granting a principal the specified permission to an object. |
AdHocControlled |
addPermissions(AdHocControlled obj,
WTPrincipalReference principal_ref,
Vector permissions,
AdHocAccessKey owner_key)
Adds an ad hoc access control rule granting a principal the specified permissions to an object. |
AdHocControlled |
addPermissions(AdHocControlled obj,
WTPrincipalReference principal_ref,
Vector permissions,
AdHocAccessKey owner_key,
long owner_id)
Adds an ad hoc access control rule granting a principal the specified permissions to an object. |
void |
checkAccess(AdminDomainRef domain_ref,
String type_id,
AccessPermission permission)
Checks if the current principal has the given access permission over a given type in a given domain (irrespective of state). |
boolean |
checkAccess(Object object,
AccessPermission permission)
Determines whether the current principal has a given permission on a given object. |
boolean |
checkAccess(Object object,
String permission)
Deprecated. |
void |
checkAccess(WTCollection objects,
AccessPermission permission)
Determines whether the current principal has a given permission on a collection of objects. |
AdHocControlled |
copyPermissions(AdHocControlled source,
AdHocControlled target,
AdHocAccessKey owner_key)
Copies permissions from a source object to a target object. |
AdHocControlled |
copyPermissions(AdHocControlled source,
AdHocControlled target,
AdHocAccessKey owner_key,
long owner_id)
Copies permissions from a source object to a target object. |
void |
createAccessControlRule(AdminDomainRef domain_ref,
String type_id,
String state_key,
WTPrincipalReference principal_ref,
boolean grant,
Vector permissions)
Creates an access control rule defining the rights of a principal to access objects of a specified type and state, within a domain. |
void |
createAccessControlRule(AdminDomainRef domain_ref,
String type_id,
String state_key,
WTPrincipalReference principal_ref,
Vector grant_permissions,
Vector deny_permissions)
Creates an access control rule defining the rights of a principal to access objects of a specified type and state, within a domain. |
void |
deleteAccessControlRule(AdminDomainRef domain_ref,
String type_id,
String state_key,
WTPrincipalReference principal_ref)
Deletes an access control rule defining the rights of a principal to access objects of a specified type and state, within a domain. |
void |
deleteAccessControlRules(AdminDomainRef domain_ref)
Deletes all access control rules within a domain. |
void |
emitAccessEvent(String event_type,
Object target,
AccessPermission permission,
WTMessage message)
Emits an access control event of a given type. |
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. |
QueryResult |
filterObjects(QueryResult objects,
String permission)
Deprecated. |
EnumeratorVector[] |
getAccessControlRule(AdminDomainRef domain_ref,
String type_id,
String state_key,
WTPrincipalReference principal_ref)
Gets an access control rule defining the rights of a principal to access objects of a specified type and state, within a domain. |
AccessPolicyRule |
getAccessPolicyRule(AccessSelector selector)
Returns the access policy rule for the specified selector. |
Enumeration |
getAccessPolicyRules(AdminDomainRef domain_ref)
Returns all the access policy rules for the specified domain in the form of an enumeration. |
Enumeration |
getEntries(AccessControlList obj)
Returns an Enumeration of access control entries
for an wt.access.AccessControlLink object. |
private static Manager |
getManager()
|
EnumeratorVector |
getPermissions(AdHocControlled obj,
WTPrincipalReference principal_ref,
AdHocAccessKey owner_key)
Returns the permissions ( EnumeratorVector of AccessPermission ) granted to a principal for an object,
by an ad hoc access control rule with a specified owner. |
EnumeratorVector |
getPermissions(AdHocControlled obj,
WTPrincipalReference principal_ref,
AdHocAccessKey owner_key,
long owner_id)
Returns the permissions ( EnumeratorVector of AccessPermission ) granted to a principal for an object,
by an ad hoc access control rule with a specified owner. |
PolicyAcl |
getPolicyAcl(AccessSelector selector)
Returns the policy acl for the given selector. |
Hashtable |
getSurrogateAttributes(Class a_targetClass)
Indicates which attributes are necessary for making the access control decision on an object of the given class. |
boolean |
hasAccess(Object object,
AccessPermission permission)
Determines whether the current principal has the given access permission over the object passed as argument. |
boolean |
hasAccess(Object object,
String permission)
Deprecated. |
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,
Object object,
String permission)
Deprecated. |
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 user,
String type_id,
AdminDomainRef domain_ref,
State state,
String permission)
Deprecated. |
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. |
AdHocControlled |
removePermission(AdHocControlled obj,
WTPrincipalReference principal_ref,
AccessPermission permission,
AdHocAccessKey owner_key)
Removes the specified permission from the set of permissions granted to a principal for an object. |
AdHocControlled |
removePermission(AdHocControlled obj,
WTPrincipalReference principal_ref,
AccessPermission permission,
AdHocAccessKey owner_key,
long owner_id)
Removes the specified permission from the set of permissions granted to a principal for an object. |
AdHocControlled |
removePermissions(AdHocControlled obj,
AdHocAccessKey owner_key)
Removes all ad hoc access control rules with the specified owner. |
AdHocControlled |
removePermissions(AdHocControlled obj,
AdHocAccessKey owner_key,
long owner_id)
Removes all ad hoc access control rules with the specified owner. |
AdHocControlled |
removePermissions(AdHocControlled obj,
WTPrincipalReference principal_ref,
Vector permissions,
AdHocAccessKey owner_key)
Removes the specified permissions from the set of permissions granted to a principal for an object. |
AdHocControlled |
removePermissions(AdHocControlled obj,
WTPrincipalReference principal_ref,
Vector permissions,
AdHocAccessKey owner_key,
long owner_id)
Removes the specified permissions from the set of permissions granted to a principal for an object. |
AdHocControlled |
setPermission(AdHocControlled obj,
WTPrincipalReference principal_ref,
AccessPermission permission,
AdHocAccessKey owner_key)
Adds an ad hoc access control rule granting a principal the specified permission to an object. |
AdHocControlled |
setPermission(AdHocControlled obj,
WTPrincipalReference principal_ref,
AccessPermission permission,
AdHocAccessKey owner_key,
long owner_id)
Adds an ad hoc access control rule granting a principal the specified permission to an object. |
AdHocControlled |
setPermissions(AdHocControlled obj,
WTPrincipalReference principal_ref,
Vector permissions,
AdHocAccessKey owner_key)
Deprecated. |
AdHocControlled |
setPermissions(AdHocControlled obj,
WTPrincipalReference principal_ref,
Vector permissions,
AdHocAccessKey owner_key,
long owner_id)
Adds an ad hoc access control rule granting a principal the specified permissions to an object. |
String |
showPermissions(AdHocControlled obj)
Returns a string representation of the ad hoc access control rules for the specified object. |
void |
updateAccessControlRule(AdminDomainRef domain_ref,
String type_id,
String state_key,
WTPrincipalReference principal_ref,
boolean grant,
Vector permissions)
Updates an access control rule defining the rights of a principal to access objects of a specified type and state, within a domain. |
void |
updateAccessControlRule(AdminDomainRef domain_ref,
String type_id,
String state_key,
WTPrincipalReference principal_ref,
Vector grant_permissions,
Vector deny_permissions)
Updates an access control rule defining the rights of a principal to access objects of a specified type and state, within a domain. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final boolean SERVER
private static final String FC_RESOURCE
private static final String CLASSNAME
Constructor Detail |
public AccessControlManagerFwd()
Method Detail |
private static Manager getManager() throws WTException
WTException
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.
checkAccess
in interface AccessControlManager
object
- permission
-
WTException
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.
checkAccess
in interface AccessControlManager
objects
- permission
-
WTException
public boolean checkAccess(Object object, String permission) throws WTException
AccessControlEvent.NOT_AUTHORIZED
event for auditing purposes and throws a NotAuthorizedException if
this is not the case.
checkAccess
in interface AccessControlManager
object
- permission
-
WTException
checkAccess(Object object, AccessPermission permission)
public void checkAccess(AdminDomainRef domain_ref, String type_id, AccessPermission permission) throws WTException
AccessControlEvent.NOT_AUTHORIZED
event for auditing
purposes and throws a NotAuthorizedException if this is not the case.
The access is evaluated only taking into account access policies.
For a specific object this is only part of the answer as the object
may be ad hoc controlled and have an ad hoc ACL that provides additional
access rights.
Supported API: false
checkAccess
in interface AccessControlManager
domain_ref
- type_id
- permission
-
WTException
public boolean hasAccess(Object object, AccessPermission permission) throws WTException
hasAccess
in interface AccessControlManager
object
- permission
-
WTException
public boolean hasAccess(WTCollection objects, AccessPermission permission) throws WTException
hasAccess
in interface AccessControlManager
objects
- permission
-
WTException
public boolean hasAccess(Object object, String permission) throws WTException
hasAccess
in interface AccessControlManager
object
- permission
-
WTException
hasAccess(Object object, AccessPermission permission)
public boolean hasAccess(WTPrincipal user, Object object, AccessPermission permission) throws WTException
hasAccess
in interface AccessControlManager
user
- object
- permission
-
WTException
public boolean hasAccess(WTPrincipal principal, WTCollection objects, AccessPermission permission) throws WTException
hasAccess
in interface AccessControlManager
principal
- objects
- permission
-
WTException
public boolean hasAccess(WTPrincipal user, Object object, String permission) throws WTException
hasAccess
in interface AccessControlManager
user
- object
- permission
-
WTException
hasAccess(WTPrincipal user, Object object, AccessPermission
permission)
public boolean hasAccess(WTPrincipal user, String type_id, AdminDomainRef domain_ref, State state, AccessPermission permission) throws WTException
hasAccess
in interface AccessControlManager
user
- type_id
- domain_ref
- state
- permission
-
WTException
public boolean hasAccess(WTPrincipal user, String type_id, AdminDomainRef domain_ref, State state, String permission) throws WTException
hasAccess
in interface AccessControlManager
user
- type_id
- domain_ref
- state
- permission
-
WTException
hasAccess(WTPrincipal user, String type_id, AdminDomainRef domain_ref,
State state, AccessPermission permission)
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: false
filterObjects
in interface AccessControlManager
objects
- 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: false
filterObjects
in interface AccessControlManager
objects
- permission
-
WTException
public QueryResult filterObjects(QueryResult objects, String 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: false
filterObjects
in interface AccessControlManager
objects
- permission
-
WTException
filterObjects(QueryResult objects, AccessPermission permission)
public void createAccessControlRule(AdminDomainRef domain_ref, String type_id, String state_key, WTPrincipalReference principal_ref, Vector grant_permissions, Vector deny_permissions) throws WTException
createAccessControlRule
in interface AccessControlManager
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierstate_key
- life cycle state key (State.toString()
value, or null for all states)principal_ref
- reference to a principalgrant_permissions
- Vector
of permissions (AccessPermission
) to grantdeny_permissions
- Vector
of permissions (AccessPermission
) to deny
WTException
AccessPermission
public void createAccessControlRule(AdminDomainRef domain_ref, String type_id, String state_key, WTPrincipalReference principal_ref, boolean grant, Vector permissions) throws WTException
createAccessControlRule
in interface AccessControlManager
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierstate_key
- life cycle state key (State.toString()
value, or null for all states)principal_ref
- reference to a principalgrant
- true = grant, false = denypermissions
- Vector
of permissions (AccessPermission
)
WTException
AccessPermission
public void deleteAccessControlRule(AdminDomainRef domain_ref, String type_id, String state_key, WTPrincipalReference principal_ref) throws WTException
deleteAccessControlRule
in interface AccessControlManager
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierstate_key
- life cycle state key (State.toString()
value, or null for all states)principal_ref
- reference to a principal
WTException
public void deleteAccessControlRules(AdminDomainRef domain_ref) throws WTException
This method is intended for testing purposes only, to support automated
tests that need to reinitialize the testing environment.
Supported API: false
deleteAccessControlRules
in interface AccessControlManager
domain_ref
- reference to the domain the rule is for
WTException
public EnumeratorVector[] getAccessControlRule(AdminDomainRef domain_ref, String type_id, String state_key, WTPrincipalReference principal_ref) throws WTException
EnumeratorVector
array where the first element
contains any permissions granted and the second element contains any
permissions denied to the principal.
getAccessControlRule
in interface AccessControlManager
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierstate_key
- life cycle state key (State.toString()
value, or null for all states)principal_ref
- reference to a principal
WTException
public void updateAccessControlRule(AdminDomainRef domain_ref, String type_id, String state_key, WTPrincipalReference principal_ref, Vector grant_permissions, Vector deny_permissions) throws WTException
updateAccessControlRule
in interface AccessControlManager
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierstate_key
- life cycle state key (State.toString()
value, or null for all states)principal_ref
- reference to a principalgrant_permissions
- Vector
of permissions (AccessPermission
) to grantdeny_permissions
- Vector
of permissions (AccessPermission
) to deny
WTException
AccessPermission
public void updateAccessControlRule(AdminDomainRef domain_ref, String type_id, String state_key, WTPrincipalReference principal_ref, boolean grant, Vector permissions) throws WTException
updateAccessControlRule
in interface AccessControlManager
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierstate_key
- life cycle state key (State.toString()
value, or null for all states)principal_ref
- reference to a principalgrant
- true = grant, false = denypermissions
- Vector
of permissions (AccessPermission
)
WTException
AccessPermission
public PolicyAcl getPolicyAcl(AccessSelector selector) throws WTException
getPolicyAcl
in interface AccessControlManager
selector
-
WTException
public AccessPolicyRule getAccessPolicyRule(AccessSelector selector) throws WTException
getAccessPolicyRule
in interface AccessControlManager
selector
-
WTException
public Enumeration getAccessPolicyRules(AdminDomainRef domain_ref) throws WTException
getAccessPolicyRules
in interface AccessControlManager
domain_ref
-
WTException
public Hashtable getSurrogateAttributes(Class a_targetClass) throws WTException
getSurrogateAttributes
in interface AccessControlManager
a_targetClass
-
WTException
public AdHocControlled addPermission(AdHocControlled obj, WTPrincipalReference principal_ref, AccessPermission permission, AdHocAccessKey owner_key) throws WTException
Note: If the object is persistent, this method must be called from
within a transaction that includes an update to the object.
Supported API: false
addPermission
in interface AccessControlManager
obj
- object the rule is forprincipal_ref
- principal the permission applies topermission
- permission to be grantedowner_key
- key identifying the rule's owner
WTException
public AdHocControlled addPermission(AdHocControlled obj, WTPrincipalReference principal_ref, AccessPermission permission, AdHocAccessKey owner_key, long owner_id) throws WTException
Note: If the object is persistent, this method must be called from
within a transaction that includes an update to the object.
Supported API: false
addPermission
in interface AccessControlManager
obj
- object the rule is forprincipal_ref
- principal the permission applies topermission
- permission to be grantedowner_key
- key identifying the rule's ownerowner_id
- identifier used by the rule's owner to qualify the key
WTException
public AdHocControlled addPermissions(AdHocControlled obj, WTPrincipalReference principal_ref, Vector permissions, AdHocAccessKey owner_key) throws WTException
Note: If the object is persistent, this method must be called from
within a transaction that includes an update to the object.
Supported API: false
addPermissions
in interface AccessControlManager
obj
- object the rule is forprincipal_ref
- principal the permission applies topermissions
- permissions to be granted (Vector
of AccessPermission
)owner_key
- key identifying the rule's owner
WTException
public AdHocControlled addPermissions(AdHocControlled obj, WTPrincipalReference principal_ref, Vector permissions, AdHocAccessKey owner_key, long owner_id) throws WTException
Note: If the object is persistent, this method must be called from
within a transaction that includes an update to the object.
Supported API: false
addPermissions
in interface AccessControlManager
obj
- object the rule is forprincipal_ref
- principal the permission applies topermissions
- permissions to be granted (Vector
of AccessPermission
)owner_key
- key identifying the rule's ownerowner_id
- identifier used by the rule's owner to qualify the key
WTException
public AdHocControlled copyPermissions(AdHocControlled source, AdHocControlled target, AdHocAccessKey owner_key) throws WTException
Note: The source object must be persistent. If the target object
is persistent, this method must be called from within a transaction
that includes an update to the target object.
Supported API: false
copyPermissions
in interface AccessControlManager
source
- source objecttarget
- target objectowner_key
- key identifying the rule's owner
WTException
public AdHocControlled copyPermissions(AdHocControlled source, AdHocControlled target, AdHocAccessKey owner_key, long owner_id) throws WTException
Note: The source object must be persistent. If the target object
is persistent, this method must be called from within a transaction
that includes an update to the target object.
Supported API: false
copyPermissions
in interface AccessControlManager
source
- source objecttarget
- target objectowner_key
- key identifying the rule's ownerowner_id
- identifier used by the rule's owner to qualify the key
WTException
public EnumeratorVector getPermissions(AdHocControlled obj, WTPrincipalReference principal_ref, AdHocAccessKey owner_key) throws WTException
EnumeratorVector
of AccessPermission
) granted to a principal for an object,
by an ad hoc access control rule with a specified owner.
getPermissions
in interface AccessControlManager
obj
- object the rule is forprincipal_ref
- principal whose permissions are to be returnedowner_key
- key identifying the rule's owner
WTException
public EnumeratorVector getPermissions(AdHocControlled obj, WTPrincipalReference principal_ref, AdHocAccessKey owner_key, long owner_id) throws WTException
EnumeratorVector
of AccessPermission
) granted to a principal for an object,
by an ad hoc access control rule with a specified owner.
getPermissions
in interface AccessControlManager
obj
- object the rule is forprincipal_ref
- principal whose permissions are to be returnedowner_key
- key identifying the rule's ownerowner_id
- identifier used by the rule's owner to qualify the key
WTException
public AdHocControlled removePermission(AdHocControlled obj, WTPrincipalReference principal_ref, AccessPermission permission, AdHocAccessKey owner_key) throws WTException
AccessPermission.ALL
is specified, all permissions are removed. If no permissions remain,
the ad hoc access control rule for the principal is removed. The permission
is only removed from a rule with the specified owner. If there is
no matching rule, this method returns without making any changes.
Note: If the object is persistent, this method must be called from
within a transaction that includes an update to the object.
Supported API: false
removePermission
in interface AccessControlManager
obj
- object the rule is forprincipal_ref
- principal the permission applies topermission
- permission to be removedowner_key
- key identifying the rule's owner
WTException
public AdHocControlled removePermission(AdHocControlled obj, WTPrincipalReference principal_ref, AccessPermission permission, AdHocAccessKey owner_key, long owner_id) throws WTException
AccessPermission.ALL
is specified, all permissions are removed. If no permissions remain,
the ad hoc access control rule for the principal is removed. The permission
is only removed from a rule with the specified owner. If there is
no matching rule, this method returns without making any changes.
Note: If the object is persistent, this method must be called from
within a transaction that includes an update to the object.
Supported API: false
removePermission
in interface AccessControlManager
obj
- object the rule is forprincipal_ref
- principal the permission applies topermission
- permission to be removedowner_key
- key identifying the rule's ownerowner_id
- identifier used by the rule's owner to qualify the key
WTException
public AdHocControlled removePermissions(AdHocControlled obj, WTPrincipalReference principal_ref, Vector permissions, AdHocAccessKey owner_key) throws WTException
AccessPermission.ALL
is specified, all permissions are removed. If no permissions remain,
the ad hoc access control rule for the principal is removed. The permissions
are only removed from a rule with the specified owner. If there is
no matching rule, this method returns without making any changes.
Note: If the object is persistent, this method must be called from
within a transaction that includes an update to the object.
Supported API: false
removePermissions
in interface AccessControlManager
obj
- object the rule is forprincipal_ref
- principal the permission applies topermissions
- permissions to be removed (Vector
of AccessPermission
)owner_key
- key identifying the rule's owner
WTException
public AdHocControlled removePermissions(AdHocControlled obj, WTPrincipalReference principal_ref, Vector permissions, AdHocAccessKey owner_key, long owner_id) throws WTException
AccessPermission.ALL
is specified, all permissions are removed. If no permissions remain,
the ad hoc access control rule for the principal is removed. The permissions
are only removed from a rule with the specified owner. If there is
no matching rule, this method returns without making any changes.
Note: If the object is persistent, this method must be called from
within a transaction that includes an update to the object.
Supported API: false
removePermissions
in interface AccessControlManager
obj
- object the rule is forprincipal_ref
- principal the permission applies topermissions
- permissions to be removed (Vector
of AccessPermission
)owner_key
- key identifying the rule's ownerowner_id
- identifier used by the rule's owner to qualify the key
WTException
public AdHocControlled removePermissions(AdHocControlled obj, AdHocAccessKey owner_key) throws WTException
Note: If the object is persistent, this method must be called from
within a transaction that includes an update to the object.
Supported API: false
removePermissions
in interface AccessControlManager
obj
- object the rules are forowner_key
- key identifying the rules' owner
WTException
public AdHocControlled removePermissions(AdHocControlled obj, AdHocAccessKey owner_key, long owner_id) throws WTException
Note: If the object is persistent, this method must be called from
within a transaction that includes an update to the object.
Supported API: false
removePermissions
in interface AccessControlManager
obj
- object the rules are forowner_key
- key identifying the rules' ownerowner_id
- identifier used by the rules' owner to qualify the key
WTException
public AdHocControlled setPermission(AdHocControlled obj, WTPrincipalReference principal_ref, AccessPermission permission, AdHocAccessKey owner_key) throws WTException
Note: If the object is persistent, this method must be called from
within a transaction that includes an update to the object.
Supported API: false
setPermission
in interface AccessControlManager
obj
- object the rule is forprincipal_ref
- principal the permission applies topermission
- permission to be grantedowner_key
- key identifying the rule's owner
WTException
public AdHocControlled setPermission(AdHocControlled obj, WTPrincipalReference principal_ref, AccessPermission permission, AdHocAccessKey owner_key, long owner_id) throws WTException
Note: If the object is persistent, this method must be called from
within a transaction that includes an update to the object.
Supported API: false
setPermission
in interface AccessControlManager
obj
- object the rule is forprincipal_ref
- principal the permission applies topermission
- permission to be grantedowner_key
- key identifying the rule's ownerowner_id
- identifier used by the rule's owner to qualify the key
WTException
public AdHocControlled setPermissions(AdHocControlled obj, WTPrincipalReference principal_ref, Vector permissions, AdHocAccessKey owner_key) throws WTException
Note: If the object is persistent, this method must be called from
within a transaction that includes an update to the object.
Supported API: false
setPermissions
in interface AccessControlManager
obj
- object the rule is forprincipal_ref
- principal the permission applies topermissions
- permissions to be granted (Vector
of AccessPermission
)owner_key
- key identifying the rule's owner
WTException
#setPermissions(List objects, List specifications, List principal_maps,
AdHocAccessKey owner_key)
public AdHocControlled setPermissions(AdHocControlled obj, WTPrincipalReference principal_ref, Vector permissions, AdHocAccessKey owner_key, long owner_id) throws WTException
Note: If the object is persistent, this method must be called from
within a transaction that includes an update to the object.
Supported API: false
setPermissions
in interface AccessControlManager
obj
- object the rule is forprincipal_ref
- principal the permission applies topermissions
- permissions to be granted (Vector
of AccessPermission
)owner_key
- key identifying the rule's ownerowner_id
- identifier used by the rule's owner to qualify the key
WTException
public String showPermissions(AdHocControlled obj) throws WTException
showPermissions
in interface AccessControlManager
obj
- object to return rules for
WTException
public Enumeration getEntries(AccessControlList obj) throws WTException
Enumeration
of access control entries
for an wt.access.AccessControlLink
object. All enabled entries
are returned.
getEntries
in interface AccessControlManager
obj
- object with a list of WTAclEntry
objects
WTException
public void emitAccessEvent(String event_type, Object target, AccessPermission permission, WTMessage message) throws WTException
emitAccessEvent
in interface AccessControlManager
event_type
- target
- permission
- message
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |