@ExportedBean public static class CredentialsStoreAction.CredentialsWrapper extends hudson.model.AbstractDescribableImpl<CredentialsStoreAction.CredentialsWrapper> implements org.jenkins.ui.icon.IconSpec, jenkins.model.ModelObjectWithContextMenu, hudson.security.AccessControlled
Credentials instances into the web UI.| Modifier and Type | Class and Description |
|---|---|
static class |
CredentialsStoreAction.CredentialsWrapper.DescriptorImpl
Our
Descriptor. |
| Constructor and Description |
|---|
CredentialsWrapper(CredentialsStoreAction.DomainWrapper domain,
Credentials credentials,
String id)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkPermission(hudson.security.Permission permission) |
void |
doConfigDotXml(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Accepts config.xml submission, as well as serve it.
|
jenkins.model.ModelObjectWithContextMenu.ContextMenu |
doContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response) |
org.kohsuke.stapler.HttpResponse |
doDoDelete(org.kohsuke.stapler.StaplerRequest req)
Deletes the credentials.
|
org.kohsuke.stapler.HttpResponse |
doDoMove(org.kohsuke.stapler.StaplerRequest req,
String destination)
Moves the credential.
|
org.kohsuke.stapler.HttpResponse |
doUpdateSubmit(org.kohsuke.stapler.StaplerRequest req)
Updates the credentials.
|
hudson.security.ACL |
getACL() |
hudson.model.Api |
getApi()
Expose a Jenkins
Api. |
jenkins.model.ModelObjectWithContextMenu.ContextMenu |
getContextMenu(String prefix)
Creates the context menu with the supplied prefix to all URLs.
|
Credentials |
getCredentials()
Exposes the backing
Credentials. |
String |
getDescription()
Gets the description of the
Credentials. |
String |
getDisplayName()
Gets the display name of the
Credentials. |
CredentialsStoreAction.DomainWrapper |
getDomain()
Exposes the backing
CredentialsStoreAction.DomainWrapper. |
hudson.model.Fingerprint |
getFingerprint()
Exposes the fingerprint for Jelly pages.
|
String |
getFullDisplayName()
Gets the full display name of the
Credentials. |
String |
getFullName()
Gets the full name of the
Credentials. |
String |
getIconClassName() |
String |
getId()
Return the id for the XML API.
|
CredentialsStoreAction.DomainWrapper |
getParent()
Exposes the backing
CredentialsStoreAction.DomainWrapper. |
CredentialsStore |
getStore()
Exposes the backing
CredentialsStore. |
String |
getTypeName()
Gets the display name of the
CredentialsDescriptor. |
String |
getUrlName()
Return the URL name.
|
boolean |
hasPermission(hudson.security.Permission permission) |
void |
updateByXml(Source source)
Updates a
Credentials by its XML definition. |
public CredentialsWrapper(CredentialsStoreAction.DomainWrapper domain, Credentials credentials, String id)
domain - the wrapped domain.credentials - the credentials.id - the id.@Exported public String getId()
public String getUrlName()
public String getIconClassName()
getIconClassName in interface org.jenkins.ui.icon.IconSpecpublic hudson.model.Api getApi()
Api.Api.@Exported public String getDisplayName()
Credentials.getDisplayName in interface hudson.model.ModelObjectCredentials.@Exported public String getTypeName()
CredentialsDescriptor.CredentialsDescriptor.@Exported public String getDescription()
Credentials.Credentials.@Exported public final String getFullName()
Credentials.Credentials.public final String getFullDisplayName()
Credentials.Credentials.public Credentials getCredentials()
Credentials.Credentials.public CredentialsStoreAction.DomainWrapper getDomain()
CredentialsStoreAction.DomainWrapper.CredentialsStoreAction.DomainWrapper.public CredentialsStoreAction.DomainWrapper getParent()
CredentialsStoreAction.DomainWrapper.CredentialsStoreAction.DomainWrapper.public CredentialsStore getStore()
CredentialsStore.CredentialsStore.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
@Exported(visibility=1)
public hudson.model.Fingerprint getFingerprint()
throws IOException
Fingerprint.IOException - if the Fingerprint could not be retrieved.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public org.kohsuke.stapler.HttpResponse doDoDelete(org.kohsuke.stapler.StaplerRequest req)
throws IOException
req - the request.IOException - if something goes wrong.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public org.kohsuke.stapler.HttpResponse doDoMove(org.kohsuke.stapler.StaplerRequest req,
@QueryParameter
String destination)
throws IOException
req - the request.destination - the destinationIOException - if something goes wrong.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public org.kohsuke.stapler.HttpResponse doUpdateSubmit(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.@CheckForNull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public jenkins.model.ModelObjectWithContextMenu.ContextMenu getContextMenu(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.ModelObjectWithContextMenuException@WebMethod(name="config.xml")
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doConfigDotXml(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - the requestrsp - the responseIOException - if things go wrong@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public void updateByXml(Source source) throws IOException
Credentials by its XML definition.source - source of the Item's new definition.
The source should be either a StreamSource or a SAXSource, other
sources may not be handled.IOException - if things go 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.