# Uses of Interface
com.orchestranetworks.userservice.permission.ServicePermissionRule

Packages that use ServicePermissionRule
Package
Description
com.orchestranetworks.schema
Represents XML Schema concepts and provides schema extensions capabilities.
com.orchestranetworks.userservice.declaration
A public API for declaring user services.
com.orchestranetworks.userservice.permission
Allows the definition of activation rules and permission rules on user services.

- ## Uses of ServicePermissionRule in com.orchestranetworks.schema

  Methods in com.orchestranetworks.schema with parameters of type ServicePermissionRule
  Modifier and Type
  Method
  Description
  `void`
  SchemaExtensionsContext.`setServicePermissionRuleOnNode(Path aPathInSchema, ServiceKey aServiceKey, ServicePermissionRule<? extends EntitySelection> aRule)`
  Sets a `ServicePermissionRule` on a node without specifying a custom description.
  `void`
  SchemaExtensionsContext.`setServicePermissionRuleOnNode(Path aPathInSchema, ServiceKey aServiceKey, ServicePermissionRule<? extends EntitySelection> aRule, UserMessage aDescription)`
  Declares that the display and execution of the specified service is conditioned by the specified rule, when invoked on the element referred by the specified path.
  `void`
  SchemaExtensionsContext.`setServicePermissionRuleOnNodeAndAllDescendants(Path aSubTreePathInSchema, ServiceKey aServiceKey, ServicePermissionRule<? extends EntitySelection> aRule)`
  Sets a `ServicePermissionRule` on a node subtree without specifying a custom description.
  `void`
  SchemaExtensionsContext.`setServicePermissionRuleOnNodeAndAllDescendants(Path aSubTreePathInSchema, ServiceKey aServiceKey, ServicePermissionRule<? extends EntitySelection> aRule, UserMessage aDescription)`
  Declares that the display and execution of the specified service is conditioned by the specified rule, for all elements matching the rule's type of `EntitySelection` under the specified data model element.

- ## Uses of ServicePermissionRule in com.orchestranetworks.userservice.declaration

  Methods in com.orchestranetworks.userservice.declaration with parameters of type ServicePermissionRule
  Modifier and Type
  Method
  Description
  `void`
  ActivationContext.`setPermissionRule(ServicePermissionRule<? super S> aRule)`
  Sets a contextual permission rule which will be evaluated at runtime, upon service display or execution.

- ## Uses of ServicePermissionRule in com.orchestranetworks.userservice.permission

  Fields in com.orchestranetworks.userservice.permission declared as ServicePermissionRule
  Modifier and Type
  Field
  Description
  `static final ServicePermissionRule<EntitySelection>`
  ServicePermissionRule.`ALWAYS_DISABLED`
  Always returns the disabled permission (i.e both for display and execution contexts).
  `static final ServicePermissionRule<EntitySelection>`
  ServicePermissionRule.`ALWAYS_ENABLED`
  Always returns the enabled permission (i.e for both display and execution contexts).
  `static final ServicePermissionRule<EntitySelection>`
  ServicePermissionRule.`ENABLED_FOR_EXECUTION_ONLY`
  Returns the disabled permission for display context, but returns enabled for execution.