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 Constructor Description AuthorizationAction(Job<?,?> job)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kohsuke.stapler.HttpResponse
doAuthorize(org.kohsuke.stapler.StaplerRequest req)
Handles the submission of the authorization configuration.String
getDisplayName()
String
getIconClassName()
String
getIconFileName()
Job<?,?>
getJob()
AuthorizeProjectProperty
getProperty()
Gets theAuthorizeProjectProperty
.AuthorizeProjectProperty.DescriptorImpl
getPropertyDescriptor()
String
getUrlName()
-
-
-
Constructor Detail
-
AuthorizationAction
public AuthorizationAction(@NonNull Job<?,?> job)
Constructor.- Parameters:
job
- the job.
-
-
Method Detail
-
getProperty
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public AuthorizeProjectProperty getProperty()
Gets theAuthorizeProjectProperty
.- Returns:
- the
AuthorizeProjectProperty
.
-
getPropertyDescriptor
public AuthorizeProjectProperty.DescriptorImpl getPropertyDescriptor()
- Returns:
- the
AuthorizeProjectProperty.DescriptorImpl
-
getJob
@NonNull public Job<?,?> getJob()
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
getIconClassName
public String 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.StaplerRequest req) throws IOException, javax.servlet.ServletException
Handles the submission of the authorization configuration.- Parameters:
req
- the request.- Returns:
- the response.
- Throws:
IOException
- when things go wrong.javax.servlet.ServletException
- when things go wrong.
-
-