Annotation Interface RequiresAnyCapability


@Target(TYPE) @Retention(RUNTIME) public @interface RequiresAnyCapability
Annotation on com.google.gerrit.sshd.SshCommand or com.google.gerrit.httpd.restapi.RestApiServlet declaring a set of capabilities of which at least one must be granted.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Capabilities at least one of which is 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 capabilities.
  • Element Details

    • value

      String[] value
      Capabilities at least one of which is required to invoke this action.
    • scope

      Scope of the named capabilities.
      Default:
      CONTEXT
    • fallBackToAdmin

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