@ExportedBean public static class CredentialsStoreAction.DomainWrapper extends AbstractDescribableImpl<CredentialsStoreAction.DomainWrapper> implements ModelObjectWithContextMenu, ModelObjectWithChildren, AccessControlled
Domain
instances into the web UI.Modifier and Type | Class and Description |
---|---|
static class |
CredentialsStoreAction.DomainWrapper.DescriptorImpl
Our Descriptor.
|
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
Constructor and Description |
---|
DomainWrapper(CredentialsStoreAction parent,
Domain domain)
Our constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
checkPermission(Permission permission) |
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.
|
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.
|
ACL |
getACL() |
Api |
getApi()
Expose a Jenkins
Api . |
ModelObjectWithContextMenu.ContextMenu |
getChildrenContextMenu(String prefix)
Creates the children context menu with the supplied prefix to all URLs.
|
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(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. |
getDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAnyPermission, hasAnyPermission, hasPermission
public DomainWrapper(CredentialsStoreAction parent, Domain domain)
parent
- our parent action.domain
- the domain we are wrapping.public CredentialsStore getStore()
CredentialsStore
.CredentialsStore
.public CredentialsStoreAction getParent()
CredentialsStoreAction
.CredentialsStoreAction
.@Exported public String getUrlName()
@Exported public String getDisplayName()
getDisplayName
in interface 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 ModelObjectWithContextMenu.ContextMenu getContextMenu(String prefix)
prefix
- the prefix to prepend to relative urls.ContextMenu
or null
@CheckForNull public ModelObjectWithContextMenu.ContextMenu getChildrenContextMenu(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
public ModelObjectWithContextMenu.ContextMenu doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
doChildrenContextMenu
in interface ModelObjectWithChildren
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.