@Extension public class CredentialsSelectHelper extends hudson.model.Descriptor<CredentialsSelectHelper> implements hudson.model.Describable<CredentialsSelectHelper>
| Modifier and Type | Field and Description |
|---|---|
static hudson.security.Permission |
CREATE
Expose the
CredentialsProvider.CREATE permission for Jelly. |
| Constructor and Description |
|---|
CredentialsSelectHelper() |
| Modifier and Type | Method and Description |
|---|---|
CredentialsSelectHelper |
getDescriptor() |
String |
getDisplayName() |
static Map<String,CredentialsProvider> |
getProvidersByName()
Returns a map of the
CredentialsProvider instances keyed by their name. |
CredentialsSelectHelper.WrappedContextResolver |
getResolver(String className)
Stapler binding for the resolver URL segment.
|
static Map<String,CredentialsSelectHelper.ContextResolver> |
getResolversByName()
Returns a map of the
CredentialsSelectHelper.ContextResolver instances keyed by their name. |
List<CredentialsSelectHelper.StoreItem> |
getStoreItems(hudson.model.ModelObject context,
boolean includeUser)
Returns the
CredentialsSelectHelper.StoreItem instances for the current Stapler request. |
boolean |
hasCreatePermission(hudson.model.ModelObject context,
boolean includeUser)
Checks if the current user has permission to create a credential.
|
hudson.model.ModelObject |
resolveContext(Object context)
Fixes up the context in case we are called from a page where the context is not a ModelObject.
|
static CredentialsStore |
resolveForCLI(String storeId)
Resolves a
CredentialsStore instance for CLI commands. |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic static final hudson.security.Permission CREATE
CredentialsProvider.CREATE permission for Jelly.public CredentialsSelectHelper getDescriptor()
getDescriptor in interface hudson.model.Describable<CredentialsSelectHelper>public String getDisplayName()
getDisplayName in class hudson.model.Descriptor<CredentialsSelectHelper>@CheckForNull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public hudson.model.ModelObject resolveContext(Object context)
context - the initial guess of the context.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public List<CredentialsSelectHelper.StoreItem> getStoreItems(hudson.model.ModelObject context, boolean includeUser)
CredentialsSelectHelper.StoreItem instances for the current Stapler request.context - the context in which to retrieve the store items.includeUser - true to also include any User scoped stores.CredentialsSelectHelper.StoreItem instances for the current Stapler request.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public boolean hasCreatePermission(hudson.model.ModelObject context,
boolean includeUser)
context - the context.includeUser - whether they can use their own credentials store.true if they can create a permission.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public CredentialsSelectHelper.WrappedContextResolver getResolver(String className)
className - the class name of the resolver.@CLIResolver public static CredentialsStore resolveForCLI(String storeId) throws org.kohsuke.args4j.CmdLineException
CredentialsStore instance for CLI commands.storeId - the store identifier.CredentialsStore instance.org.kohsuke.args4j.CmdLineException - if the store cannot be resolved.public static Map<String,CredentialsSelectHelper.ContextResolver> getResolversByName()
CredentialsSelectHelper.ContextResolver instances keyed by their name. A resolver may have more than one
entry if there are inferred unique short nicknames.CredentialsSelectHelper.ContextResolver instances keyed by their namepublic static Map<String,CredentialsProvider> getProvidersByName()
CredentialsProvider instances keyed by their name. A provider may have more than one
entry if there are inferred unique short nicknames.CredentialsProvider instances keyed by their nameCopyright © 2016–2018. All rights reserved.