|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.model.Descriptor<Credentials>
com.cloudbees.plugins.credentials.CredentialsDescriptor
public abstract class CredentialsDescriptor
Descriptor for credentials.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
|---|
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType |
| Field Summary |
|---|
| Fields inherited from class hudson.model.Descriptor |
|---|
clazz |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
CredentialsDescriptor()
|
|
| Method Summary | |
|---|---|
hudson.util.ListBoxModel |
doFillScopeItems()
Fills in the scopes for a scope list-box. |
java.lang.String |
getCredentialsPage()
Returns the config page for the credentials. |
boolean |
isScopeRelevant()
Checks if asking for a credentials scope is relevant. |
boolean |
isScopeRelevant(hudson.model.ModelObject object)
Similar to isScopeRelevant() but operating on a specific ModelObject rather than trying to
infer from the stapler request. |
| Methods inherited from class hudson.model.Descriptor |
|---|
calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CredentialsDescriptor()
| Method Detail |
|---|
public hudson.util.ListBoxModel doFillScopeItems()
public boolean isScopeRelevant()
UserCredentialsProvider, there is no need to specify the scope,
as it can only be CredentialsScope.USER, but where the credential will be stored in
SystemCredentialsProvider, there are multiple scopes relevant for that container, so the scope
field is relevant.
true if the nearest request object that acts as a container for credentials needs a scope
to be specified.public boolean isScopeRelevant(hudson.model.ModelObject object)
isScopeRelevant() but operating on a specific ModelObject rather than trying to
infer from the stapler request.
object - the object that is going to contain the credential.
true if there is more than one CredentialsScope that can be used for the specified
object.public java.lang.String getCredentialsPage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||