@ExportedBean public abstract class CredentialsStoreAction extends Object implements hudson.model.Action, org.jenkins.ui.icon.IconSpec, hudson.security.AccessControlled, jenkins.model.ModelObjectWithContextMenu, jenkins.model.ModelObjectWithChildren
CredentialsStore| Modifier and Type | Class and Description |
|---|---|
static class |
CredentialsStoreAction.CredentialsWrapper
A wrapper object to bind and expose
Credentials instances into the web UI. |
static class |
CredentialsStoreAction.DomainWrapper
A wrapper object to bind and expose
Domain instances into the web UI. |
| Modifier and Type | Field and Description |
|---|---|
static hudson.security.Permission |
CREATE
Expose
CredentialsProvider.CREATE for Jelly. |
static hudson.security.Permission |
DELETE
Expose
CredentialsProvider.DELETE for Jelly. |
static hudson.util.XStream2 |
FINGERPRINT_XML
An
XStream2 that replaces Secret and SecretBytes instances with a hash of the secret and
omits fields that should be excluded from credentials fingerprinting. |
static hudson.security.Permission |
MANAGE_DOMAINS
Expose
CredentialsProvider.MANAGE_DOMAINS for Jelly. |
static hudson.util.XStream2 |
SECRETS_REDACTED
|
static hudson.security.Permission |
UPDATE
Expose
CredentialsProvider.UPDATE for Jelly. |
static hudson.security.Permission |
VIEW
Expose
CredentialsProvider.VIEW for Jelly. |
| Constructor and Description |
|---|
CredentialsStoreAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkPermission(hudson.security.Permission permission) |
jenkins.model.ModelObjectWithContextMenu.ContextMenu |
doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response) |
jenkins.model.ModelObjectWithContextMenu.ContextMenu |
doContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response) |
org.kohsuke.stapler.HttpResponse |
doCreateDomain(org.kohsuke.stapler.StaplerRequest req)
Creates a domain.
|
hudson.security.ACL |
getACL() |
List<hudson.model.Action> |
getActions()
Any additional actions to display for this
CredentialsStore. |
hudson.model.Api |
getApi()
Expose the action's
Api. |
jenkins.model.ModelObjectWithContextMenu.ContextMenu |
getChildrenContextMenu(String prefix)
Creates the children context menu with the supplied prefix to all URLs.
|
jenkins.model.ModelObjectWithContextMenu.ContextMenu |
getContextMenu(String prefix)
Creates the context menu with the supplied prefix to all URLs.
|
String |
getDisplayName() |
CredentialsStoreAction.DomainWrapper |
getDomain(String name)
Gets the named
CredentialsStoreAction.DomainWrapper. |
CredentialsStoreAction.DomainWrapper.DescriptorImpl |
getDomainDescriptor()
Exposes
CredentialsStoreAction.DomainWrapper.DescriptorImpl for Jelly. |
Map<String,CredentialsStoreAction.DomainWrapper> |
getDomains()
Returns the map of
CredentialsStoreAction.DomainWrapper instances. |
Object |
getDynamic(String token)
Exposes the
getActions() for Stapler. |
String |
getFullDisplayName()
Returns the
Item.getFullDisplayName() or nearest approximation. |
String |
getFullName()
Returns the
Item.getFullName() or nearest approximation. |
String |
getIconClassName() |
String |
getIconFileName() |
hudson.DescriptorExtensionList<DomainSpecification,hudson.model.Descriptor<DomainSpecification>> |
getSpecificationDescriptors()
Gets all the
DomainSpecification descriptors. |
abstract CredentialsStore |
getStore()
Returns the
CredentialsStore backing this action. |
String |
getUrlName() |
boolean |
hasPermission(hudson.security.Permission permission) |
boolean |
isDomainsModifiable()
Exposes
CredentialsStore.isDomainsModifiable() for Jelly. |
boolean |
isVisible()
Checks if this action should be visible.
|
public static final hudson.security.Permission VIEW
CredentialsProvider.VIEW for Jelly.public static final hudson.security.Permission CREATE
CredentialsProvider.CREATE for Jelly.public static final hudson.security.Permission UPDATE
CredentialsProvider.UPDATE for Jelly.public static final hudson.security.Permission DELETE
CredentialsProvider.DELETE for Jelly.public static final hudson.security.Permission MANAGE_DOMAINS
CredentialsProvider.MANAGE_DOMAINS for Jelly.public static final hudson.util.XStream2 SECRETS_REDACTED
public static final hudson.util.XStream2 FINGERPRINT_XML
XStream2 that replaces Secret and SecretBytes instances with a hash of the secret and
omits fields that should be excluded from credentials fingerprinting.@NonNull public abstract CredentialsStore getStore()
CredentialsStore backing this action.CredentialsStore.public String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObject@NonNull public List<hudson.model.Action> getActions()
CredentialsStore.CredentialsStore.@CheckForNull public Object getDynamic(String token)
getActions() for Stapler.token - the name of the action.Action or null@CheckForNull public jenkins.model.ModelObjectWithContextMenu.ContextMenu getContextMenu(String prefix)
prefix - the prefix to prepend to relative urls.ContextMenu or null@CheckForNull public jenkins.model.ModelObjectWithContextMenu.ContextMenu getChildrenContextMenu(String prefix)
prefix - the prefix to prepend to relative urls.ContextMenu or nullpublic jenkins.model.ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws Exception
doContextMenu in interface jenkins.model.ModelObjectWithContextMenuExceptionpublic jenkins.model.ModelObjectWithContextMenu.ContextMenu doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws Exception
doChildrenContextMenu in interface jenkins.model.ModelObjectWithChildrenExceptionpublic String getUrlName()
getUrlName in interface hudson.model.Actionpublic hudson.model.Api getApi()
Api.Api.public boolean isVisible()
true if the action should be visible.public String getIconClassName()
getIconClassName in interface org.jenkins.ui.icon.IconSpecpublic final String getFullName()
Item.getFullName() or nearest approximation.Item.getFullName() or nearest approximation.public final String getFullDisplayName()
Item.getFullDisplayName() or nearest approximation.Item.getFullDisplayName() or nearest approximation.@Exported @NonNull public Map<String,CredentialsStoreAction.DomainWrapper> getDomains()
CredentialsStoreAction.DomainWrapper instances.CredentialsStoreAction.DomainWrapper instances.@CheckForNull public CredentialsStoreAction.DomainWrapper getDomain(String name)
CredentialsStoreAction.DomainWrapper.name - the name.CredentialsStoreAction.DomainWrapper.public boolean isDomainsModifiable()
CredentialsStore.isDomainsModifiable() for Jelly.CredentialsStore.isDomainsModifiable().public CredentialsStoreAction.DomainWrapper.DescriptorImpl getDomainDescriptor()
CredentialsStoreAction.DomainWrapper.DescriptorImpl for Jelly.public hudson.DescriptorExtensionList<DomainSpecification,hudson.model.Descriptor<DomainSpecification>> getSpecificationDescriptors()
DomainSpecification descriptors.DomainSpecification descriptors.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public org.kohsuke.stapler.HttpResponse doCreateDomain(org.kohsuke.stapler.StaplerRequest req)
throws javax.servlet.ServletException,
IOException
req - the request.javax.servlet.ServletException - if something goes wrong.IOException - if something goes wrong.@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–2018. All rights reserved.