@ExportedBean public static class CredentialsStoreAction.DomainWrapper extends hudson.model.AbstractDescribableImpl<CredentialsStoreAction.DomainWrapper> implements jenkins.model.ModelObjectWithContextMenu, jenkins.model.ModelObjectWithChildren, hudson.security.AccessControlled
Domain instances into the web UI.| Modifier and Type | Class and Description |
|---|---|
static class |
CredentialsStoreAction.DomainWrapper.DescriptorImpl
Our Descriptor.
|
| Constructor and Description |
|---|
DomainWrapper(CredentialsStoreAction parent,
Domain domain)
Our constructor.
|
| 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) |
void |
doConfigDotXml(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Accepts config.xml submission, as well as serve it.
|
org.kohsuke.stapler.HttpResponse |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req)
Updates the domain configuration.
|
jenkins.model.ModelObjectWithContextMenu.ContextMenu |
doContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response) |
org.kohsuke.stapler.HttpResponse |
doCreateCredentials(org.kohsuke.stapler.StaplerRequest req)
Creates a credential.
|
org.kohsuke.stapler.HttpResponse |
doDoDelete(org.kohsuke.stapler.StaplerRequest req)
Deletes a domain.
|
hudson.security.ACL |
getACL() |
hudson.model.Api |
getApi()
Expose a Jenkins
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.
|
CredentialsStoreAction.CredentialsWrapper |
getCredential(String id)
Get a credential by id.
|
CredentialsStoreAction.CredentialsWrapper.DescriptorImpl |
getCredentialDescriptor()
Expose
CredentialsStoreAction.CredentialsWrapper.DescriptorImpl to Jelly. |
Map<String,CredentialsStoreAction.CredentialsWrapper> |
getCredentials()
Exposes a map of the wrapped credentials.
|
List<CredentialsStoreAction.CredentialsWrapper> |
getCredentialsList()
Exposes the wrapped credentials for the XML API.
|
String |
getDescription()
Expose the
Domain.getDescription(). |
String |
getDisplayName()
Return the display name.
|
Domain |
getDomain()
Expose the backing
Domain. |
String |
getFullDisplayName()
Return the full display name.
|
String |
getFullName()
Return the full name.
|
CredentialsStoreAction |
getParent()
Expose the parent
CredentialsStoreAction. |
CredentialsStore |
getStore()
Expose the backing
CredentialsStore. |
String |
getUrlName()
Return the URL name.
|
boolean |
hasPermission(hudson.security.Permission permission) |
boolean |
isGlobal()
Expose a flag to indicate that the wrapped domain is the global domain.
|
void |
updateByXml(Source source)
Updates a
Credentials by its XML definition. |
public DomainWrapper(CredentialsStoreAction parent, Domain domain)
parent - our parent action.domain - the domain we are wrapping.public hudson.model.Api getApi()
Api.Api.public CredentialsStore getStore()
CredentialsStore.CredentialsStore.public CredentialsStoreAction getParent()
CredentialsStoreAction.CredentialsStoreAction.@Exported public String getUrlName()
@Exported public String getDisplayName()
getDisplayName in interface hudson.model.ModelObject@Exported public final String getFullName()
@Exported public final String getFullDisplayName()
@Exported public String getDescription()
Domain.getDescription().Domain.getDescription().@Exported public boolean isGlobal()
true if and only if the wrapped domain is the global domain.public CredentialsStoreAction.CredentialsWrapper.DescriptorImpl getCredentialDescriptor()
CredentialsStoreAction.CredentialsWrapper.DescriptorImpl to Jelly.CredentialsStoreAction.CredentialsWrapper.DescriptorImpl singleton.@NonNull public Map<String,CredentialsStoreAction.CredentialsWrapper> getCredentials()
@NonNull
@Exported(name="credentials",
visibility=1)
public List<CredentialsStoreAction.CredentialsWrapper> getCredentialsList()
@CheckForNull public CredentialsStoreAction.CredentialsWrapper getCredential(String id)
id - the id.CredentialsStoreAction.CredentialsWrapper.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public org.kohsuke.stapler.HttpResponse doCreateCredentials(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.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public org.kohsuke.stapler.HttpResponse doConfigSubmit(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.@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.@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.ModelObjectWithChildrenException@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.