isGranted(ItemId id,
int permissions)
Determines whether the specified permissions are granted
on the item with the specified id (i.e. the target item).

boolean

isGranted(Path absPath,
int permissions)
Determines whether the specified permissions are granted
on the item with the specified absPath (i.e. the target
item, that may or may not yet exist).

boolean

isGranted(Path parentPath,
Name childName,
int permissions)
Determines whether the specified permissions are granted
on an item represented by the combination of the given
parentPath and childName (i.e. the target
item, that may or may not yet exist).

canAccess

Determines whether the subject of the current context is granted access
to the given workspace. Note that an implementation is free to test for
the existance of a workspace with the specified name. In this case
the expected return value is false, if no such workspace
exists.

hasPrivileges

Returns whether the session has the specified privileges for absolute
path absPath, which must be an existing node.

Testing an aggregate privilege is equivalent to testing each non aggregate
privilege among the set returned by calling
Privilege.getAggregatePrivileges() for that privilege.

The results reported by the this method reflect the net
effect of the currently applied control mechanisms. It does not reflect
unsaved access control policies or unsaved access control entries.
Changes to access control status caused by these mechanisms only take effect
on Session.save() and are only then reflected in the results of
the privilege test methods.

A PathNotFoundException is thrown if no node at
absPath exists or the session does not have privilege to
retrieve the node.

The results reported by the this method reflect the net
effect of the currently applied control mechanisms. It does not reflect
unsaved access control policies or unsaved access control entries.
Changes to access control status caused by these mechanisms only take effect
on Session.save() and are only then reflected in the results of
the privilege test methods.

A PathNotFoundException is thrown if no node at
absPath exists or the session does not have privilege to
retrieve the node.