|
|
||||||||||
| 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 specified arguments. |
| 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,
this method is called in three contexts:
anAdaptation is the current instance.anAdaptation is the current record.anAdaptation is the current instance.
anAdaptation - current adaptation (either an instance or an occurrence, see warning above)aSession - current user sessionaNode - current schema node whose access must be computed;
when the requested 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.8.4 [0722]
Copyright Orchestra Networks 2000-2010. All rights reserved.