Class AuthorizeProjectProperty.AuthorizationAction
java.lang.Object
org.jenkinsci.plugins.authorizeproject.AuthorizeProjectProperty.AuthorizationAction
- All Implemented Interfaces:
Action
,ModelObject
,IconSpec
- Enclosing class:
- AuthorizeProjectProperty
public static class AuthorizeProjectProperty.AuthorizationAction
extends Object
implements Action, IconSpec
The action that allows configuring a jobs authorization.
- Since:
- 1.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponse
doAuthorize
(org.kohsuke.stapler.StaplerRequest2 req) Handles the submission of the authorization configuration.Job<?,
?> getJob()
Gets theAuthorizeProjectProperty
.
-
Constructor Details
-
AuthorizationAction
Constructor.- Parameters:
job
- the job.
-
-
Method Details
-
getProperty
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public AuthorizeProjectProperty getProperty()Gets theAuthorizeProjectProperty
.- Returns:
- the
AuthorizeProjectProperty
.
-
getPropertyDescriptor
- Returns:
- the
AuthorizeProjectProperty.DescriptorImpl
-
getJob
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
getIconClassName
- Specified by:
getIconClassName
in interfaceIconSpec
-
doAuthorize
@NonNull @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public org.kohsuke.stapler.HttpResponse doAuthorize(@NonNull org.kohsuke.stapler.StaplerRequest2 req) throws IOException, jakarta.servlet.ServletException Handles the submission of the authorization configuration.- Parameters:
req
- the request.- Returns:
- the response.
- Throws:
IOException
- when things go wrong.jakarta.servlet.ServletException
- when things go wrong.
-