com.cloudbees.plugins.credentials
Class UserCredentialsProvider.UserCredentialsProperty
java.lang.Object
hudson.model.UserProperty
com.cloudbees.plugins.credentials.UserCredentialsProvider.UserCredentialsProperty
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.model.UserProperty>
- Enclosing class:
- UserCredentialsProvider
public static class UserCredentialsProvider.UserCredentialsProperty
- extends hudson.model.UserProperty
Need a user property to hold the user's personal credentials.
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.model.UserProperty |
user |
|
Method Summary |
java.util.List<Credentials> |
getCredentials()
Gets all the user's credentials. |
|
getCredentials(java.lang.Class<C> type)
Helper method. |
hudson.model.UserProperty |
reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form)
|
| Methods inherited from class hudson.model.UserProperty |
all, getDescriptor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserCredentialsProvider.UserCredentialsProperty
@DataBoundConstructor
public UserCredentialsProvider.UserCredentialsProperty(java.util.List<Credentials> credentials)
- Constructor for stapler.
- Parameters:
credentials - the credentials.
getCredentials
public <C extends Credentials> java.util.List<C> getCredentials(java.lang.Class<C> type)
- Helper method.
- Type Parameters:
C - type of credentials to get.- Parameters:
type - type of credentials to get.
- Returns:
- the subset of the user's credentials that are of the specified type.
getCredentials
public java.util.List<Credentials> getCredentials()
- Gets all the user's credentials.
- Returns:
- all the user's credentials.
reconfigure
public hudson.model.UserProperty reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form)
throws hudson.model.Descriptor.FormException
-
- Overrides:
reconfigure in class hudson.model.UserProperty
- Throws:
hudson.model.Descriptor.FormException
Copyright © 2004-2012. All Rights Reserved.