|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Context for specifying particular extensions to a schema.
SchemaExtensions| Method Summary | |
SchemaNode |
getSchemaNode()
Returns the root node of the schema. |
void |
setAccessRuleOnInstance(AccessRule aRule)
Declares that the global access to an instance of the schema may be restricted by the specified rule. |
void |
setAccessRuleOnNode(Path aPath,
AccessRule aRule)
Declares that the access to a node may be restricted by the specified rule. |
void |
setAccessRuleOnNodeAndAllDescendants(Path subTreePath,
boolean includeSubTreeRoot,
AccessRule aRule)
Declares that the access to a nodes subtree may be restricted by the specified rule. |
void |
setAccessRuleOnOccurrence(Path aTablePath,
AccessRule aRule)
Declares that the global access to a table occurrence of the schema may be restricted by the rule specified. |
| Method Detail |
public SchemaNode getSchemaNode()
public void setAccessRuleOnInstance(AccessRule aRule)
aRule - specifies the rule to be assignedsetAccessRuleOnNode(Path, AccessRule),
setAccessRuleOnOccurrence(Path, AccessRule),
AccessRule.getPermission(com.onwbp.adaptation.Adaptation, Session, SchemaNode)
public void setAccessRuleOnNode(Path aPath,
AccessRule aRule)
Only one rule can be associated to a node, so if a rule has been already set, it will be overridden. At runtime, the actual access permission to a node is the minimal permission of the following :
setAccessRuleOnInstance(AccessRule);setAccessRuleOnOccurrence(Path, AccessRule).AccessRule.ALWAYS_READ_WRITE.
aPath - the location of the nodeaRule - specifies the rule to be assignedAccessRule.getPermission(com.onwbp.adaptation.Adaptation, Session, SchemaNode)
public void setAccessRuleOnNodeAndAllDescendants(Path subTreePath,
boolean includeSubTreeRoot,
AccessRule aRule)
Only one rule can be associated to a node, so if a rule has been already set to any node in the specified subtree, it will be overridden. Hence the order of sets is important.
subTreePath - specifies the root of the nodes to be assignedincludeSubTreeRoot - specifies whether the root is also assigned with the ruleaRule - specifies the rule to assignedsetAccessRuleOnNode(Path, AccessRule),
AccessRule.getPermission(com.onwbp.adaptation.Adaptation, Session, SchemaNode)
public void setAccessRuleOnOccurrence(Path aTablePath,
AccessRule aRule)
At runtime, the actual access permission to a table occurrence is the minimal permission of the following :
setAccessRuleOnInstance(AccessRule);AccessRule.ALWAYS_READ_WRITE.
aTablePath - location of table nodeaRule - specifies the rule to assignAccessRule.getPermission(com.onwbp.adaptation.Adaptation, Session, SchemaNode)
|
|
||||||||||
| 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.