|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Specifies a programmatic access rule.
Access rules are set by methods setAccessRule... on class
SchemaExtensionsContext.
SchemaExtensionsContext.setAccessRuleOnNode(Path, AccessRule)| Field Summary | |
static AccessRule |
ALWAYS_HIDDEN
This rule always returns hidden access permission. |
static AccessRule |
ALWAYS_READ_ONLY
This rule always returns read-only access permission. |
static AccessRule |
ALWAYS_READ_WRITE
This rule always returns read-write access permission. |
| Method Summary | |
AccessPermission |
getPermission(Adaptation anAdaptation,
Session aSession,
SchemaNode aNode)
Returns a permission for the arguments specified. |
| Field Detail |
public static final AccessRule ALWAYS_READ_WRITE
public static final AccessRule ALWAYS_READ_ONLY
public static final AccessRule ALWAYS_HIDDEN
| Method Detail |
public AccessPermission getPermission(Adaptation anAdaptation,
Session aSession,
SchemaNode aNode)
Warning: if this AccessRule is assigned to a table occurrence node,
permission is evaluated with:
anAdaptation is the current instance, when evaluating table column permission.anAdaptation is the current occurrence, when evaluating node permission for a specific table record.
anAdaptation - current adaptation (either an instance or an occurrence)aSession - current user sessionaNode - usually ignored by the implementation - only needed if some introspection is needed:
current schema node (when the permission is about the global adaptation, this is the root node)
null.SchemaExtensionsContext.setAccessRuleOnInstance(AccessRule),
SchemaExtensionsContext.setAccessRuleOnNode(Path, AccessRule),
SchemaExtensionsContext.setAccessRuleOnNodeAndAllDescendants(Path, boolean, AccessRule),
SchemaExtensionsContext.setAccessRuleOnOccurrence(Path, AccessRule)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
(report a bug)
EBX.Platform 4.5.2 [0601:0004]
Copyright Orchestra Networks 2000-2008. All rights reserved.