Package kalix.javasdk

Interface Principals


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

    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

    • isInternet

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

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

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

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

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

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

      Get the principals associated with this request.