@ExportedBean public static class CredentialsStoreAction.CredentialsWrapper extends AbstractDescribableImpl<CredentialsStoreAction.CredentialsWrapper> implements IconSpec, ModelObjectWithContextMenu, AccessControlled
Credentials
instances into the web UI.Modifier and Type | Class and Description |
---|---|
static class |
CredentialsStoreAction.CredentialsWrapper.DescriptorImpl
Our
Descriptor . |
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
Constructor and Description |
---|
CredentialsWrapper(CredentialsStoreAction.DomainWrapper domain,
Credentials credentials,
String id)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
checkPermission(Permission permission) |
void |
doConfigDotXml(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Accepts config.xml submission, as well as serve it.
|
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.
|
ACL |
getACL() |
Api |
getApi()
Expose a Jenkins
Api . |
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 . |
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(Permission permission) |
boolean |
isFingerprintEnabled() |
void |
updateByXml(Source source)
Updates a
Credentials by its XML definition. |
getDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAnyPermission, hasAnyPermission, hasPermission
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 IconSpec
@Exported public String getDisplayName()
Credentials
.getDisplayName
in interface ModelObject
Credentials
.@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 Fingerprint getFingerprint() throws IOException
Fingerprint
.IOException
- if the Fingerprint
could not be retrieved.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isFingerprintEnabled()
@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 ModelObjectWithContextMenu.ContextMenu getContextMenu(String prefix)
prefix
- the prefix to prepend to relative urls.ContextMenu
or null
public ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
doContextMenu
in interface ModelObjectWithContextMenu
Exception
@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 ACL getACL()
getACL
in interface AccessControlled
public void checkPermission(@Nonnull Permission permission) throws AccessDeniedException
checkPermission
in interface AccessControlled
AccessDeniedException
public boolean hasPermission(@Nonnull Permission permission)
hasPermission
in interface AccessControlled
Copyright © 2016–2021. All rights reserved.