Package org.jenkinsci.plugins
Class GithubAuthorizationStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<AuthorizationStrategy>
hudson.security.AuthorizationStrategy
org.jenkinsci.plugins.GithubAuthorizationStrategy
- All Implemented Interfaces:
ExtensionPoint
,Describable<AuthorizationStrategy>
- Author:
- mocleiri
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.security.AuthorizationStrategy
AuthorizationStrategy.Unsecured
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.security.AuthorizationStrategy
LIST, UNSECURED
-
Constructor Summary
ConstructorDescriptionGithubAuthorizationStrategy
(String adminUserNames, boolean authenticatedUserReadPermission, boolean useRepositoryPermissions, boolean authenticatedUserCreateJobPermission, String organizationNames, boolean allowGithubWebHookPermission, boolean allowCcTrayPermission, boolean allowAnonymousReadPermission, boolean allowAnonymousJobStatusPermission) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare an object against this instance for equivalence.getACL
(AbstractItem item) (non-Javadoc)int
hashCode()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setAgentUserName
(String agentUserName) Set the agent username.Methods inherited from class hudson.security.AuthorizationStrategy
all, getACL, getACL, getACL, getACL, getACL, getACL
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
GithubAuthorizationStrategy
@DataBoundConstructor public GithubAuthorizationStrategy(String adminUserNames, boolean authenticatedUserReadPermission, boolean useRepositoryPermissions, boolean authenticatedUserCreateJobPermission, String organizationNames, boolean allowGithubWebHookPermission, boolean allowCcTrayPermission, boolean allowAnonymousReadPermission, boolean allowAnonymousJobStatusPermission)
-
-
Method Details
-
getRootACL
- Specified by:
getRootACL
in classAuthorizationStrategy
-
getACL
- Overrides:
getACL
in classAuthorizationStrategy
-
getACL
- Overrides:
getACL
in classAuthorizationStrategy
-
getGroups
(non-Javadoc)- Specified by:
getGroups
in classAuthorizationStrategy
- Returns:
- groups
- See Also:
-
getOrganizationNames
- Returns:
- organizationNames
- See Also:
-
getAdminUserNames
- Returns:
- adminUserNames
- See Also:
-
setAgentUserName
Set the agent username. We use a setter instead of a constructor to make this an optional field to avoid a breaking change. -
getAgentUserName
- Returns:
- agentUserName
- See Also:
-
isUseRepositoryPermissions
public boolean isUseRepositoryPermissions()- Returns:
- isUseRepositoryPermissions
- See Also:
-
isAuthenticatedUserCreateJobPermission
public boolean isAuthenticatedUserCreateJobPermission()- Returns:
- isAuthenticatedUserCreateJobPermission
- See Also:
-
isAuthenticatedUserReadPermission
public boolean isAuthenticatedUserReadPermission()- Returns:
- isAuthenticatedUserReadPermission
- See Also:
-
isAllowGithubWebHookPermission
public boolean isAllowGithubWebHookPermission()- Returns:
- isAllowGithubWebHookPermission
- See Also:
-
isAllowCcTrayPermission
public boolean isAllowCcTrayPermission()- Returns:
- isAllowCcTrayPermission
- See Also:
-
isAllowAnonymousReadPermission
public boolean isAllowAnonymousReadPermission()- Returns:
- isAllowAnonymousReadPermission
- See Also:
-
isAllowAnonymousJobStatusPermission
public boolean isAllowAnonymousJobStatusPermission()- Returns:
- isAllowAnonymousJobStatusPermission
- See Also:
-
equals
Compare an object against this instance for equivalence. -
hashCode
public int hashCode()
-