Annotation Type 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
      String value
      Name of the capability 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 capability.
    • Element Detail

      • value

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

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

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