Class ViewCredentialsAction
java.lang.Object
com.cloudbees.plugins.credentials.ViewCredentialsAction
- All Implemented Interfaces:
Action
,ModelObject
,AccessControlled
,ModelObjectWithContextMenu
,IconSpec
- Direct Known Subclasses:
ViewCredentialsAction.RootActionImpl
@ExportedBean
public class ViewCredentialsAction
extends Object
implements Action, IconSpec, AccessControlled, ModelObjectWithContextMenu
An
Action
that lets you view the available credentials for any ModelObject
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Add theViewCredentialsAction
to theJenkins
root.static class
Value class to simplify creating the table.static class
Add theViewCredentialsAction
to allTopLevelItem
instances.static class
Add theViewCredentialsAction
to allUser
instances.Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Permission
ExposeCredentialsProvider.MANAGE_DOMAINS
for Jelly.static final Permission
ExposeCredentialsProvider.VIEW
for Jelly. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoContextMenu
(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response) getACL()
getApi()
Expose a JenkinsApi
.Gets the context.Returns the full display name of thegetContext()
.Returns the full name of thegetContext()
.final String
Returns the full display name of this action.final String
Returns the full name of this action.Exposes theCredentialsStore
instances available to thegetContext()
.Exposes theCredentialsStore
instances available to thegetContext()
.Exposes thegetStoreActions()
byCredentialsStoreAction.getUrlName()
for Stapler.Exposes thegetLocalStores()
CredentialsStore.getStoreAction()
.Exposes thegetLocalStores()
for the XML API.getStoreBaseUrl
(String itUrl) Returns the credential entries.boolean
Tests if theViewCredentialsAction
should be visible.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
Methods inherited from interface jenkins.model.ModelObjectWithContextMenu
doContextMenu
-
Field Details
-
VIEW
ExposeCredentialsProvider.VIEW
for Jelly. -
MANAGE_DOMAINS
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static final Permission MANAGE_DOMAINSExposeCredentialsProvider.MANAGE_DOMAINS
for Jelly.
-
-
Constructor Details
-
ViewCredentialsAction
Constructor.- Parameters:
context
- the context.
-
-
Method Details
-
getContext
Gets the context.- Returns:
- the context.
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getParentStores
Exposes theCredentialsStore
instances available to thegetContext()
.- Returns:
- the
CredentialsStore
instances available to thegetContext()
.
-
getLocalStores
Exposes theCredentialsStore
instances available to thegetContext()
.- Returns:
- the
CredentialsStore
instances available to thegetContext()
.
-
getStoreActions
Exposes thegetLocalStores()
CredentialsStore.getStoreAction()
.- Returns:
- the
getLocalStores()
CredentialsStore.getStoreAction()
.
-
getStoreActionsMap
Exposes thegetLocalStores()
for the XML API.- Returns:
- the
getLocalStores()
for the XML API. - Since:
- 2.1.0
-
getStore
Exposes thegetStoreActions()
byCredentialsStoreAction.getUrlName()
for Stapler.- Parameters:
name
- theCredentialsStoreAction.getUrlName()
to match.- Returns:
- the
CredentialsStoreAction
ornull
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
getStoreBaseUrl
-
isVisible
public boolean isVisible()Tests if theViewCredentialsAction
should be visible.- Returns:
true
if the action should be visible.
-
getApi
Expose a JenkinsApi
.- Returns:
- the
Api
.
-
getTableEntries
Returns the credential entries.- Returns:
- the credential entries.
-
getIconClassName
- Specified by:
getIconClassName
in interfaceIconSpec
-
getFullName
Returns the full name of this action.- Returns:
- the full name of this action.
-
getContextFullName
Returns the full name of thegetContext()
.- Returns:
- the full name of the
getContext()
.
-
getFullDisplayName
Returns the full display name of this action.- Returns:
- the full display name of this action.
-
getContextFullDisplayName
Returns the full display name of thegetContext()
.- Returns:
- the full display name of the
getContext()
.
-
getACL
- Specified by:
getACL
in interfaceAccessControlled
-
doContextMenu
public ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response) - Specified by:
doContextMenu
in interfaceModelObjectWithContextMenu
-