Annotation Interface RequiresCapability


@Target(TYPE) @Retention(RUNTIME) public @interface RequiresCapability
Annotation on com.google.gerrit.sshd.SshCommand or com.google.gerrit.httpd.restapi.RestApiServlet declaring a capability must be granted.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Name of the capability required to invoke this action.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Fall back to admin credentials.
    Scope of the named capability.
  • Element Details

    • value

      String value
      Name of the capability required to invoke this action.
    • scope

      Scope of the named capability.
      Default:
      CONTEXT
    • fallBackToAdmin

      boolean fallBackToAdmin
      Fall back to admin credentials. Only applies to plugin capability check.
      Default:
      true