public interface UserServiceObjectContext
UserServiceObjectContextBuilder
Modifier and Type | Method and Description |
---|---|
AccessPermission |
getPermission(ObjectKey anObjectKey,
Path aPath)
Returns the current user's access rights on the node of a user service
object.
|
ValueContext |
getValueContext(ObjectKey anObjectKey)
Returns the value context for object
ObjectKey . |
ValueContext |
getValueContext(ObjectKey anObjectKey,
Path aPath)
Returns the value context for object
ObjectKey and
path aPath . |
boolean |
isDataDeleted(ObjectKey anObjectKey)
Returns true if the underlying record or dataset has been deleted, possibly by another user.
|
ValueContext getValueContext(ObjectKey anObjectKey)
ObjectKey
.
This method returns the same result
as getValueContext(ObjectKey anObjectKey, Path.ROOT)
.
anObjectKey
- the key of the object in the object context.RuntimeException
- if anObjectKey
is invalid.ValueContext getValueContext(ObjectKey anObjectKey, Path aPath)
ObjectKey
and
path aPath
.anObjectKey
- the key of the object in the object context.aPath
- a path to an attribute of the object.RuntimeException
- if either anObjectKey
or aPath
are
invalid.AccessPermission getPermission(ObjectKey anObjectKey, Path aPath)
anObjectKey
- the object's key.aPath
- the path of the node. The path must be relative to the path of
the object.PathAccessException
- to report that the path is invalid.RuntimeException
- if anObjectKey
is invalid.SessionPermissions.getNodeAccessPermissionForForm(SchemaNode, Adaptation)
boolean isDataDeleted(ObjectKey anObjectKey)
anObjectKey
- the key of the object in the object context.true
if the underlying data was deleted. Will always return false
if the object
is not a dataset or a
record or if it is a record being created.RuntimeException
- if anObjectKey
is invalid.