Package com.orchestranetworks.service

# Interface AccessRuleForCreate

public interface AccessRuleForCreate
Specifies a programmatic access rule invoked only when a record is created.

Access rules for create are set by the method `setAccessRuleForCreateOnNode` in `SchemaExtensionsContext`.

Since:
  5.9.0
See Also:
  - `SchemaExtensionsContext.setAccessRuleForCreateOnNode(Path, AccessRuleForCreate)`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final AccessRuleForCreate`
  `ALWAYS_HIDDEN`
  Always returns hidden access permission.
  `static final AccessRuleForCreate`
  `ALWAYS_READ_ONLY`
  Always returns read-only access permission.
  `static final AccessRuleForCreate`
  `ALWAYS_READ_WRITE`
  Always returns read-write access permission.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AccessPermission`
  `getPermission(AccessRuleForCreateContext aContext)`
  Returns the permission for the specified record creation context.

- ## Field Details

  - ### ALWAYS_READ_WRITE

    static final AccessRuleForCreate ALWAYS_READ_WRITE
    Always returns read-write access permission.

  - ### ALWAYS_READ_ONLY

    static final AccessRuleForCreate ALWAYS_READ_ONLY
    Always returns read-only access permission.

  - ### ALWAYS_HIDDEN

    static final AccessRuleForCreate ALWAYS_HIDDEN
    Always returns hidden access permission.

- ## Method Details

  - ### getPermission

    AccessPermission getPermission(AccessRuleForCreateContext aContext)
    Returns the permission for the specified record creation context.
    Parameters:
      `aContext` - the context of the record creation
    Returns:
      a permission, never `null` (in case `null` would be returned, a `NullPointerException` would be thrown afterwards).
    Since:
      5.9.0
    See Also:
      - Performance and tuning