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 ClassesNested classes/interfaces inherited from class hudson.security.AuthorizationStrategy
AuthorizationStrategy.UnsecuredNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.security.AuthorizationStrategy
LIST, UNSECURED -
Constructor Summary
ConstructorsConstructorDescriptionGithubAuthorizationStrategy(String adminUserNames, boolean authenticatedUserReadPermission, boolean useRepositoryPermissions, boolean authenticatedUserCreateJobPermission, String organizationNames, boolean allowGithubWebHookPermission, boolean allowCcTrayPermission, boolean allowAnonymousReadPermission, boolean allowAnonymousJobStatusPermission) -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare an object against this instance for equivalence.getACL(AbstractItem item) (non-Javadoc)inthashCode()booleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAgentUserName(String agentUserName) Set the agent username.Methods inherited from class hudson.security.AuthorizationStrategy
all, getACL, getACL, getACL, getACL, getACL, getACLMethods 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:
getRootACLin classAuthorizationStrategy
-
getACL
- Overrides:
getACLin classAuthorizationStrategy
-
getACL
- Overrides:
getACLin classAuthorizationStrategy
-
getGroups
(non-Javadoc)- Specified by:
getGroupsin 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()
-