public interface AccessRule
Access rules are set by the methods setAccessRule... in the class
SchemaExtensionsContext.
To specify a programmatic access rule applying in a creation context only,
the AccessRuleForCreate interface should be used instead.
| Modifier and Type | Interface and Description |
|---|---|
static class |
AccessRule.NoWriteRule
Wraps another rule to return a maximum access level of read-only.
|
| Modifier and Type | Field and Description |
|---|---|
static AccessRule |
ALWAYS_HIDDEN
Always returns hidden access permission.
|
static AccessRule |
ALWAYS_READ_ONLY
Always returns read-only access permission.
|
static AccessRule |
ALWAYS_READ_WRITE
Always returns read-write access permission.
|
| Modifier and Type | Method and Description |
|---|---|
AccessPermission |
getPermission(Adaptation aDataSetOrRecord,
Session aSession,
SchemaNode aNode)
Returns permissions for the specified arguments.
|
static final AccessRule ALWAYS_READ_WRITE
static final AccessRule ALWAYS_READ_ONLY
static final AccessRule ALWAYS_HIDDEN
AccessPermission getPermission(Adaptation aDataSetOrRecord, Session aSession, SchemaNode aNode)
Warning: if this AccessRule is assigned to a
table record,
this method is called in multiple contexts:
aDataSetOrRecord is the current dataset.aDataSetOrRecord is the current record.aDataSetOrRecord is the current dataset.aDataSetOrRecord - current dataset or record (see warning above)aSession - current user sessionaNode - current data model node whose access must be computed;
when the permission is requested for the dataset itself (not a particular node), this is
the root nodenull.SchemaExtensionsContext,
Performance guidelines