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 classAdd theViewCredentialsActionto theJenkinsroot.static classValue class to simplify creating the table.static classAdd theViewCredentialsActionto allTopLevelIteminstances.static classAdd theViewCredentialsActionto allUserinstances.Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PermissionExposeCredentialsProvider.MANAGE_DOMAINSfor Jelly.static final PermissionExposeCredentialsProvider.VIEWfor 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 StringReturns the full display name of this action.final StringReturns the full name of this action.Exposes theCredentialsStoreinstances available to thegetContext().Exposes theCredentialsStoreinstances 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.booleanTests if theViewCredentialsActionshould be visible.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface jenkins.model.ModelObjectWithContextMenu
doContextMenu
-
Field Details
-
VIEW
ExposeCredentialsProvider.VIEWfor Jelly. -
MANAGE_DOMAINS
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static final Permission MANAGE_DOMAINSExposeCredentialsProvider.MANAGE_DOMAINSfor Jelly.
-
-
Constructor Details
-
ViewCredentialsAction
Constructor.- Parameters:
context- the context.
-
-
Method Details
-
getContext
Gets the context.- Returns:
- the context.
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getParentStores
Exposes theCredentialsStoreinstances available to thegetContext().- Returns:
- the
CredentialsStoreinstances available to thegetContext().
-
getLocalStores
Exposes theCredentialsStoreinstances available to thegetContext().- Returns:
- the
CredentialsStoreinstances 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
CredentialsStoreActionornull
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getStoreBaseUrl
-
isVisible
public boolean isVisible()Tests if theViewCredentialsActionshould be visible.- Returns:
trueif the action should be visible.
-
getApi
Expose a JenkinsApi.- Returns:
- the
Api.
-
getTableEntries
Returns the credential entries.- Returns:
- the credential entries.
-
getIconClassName
- Specified by:
getIconClassNamein 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:
getACLin interfaceAccessControlled
-
doContextMenu
public ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response) - Specified by:
doContextMenuin interfaceModelObjectWithContextMenu
-