Class TransportHasPrivilegesAction

java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<org.elasticsearch.xpack.core.security.action.user.HasPrivilegesRequest,org.elasticsearch.xpack.core.security.action.user.HasPrivilegesResponse>
org.elasticsearch.xpack.security.action.user.TransportHasPrivilegesAction

public class TransportHasPrivilegesAction extends org.elasticsearch.action.support.HandledTransportAction<org.elasticsearch.xpack.core.security.action.user.HasPrivilegesRequest,org.elasticsearch.xpack.core.security.action.user.HasPrivilegesResponse>
Transport action that tests whether a user has the specified privileges
  • Field Summary

    Fields inherited from class org.elasticsearch.action.support.TransportAction

    actionName, logger, taskManager
  • Constructor Summary

    Constructors
    Constructor
    Description
    TransportHasPrivilegesAction(org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.transport.TransportService transportService, org.elasticsearch.action.support.ActionFilters actionFilters, AuthorizationService authorizationService, NativePrivilegeStore privilegeStore, org.elasticsearch.xpack.core.security.SecurityContext context, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doExecute(org.elasticsearch.tasks.Task task, org.elasticsearch.xpack.core.security.action.user.HasPrivilegesRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.action.user.HasPrivilegesResponse> listener)
     
    static Set<String>
    getApplicationNames(org.elasticsearch.xpack.core.security.action.user.HasPrivilegesRequest request)
     

    Methods inherited from class org.elasticsearch.action.support.TransportAction

    execute

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TransportHasPrivilegesAction

      @Inject public TransportHasPrivilegesAction(org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.transport.TransportService transportService, org.elasticsearch.action.support.ActionFilters actionFilters, AuthorizationService authorizationService, NativePrivilegeStore privilegeStore, org.elasticsearch.xpack.core.security.SecurityContext context, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry)
  • Method Details

    • doExecute

      protected void doExecute(org.elasticsearch.tasks.Task task, org.elasticsearch.xpack.core.security.action.user.HasPrivilegesRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.action.user.HasPrivilegesResponse> listener)
      Specified by:
      doExecute in class org.elasticsearch.action.support.TransportAction<org.elasticsearch.xpack.core.security.action.user.HasPrivilegesRequest,org.elasticsearch.xpack.core.security.action.user.HasPrivilegesResponse>
    • getApplicationNames

      public static Set<String> getApplicationNames(org.elasticsearch.xpack.core.security.action.user.HasPrivilegesRequest request)