Class RepositoryAccessStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<RepositoryAccessStrategy>
org.jenkinsci.plugins.github_branch_source.app_credentials.RepositoryAccessStrategy
- All Implemented Interfaces:
Describable<RepositoryAccessStrategy>,Serializable
- Direct Known Subclasses:
AccessInferredOwner,AccessInferredRepository,AccessSpecifiedRepositories
public abstract class RepositoryAccessStrategy
extends AbstractDescribableImpl<RepositoryAccessStrategy>
implements Serializable
Controls the repositories available to installation access tokens generated by
GitHubAppCredentials.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AccessibleRepositoriesforContext(GitHubAppUsageContext context) Get theAccessibleRepositoriesto use when generating installation access tokens for the inferred contextual owner and repository.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
RepositoryAccessStrategy
public RepositoryAccessStrategy()
-
-
Method Details
-
forContext
Get theAccessibleRepositoriesto use when generating installation access tokens for the inferred contextual owner and repository.Called when the credential is used in a context where an owner and repository can be inferred.
- Returns:
nullif the accessible repositories are unknown, or if no repositories are accessible in the specified context
-