Class AccessibleRepositories

java.lang.Object
org.jenkinsci.plugins.github_branch_source.app_credentials.AccessibleRepositories

public class AccessibleRepositories extends Object
Specify a set of repositories that should be accessible.
  • Constructor Details

    • AccessibleRepositories

      public AccessibleRepositories(@CheckForNull String owner, @NonNull List<String> repositories)
      Constructor.
      Parameters:
      owner - if null, then the credential may only be used if the app is installed in a single organization, otherwise only the specified owner can be accessed
      repositories - the names of the repositories that should be accessible, or empty list to access all repositories
    • AccessibleRepositories

      public AccessibleRepositories(@CheckForNull String owner)
      Constructor.
      Parameters:
      owner - if null, then the credential may only be used if the app is installed in a single organization, otherwise only the specified owner can be accessed
    • AccessibleRepositories

      public AccessibleRepositories(@CheckForNull String owner, @NonNull String repository)
      Constructor.
      Parameters:
      owner - if null, then the credential may only be used if the app is installed in a single organization, otherwise only the specified owner can be accessed
      repository - the name of the repository that should be accessible
  • Method Details

    • getOwner

      @CheckForNull public String getOwner()
    • getRepositories

      @NonNull public List<String> getRepositories()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object