Package com.orchestranetworks.service

# Interface ServicePermissionForHierarchy

All Superinterfaces:
  `ServicePermission`

public interface ServicePermissionForHierarchy extends ServicePermission
Attached to a legacy user service definition, this interface specifies the conditions under which this service may be executed in the context of a hierarchy.

From release 5.8.0, it is strongly advised to use the new `UserService` API, which allows to use the more powerful `ServicePermissionRule` interface. Refer to the current documentation on user services for more information.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ActionPermission`
  `getPermissionForHierarchy(HierarchyNode aHierarchyNode, Session aSession)`
  Returns the permissions for the arguments specified.

  ### Methods inherited from interface com.orchestranetworks.service.ServicePermission

  `getPermission`

- ## Method Details

  - ### getPermissionForHierarchy

    ActionPermission getPermissionForHierarchy(HierarchyNode aHierarchyNode, Session aSession)
    Returns the permissions for the arguments specified. If the service is called from a hierarchy node's contextual menu, only this method is called (not `ServicePermission.getPermission(com.orchestranetworks.schema.SchemaNode, com.onwbp.adaptation.Adaptation, Session)`).

    ##### Multi-threading

    For a single instance of this interface, this method may be called concurrently by several threads.