Class AccessInferredOwner
java.lang.Object
hudson.model.AbstractDescribableImpl<RepositoryAccessStrategy>
org.jenkinsci.plugins.github_branch_source.app_credentials.RepositoryAccessStrategy
org.jenkinsci.plugins.github_branch_source.app_credentials.AccessInferredOwner
- All Implemented Interfaces:
Describable<RepositoryAccessStrategy>
,Serializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.jenkinsci.plugins.github_branch_source.app_credentials.RepositoryAccessStrategy
RepositoryAccessStrategy.RepositoryAccessStrategyDescriptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforContext
(GitHubAppUsageContext context) Get theAccessibleRepositories
to use when generating installation access tokens for the inferred contextual owner and repository.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
AccessInferredOwner
@DataBoundConstructor public AccessInferredOwner()
-
-
Method Details
-
forContext
Description copied from class:RepositoryAccessStrategy
Get theAccessibleRepositories
to 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.
- Specified by:
forContext
in classRepositoryAccessStrategy
- Returns:
null
if the accessible repositories are unknown, or if no repositories are accessible in the specified context
-