Class OAuthConsumerUpdateAction
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<OAuthConsumerUpdateAction>
-
- com.atlassian.bitbucket.jenkins.internal.jenkins.oauth.consumer.OAuthConsumerUpdateAction
-
- All Implemented Interfaces:
Action
,Describable<OAuthConsumerUpdateAction>
,ModelObject
,ModelObjectWithContextMenu
public class OAuthConsumerUpdateAction extends AbstractDescribableImpl<OAuthConsumerUpdateAction> implements Action, ModelObjectWithContextMenu
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
-
Constructor Summary
Constructors Constructor Description OAuthConsumerUpdateAction(String consumerKey, ServiceProviderConsumerStore consumerStore, ServiceProviderTokenStore tokenStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelObjectWithContextMenu.ContextMenu
doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
org.kohsuke.stapler.HttpResponse
doPerformDelete(org.kohsuke.stapler.StaplerRequest req)
org.kohsuke.stapler.HttpResponse
doPerformUpdate(org.kohsuke.stapler.StaplerRequest req)
String
getAccessTokenUrl()
String
getAuthorizeUrl()
OAuthConsumerEntry.OAuthConsumerEntryDescriptor
getConsumerDescriptor()
OAuthConsumerEntry
getConsumerEntry()
String
getConsumerKey()
String
getDisplayName()
String
getIconFileName()
String
getJenkinsBaseUrl()
String
getRequestTokenUrl()
String
getUrlName()
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
OAuthConsumerUpdateAction
public OAuthConsumerUpdateAction(String consumerKey, ServiceProviderConsumerStore consumerStore, ServiceProviderTokenStore tokenStore)
-
-
Method Detail
-
doContextMenu
public ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
- Specified by:
doContextMenu
in interfaceModelObjectWithContextMenu
- Throws:
Exception
-
doPerformDelete
public org.kohsuke.stapler.HttpResponse doPerformDelete(org.kohsuke.stapler.StaplerRequest req)
-
doPerformUpdate
public org.kohsuke.stapler.HttpResponse doPerformUpdate(org.kohsuke.stapler.StaplerRequest req) throws javax.servlet.ServletException, URISyntaxException, Descriptor.FormException
- Throws:
javax.servlet.ServletException
URISyntaxException
Descriptor.FormException
-
getConsumerDescriptor
@Nullable public OAuthConsumerEntry.OAuthConsumerEntryDescriptor getConsumerDescriptor()
-
getConsumerEntry
@CheckForNull public OAuthConsumerEntry getConsumerEntry()
-
getConsumerKey
public String getConsumerKey()
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getJenkinsBaseUrl
public String getJenkinsBaseUrl()
-
getRequestTokenUrl
public String getRequestTokenUrl() throws URISyntaxException
- Throws:
URISyntaxException
-
getAccessTokenUrl
public String getAccessTokenUrl() throws URISyntaxException
- Throws:
URISyntaxException
-
getAuthorizeUrl
public String getAuthorizeUrl() throws URISyntaxException
- Throws:
URISyntaxException
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
-