Annotation Type 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
      String[] value
      Capabilities at least one of which is required to invoke this action.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean fallBackToAdmin
      Fall back to admin credentials.
      CapabilityScope scope
      Scope of the named capabilities.
    • Element Detail

      • value

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

        CapabilityScope scope
        Scope of the named capabilities.
        Default:
        com.google.gerrit.extensions.annotations.CapabilityScope.CONTEXT
      • fallBackToAdmin

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