|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
AccessControlManagerSvr provides methods for access control services
that can only be invoked from classes running on the server. These methods
are executed on the server side.
Supported API: false
Extendable: false
Method Summary | |
void |
addPermission(WTCollection objects,
WTPrincipalReference principal_ref,
AccessPermission permission,
AdHocAccessKey owner_key)
Adds an ad hoc access control rule for each of the objects in a collection, granting a principal the specified permission to the objects. |
void |
addPermission(WTCollection objects,
WTPrincipalReference principal_ref,
AccessPermission permission,
AdHocAccessKey owner_key,
long owner_id)
Adds an ad hoc access control rule for each of the objects in a collection, granting a principal the specified permission to the objects. |
void |
addPermissions(WTCollection objects,
WTPrincipalReference principal_ref,
Collection permissions,
AdHocAccessKey owner_key)
Adds an ad hoc access control rule for each of the objects in a collection, granting a principal the specified permissions to the objects. |
void |
addPermissions(WTCollection objects,
WTPrincipalReference principal_ref,
Collection permissions,
AdHocAccessKey owner_key,
long owner_id)
Adds an ad hoc access control rule for each of the objects in a collection, granting a principal the specified permissions to the objects. |
AdHocControlled |
copyPermissions(AdHocControlled source,
AdHocControlled target)
Copies permissions from a source object to a target object. |
void |
copyPermissions(AdHocControlled source,
WTCollection targets,
AdHocAccessKey owner_key)
Copies permissions from a source object to a collection of target objects. |
void |
copyPermissions(AdHocControlled source,
WTCollection targets,
AdHocAccessKey owner_key,
long owner_id)
Copies permissions from a source object to a collection of target objects. |
void |
createAllRule(AdminDomainRef domain_ref,
String type_id,
WTPrincipalReference principal_ref)
To be used only by wt.admin.Install Supported API: false |
void |
reassignPermissions(AdHocControlled obj,
WTPrincipalReference old_principal_ref,
WTPrincipalReference new_principal_ref,
AdHocAccessKey owner_key)
Reassigns permissions a principal has for an object to another principal, for all ad hoc access control rules with the specified owner. |
void |
reassignPermissions(AdHocControlled obj,
WTPrincipalReference old_principal_ref,
WTPrincipalReference new_principal_ref,
AdHocAccessKey owner_key,
long owner_id)
Reassigns permissions a principal has for an object to another principal, for all ad hoc access control rules with the specified owner. |
void |
removePermission(WTCollection objects,
WTPrincipalReference principal_ref,
AccessPermission permission,
AdHocAccessKey owner_key)
Removes the specified permission from the set of permissions granted to a principal for each of the objects in a collection. |
void |
removePermission(WTCollection objects,
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 each of the objects in a collection. |
void |
removePermissions(WTCollection objects,
WTPrincipalReference principal_ref,
Collection permissions,
AdHocAccessKey owner_key)
Removes the specified permissions from the set of permissions granted to a principal for an object. |
void |
removePermissions(WTCollection objects,
WTPrincipalReference principal_ref,
Collection permissions,
AdHocAccessKey owner_key,
long owner_id)
Removes the specified permissions from the set of permissions granted to a principal for each of the objects in a collection. |
void |
setPermissions(AdHocControlled obj,
AdHocAclSpec specification,
WTRoleHolder2 role_holder,
AdHocAccessKey owner_key)
Creates ad hoc access control rules granting principals permissions to an object, based on an ad hoc access specification ( AdHocAclSpec ). |
void |
setPermissions(List objects,
List specifications,
List principal_maps,
AdHocAccessKey owner_key)
Creates ad hoc access control rules granting principals permissions to objects, based on an ad hoc access specification ( AdHocAclSpec )
and a role to principal mapping. |
Method Detail |
public void createAllRule(AdminDomainRef domain_ref, String type_id, WTPrincipalReference principal_ref) throws WTException
domain_ref
- type_id
- principal_ref
-
WTException
public void addPermission(WTCollection objects, WTPrincipalReference principal_ref, AccessPermission permission, AdHocAccessKey owner_key) throws WTException
Note: If the objects in the collection are persistent, this method
must be called from within a transaction that includes an update to
the objects.
Supported API: false
objects
- objects the rules are forprincipal_ref
- principal the permission applies topermission
- permission to be grantedowner_key
- key identifying the rule's owner
WTException
public void addPermission(WTCollection objects, WTPrincipalReference principal_ref, AccessPermission permission, AdHocAccessKey owner_key, long owner_id) throws WTException
Note: If the objects in the collection are persistent, this method
must be called from within a transaction that includes an update to
the objects.
Supported API: false
objects
- objects the rules are 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 void addPermissions(WTCollection objects, WTPrincipalReference principal_ref, Collection permissions, AdHocAccessKey owner_key) throws WTException
Note: If the objects in the collection are persistent, this method
must be called from within a transaction that includes an update to
the objects.
Supported API: false
objects
- objects the rules are forprincipal_ref
- principal the permission applies topermissions
- permissions to be granted (Collection
of AccessPermission
)owner_key
- key identifying the rule's owner
WTException
public void addPermissions(WTCollection objects, WTPrincipalReference principal_ref, Collection permissions, AdHocAccessKey owner_key, long owner_id) throws WTException
Note: If the objects in the collection are persistent, this method
must be called from within a transaction that includes an update to
the objects.
Supported API: false
objects
- objects the rules are forprincipal_ref
- principal the permission applies topermissions
- permissions to be granted (Collection
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) throws WTException
Note: This method is to be used for duplicating permissions when
creating a new object based on another object (for example, checking
in a new iteration of a RevisionControlled
object). It
must be called from within a transaction that includes an update to
the target object.
Supported API: false
source
- source objecttarget
- target object
WTException
public void copyPermissions(AdHocControlled source, WTCollection targets, AdHocAccessKey owner_key) throws WTException
Note: The source object must be persistent. If the target objects
are persistent, this method must be called from within a transaction
that includes an update to the target objects.
Supported API: false
source
- source objecttargets
- target objectsowner_key
- key identifying the rule's owner
WTException
public void copyPermissions(AdHocControlled source, WTCollection targets, AdHocAccessKey owner_key, long owner_id) throws WTException
Note: The source object must be persistent. If the target objects
are persistent, this method must be called from within a transaction
that includes an update to the target objects.
Supported API: false
source
- source objecttargets
- target objectsowner_key
- key identifying the rule's ownerowner_id
- identifier used by the rule's owner to qualify the key
WTException
public void reassignPermissions(AdHocControlled obj, WTPrincipalReference old_principal_ref, WTPrincipalReference new_principal_ref, AdHocAccessKey owner_key) throws WTException
obj
- object the rules are forold_principal_ref
- principal whose permissions are to be reassignednew_principal_ref
- principal to reassign permissions toowner_key
- key identifying the rules' owner
WTException
public void reassignPermissions(AdHocControlled obj, WTPrincipalReference old_principal_ref, WTPrincipalReference new_principal_ref, AdHocAccessKey owner_key, long owner_id) throws WTException
obj
- object the rules are forold_principal_ref
- principal whose permissions are to be reassignednew_principal_ref
- principal to reassign permissions toowner_key
- key identifying the rules' ownerowner_id
- identifier used by the rule's owner to qualify the key
WTException
public void removePermission(WTCollection objects, 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 to
the object.
Note: If the objects are persistent, this method must be called
from within a transaction that includes an update to the objects.
Supported API: false
objects
- objects the rules are forprincipal_ref
- principal the permission applies topermission
- permission to be removedowner_key
- key identifying the rule's owner
WTException
public void removePermission(WTCollection objects, 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 to
the object.
Note: If the objects are persistent, this method must be called
from within a transaction that includes an update to the objects.
Supported API: false
objects
- objects the rules are 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 void removePermissions(WTCollection objects, WTPrincipalReference principal_ref, Collection 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
objects
- objects the rules are forprincipal_ref
- principal the permission applies topermissions
- permissions to be removed (Collection
of AccessPermission
)owner_key
- key identifying the rule's owner
WTException
public void removePermissions(WTCollection objects, WTPrincipalReference principal_ref, Collection 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 to
the object.
Note: If the objects are persistent, this method must be called
from within a transaction that includes an update to the objects.
Supported API: false
objects
- objects the rules are forprincipal_ref
- principal the permission applies topermissions
- permissions to be removed (Collection
of AccessPermission
)owner_key
- key identifying the rule's ownerowner_id
- identifier used by the rule's owner to qualify the key
WTException
public void setPermissions(AdHocControlled obj, AdHocAclSpec specification, WTRoleHolder2 role_holder, AdHocAccessKey owner_key) throws WTException
AdHocAclSpec
).
If rules with the specified owner already exist, the new rules replace
the existing rules. Changes to the entrySet
attribute
of the object are persisted. This method bypasses access control checks.
obj
- object the rules are forspecification
- ad hoc access specificationrole_holder
- role to principal mappingowner_key
- key identifying the rules' owner
WTException
public void setPermissions(List objects, List specifications, List principal_maps, AdHocAccessKey owner_key) throws WTException
AdHocAclSpec
)
and a role to principal mapping. If rules with the specified owner
already exist for the principals, the new rules replace the existing
rules. Changes to the entrySet
attribute of the objects
are persisted. This method bypasses access control checks.
The objects
parameter is a list where the elements are
each a WTList
of objects to be associated
with the ad hoc access specification and role to principal mapping
at the same index in the specifications
and principal_map
lists.
Supported API: false
objects
- list of objects the rules are forspecifications
- list of ad hoc access specificationsprincipal_maps
- list of role to principal mappingsowner_key
- key identifying the rules' owner
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |