Class OAuthGlobalConfiguration
- java.lang.Object
-
- hudson.model.ManagementLink
-
- com.atlassian.bitbucket.jenkins.internal.jenkins.oauth.consumer.OAuthGlobalConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Action
,Describable<OAuthGlobalConfiguration>
,ModelObject
@Extension public class OAuthGlobalConfiguration extends ManagementLink implements Describable<OAuthGlobalConfiguration>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.ManagementLink
ManagementLink.Category
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
RELATIVE_PATH
-
Fields inherited from class hudson.model.ManagementLink
LIST
-
-
Constructor Summary
Constructors Constructor Description OAuthGlobalConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Action
getAuthorize(org.kohsuke.stapler.StaplerRequest req)
ManagementLink.Category
getCategory()
OAuthConsumerUpdateAction
getConsumer(String key)
Creates a new update action with the existing consumer matching a given key, that can be updatedCollection<OAuthConsumerEntry>
getConsumers()
OAuthConsumerCreateAction
getCreate()
Creates a new update action with an empty consumer that can be created and addedString
getDescription()
Descriptor<OAuthGlobalConfiguration>
getDescriptor()
String
getDisplayName()
String
getIconFileName()
String
getUrlName()
-
Methods inherited from class hudson.model.ManagementLink
all, getBadge, getCategoryName, getRequiredPermission, getRequiresConfirmation, getRequiresPOST
-
-
-
-
Field Detail
-
RELATIVE_PATH
public static final String RELATIVE_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getConsumers
public Collection<OAuthConsumerEntry> getConsumers()
-
getCreate
public OAuthConsumerCreateAction getCreate()
Creates a new update action with an empty consumer that can be created and added- Returns:
- a create action for a new consumer
-
getConsumer
public OAuthConsumerUpdateAction getConsumer(String key)
Creates a new update action with the existing consumer matching a given key, that can be updated- Parameters:
key
- the key of the existing consumer- Returns:
- an update action for an existing consumer
-
getAuthorize
public Action getAuthorize(org.kohsuke.stapler.StaplerRequest req) throws Descriptor.FormException
- Throws:
Descriptor.FormException
-
getCategory
@NonNull public ManagementLink.Category getCategory()
- Overrides:
getCategory
in classManagementLink
-
getDescriptor
public Descriptor<OAuthGlobalConfiguration> getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<OAuthGlobalConfiguration>
-
getIconFileName
@CheckForNull public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classManagementLink
-
getDisplayName
@CheckForNull public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
@CheckForNull public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
- Specified by:
getUrlName
in classManagementLink
-
getDescription
public String getDescription()
- Overrides:
getDescription
in classManagementLink
-
-