@ExportedBean public class ViewCredentialsAction extends Object implements Action, IconSpec, AccessControlled, ModelObjectWithContextMenu
Action
that lets you view the available credentials for any ModelObject
.Modifier and Type | Class and Description |
---|---|
static class |
ViewCredentialsAction.RootActionImpl
Add the
ViewCredentialsAction to the Jenkins root. |
static class |
ViewCredentialsAction.TableEntry
Value class to simplify creating the table.
|
static class |
ViewCredentialsAction.TransientTopLevelItemActionFactoryImpl
Add the
ViewCredentialsAction to all TopLevelItem instances. |
static class |
ViewCredentialsAction.TransientUserActionFactoryImpl
Add the
ViewCredentialsAction to all User instances. |
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
Modifier and Type | Field and Description |
---|---|
static Permission |
MANAGE_DOMAINS
Expose
CredentialsProvider.MANAGE_DOMAINS for Jelly. |
static Permission |
VIEW
Expose
CredentialsProvider.VIEW for Jelly. |
Constructor and Description |
---|
ViewCredentialsAction(ModelObject context)
Constructor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission
public static final Permission VIEW
CredentialsProvider.VIEW
for Jelly.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static final Permission MANAGE_DOMAINS
CredentialsProvider.MANAGE_DOMAINS
for Jelly.public ViewCredentialsAction(ModelObject context)
context
- the context.public ModelObject getContext()
public String getIconFileName()
getIconFileName
in interface Action
@NonNull public List<CredentialsStore> getParentStores()
CredentialsStore
instances available to the getContext()
.CredentialsStore
instances available to the getContext()
.@NonNull public List<CredentialsStore> getLocalStores()
CredentialsStore
instances available to the getContext()
.CredentialsStore
instances available to the getContext()
.@NonNull public List<CredentialsStoreAction> getStoreActions()
getLocalStores()
CredentialsStore.getStoreAction()
.getLocalStores()
CredentialsStore.getStoreAction()
.@NonNull @Exported(name="stores") public Map<String,CredentialsStoreAction> getStoreActionsMap()
getLocalStores()
for the XML API.getLocalStores()
for the XML API.@CheckForNull public CredentialsStoreAction getStore(String name)
getStoreActions()
by CredentialsStoreAction.getUrlName()
for Stapler.name
- the CredentialsStoreAction.getUrlName()
to match.CredentialsStoreAction
or null
public String getDisplayName()
getDisplayName
in interface Action
getDisplayName
in interface ModelObject
public String getUrlName()
getUrlName
in interface Action
public boolean isVisible()
ViewCredentialsAction
should be visible.true
if the action should be visible.public List<ViewCredentialsAction.TableEntry> getTableEntries()
public String getIconClassName()
getIconClassName
in interface IconSpec
public final String getFullName()
public String getContextFullName()
getContext()
.getContext()
.public final String getFullDisplayName()
public String getContextFullDisplayName()
getContext()
.getContext()
.@Nonnull public ACL getACL()
getACL
in interface AccessControlled
public ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
doContextMenu
in interface ModelObjectWithContextMenu
Exception
Copyright © 2016–2021. All rights reserved.