@ExportedBean public class ViewCredentialsAction extends Object implements hudson.model.Action, org.jenkins.ui.icon.IconSpec, hudson.security.AccessControlled, jenkins.model.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. |
| Modifier and Type | Field and Description |
|---|---|
static hudson.security.Permission |
VIEW
Expose
CredentialsProvider.VIEW for Jelly. |
| Constructor and Description |
|---|
ViewCredentialsAction(hudson.model.ModelObject context)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkPermission(hudson.security.Permission permission) |
jenkins.model.ModelObjectWithContextMenu.ContextMenu |
doContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response) |
hudson.security.ACL |
getACL() |
hudson.model.Api |
getApi()
Expose a Jenkins
Api. |
hudson.model.ModelObject |
getContext()
Gets the context.
|
String |
getContextFullDisplayName()
Returns the full display name of the
getContext(). |
String |
getContextFullName()
Returns the full name of the
getContext(). |
String |
getDisplayName() |
String |
getFullDisplayName()
Returns the full display name of this action.
|
String |
getFullName()
Returns the full name of this action.
|
String |
getIconClassName() |
String |
getIconFileName() |
List<CredentialsStore> |
getLocalStores()
Exposes the
CredentialsStore instances available to the getContext(). |
List<CredentialsStore> |
getParentStores()
Exposes the
CredentialsStore instances available to the getContext(). |
CredentialsStoreAction |
getStore(String name)
Exposes the
getStoreActions() by CredentialsStoreAction.getUrlName() for Stapler. |
List<CredentialsStoreAction> |
getStoreActions()
Exposes the
getLocalStores() CredentialsStore.getStoreAction(). |
Map<String,CredentialsStoreAction> |
getStoreActionsMap()
Exposes the
getLocalStores() for the XML API. |
String |
getStoreBaseUrl(String itUrl) |
List<ViewCredentialsAction.TableEntry> |
getTableEntries()
Returns the credential entries.
|
String |
getUrlName() |
boolean |
hasPermission(hudson.security.Permission permission) |
boolean |
isVisible()
Tests if the
ViewCredentialsAction should be visible. |
public static final hudson.security.Permission VIEW
CredentialsProvider.VIEW for Jelly.public ViewCredentialsAction(hudson.model.ModelObject context)
context - the context.public hudson.model.ModelObject getContext()
public String getIconFileName()
getIconFileName in interface hudson.model.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 nullpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getUrlName()
getUrlName in interface hudson.model.Actionpublic boolean isVisible()
ViewCredentialsAction should be visible.true if the action should be visible.public hudson.model.Api getApi()
Api.Api.public List<ViewCredentialsAction.TableEntry> getTableEntries()
public String getIconClassName()
getIconClassName in interface org.jenkins.ui.icon.IconSpecpublic final String getFullName()
public String getContextFullName()
getContext().getContext().public final String getFullDisplayName()
public String getContextFullDisplayName()
getContext().getContext().@Nonnull public hudson.security.ACL getACL()
getACL in interface hudson.security.AccessControlledpublic void checkPermission(@Nonnull hudson.security.Permission permission) throws org.acegisecurity.AccessDeniedException
checkPermission in interface hudson.security.AccessControlledorg.acegisecurity.AccessDeniedExceptionpublic boolean hasPermission(@Nonnull hudson.security.Permission permission)
hasPermission in interface hudson.security.AccessControlledCopyright © 2016–2017. All rights reserved.