Package akka.javasdk

Interface Principals


public interface Principals
The principals associated with a request.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    get()
    Get the principals associated with this request.
    Get the service that invoked this call, if any.
    boolean
    Whether this request was from any service in the local project.
    boolean
    Whether this request is a backoffice request.
    boolean
    Whether this request was from the internet.
    boolean
    Whether this request was from a service in the local project.
    boolean
    Whether this is a self request.
  • Method Details Link icon

    • isInternet Link icon

      boolean isInternet()
      Whether this request was from the internet.
    • isSelf Link icon

      boolean isSelf()
      Whether this is a self request.
    • isBackoffice Link icon

      boolean isBackoffice()
      Whether this request is a backoffice request.
    • isLocalService Link icon

      boolean isLocalService(String name)
      Whether this request was from a service in the local project.
      Parameters:
      name - The name of the service.
    • isAnyLocalService Link icon

      boolean isAnyLocalService()
      Whether this request was from any service in the local project.
    • getLocalService Link icon

      Optional<String> getLocalService()
      Get the service that invoked this call, if any.
    • get Link icon

      Get the principals associated with this request.