com.softwareag.mdm.service
Interface AccessRule


public interface AccessRule

Specifies a programmatic access rule.

Access rules are set by methods setAccessRule... on class SchemaExtensionsContext.

See Also:
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

ALWAYS_READ_WRITE

public static final AccessRule ALWAYS_READ_WRITE
This rule always returns read-write access permission.


ALWAYS_READ_ONLY

public static final AccessRule ALWAYS_READ_ONLY
This rule always returns read-only access permission.


ALWAYS_HIDDEN

public static final AccessRule ALWAYS_HIDDEN
This rule always returns hidden access permission.

Method Detail

getPermission

public AccessPermission getPermission(Adaptation anAdaptation,
                                      Session aSession,
                                      SchemaNode aNode)
Returns a permission for the arguments specified.

Parameters:
anAdaptation - current adaptation (either an instance or an occurrence)
aSession - current user session
aNode - 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)
Returns:
a permission, never null.
See Also:
SchemaExtensionsContext.setAccessRuleOnInstance(AccessRule), SchemaExtensionsContext.setAccessRuleOnNode(Path, AccessRule), SchemaExtensionsContext.setAccessRuleOnNodeAndAllDescendants(Path, boolean, AccessRule), SchemaExtensionsContext.setAccessRuleOnOccurrence(Path, AccessRule)


(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.