public interface CredentialType extends InitablePluginModule<CredentialTypeModuleDescriptor>
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
generateCredentialsConfigMap(ActionParametersMap params,
CredentialsData previousCredentialsData)
Convert the params from the ui into a config map to be stored in the database.
|
void |
populateContextForCreate(Map<String,Object> context)
Provide any required context to be used when rendering the freemarker template for creating credentials.
|
void |
populateContextForEdit(Map<String,Object> context,
CredentialsData previousCredentialsData)
Provide any required context to be used when rendering the freemarker template for editing credentials.
|
void |
validate(ActionParametersMap params,
CredentialsData previousCredentialsData,
ErrorCollection errorCollection)
Validate configuration.
|
initvoid populateContextForCreate(@NotNull
Map<String,Object> context)
context - map to put your context in.void populateContextForEdit(@NotNull
Map<String,Object> context,
@NotNull
CredentialsData previousCredentialsData)
context - map to put your context in.previousCredentialsData - existing credentialsvoid validate(@NotNull
ActionParametersMap params,
@Nullable
CredentialsData previousCredentialsData,
@NotNull
ErrorCollection errorCollection)
params - configuration to be validatedpreviousCredentialsData - the previous immutable CredentialsData before saving or null if credentials
are being created.errorCollection - error collection to be set on validation failure@NotNull Map<String,String> generateCredentialsConfigMap(@NotNull ActionParametersMap params, @Nullable CredentialsData previousCredentialsData)
params - request parameters.previousCredentialsData - the previous immutable CredentialsData before saving or null if credentials
are being created.Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.