Class JiraRuleSecretStore
java.lang.Object
com.codebarrel.jira.plugin.automation.store.JiraRuleSecretStore
- All Implemented Interfaces:
RuleSecretStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSecret(TenantContext context, RuleSecretWithProjects secret) Creates secretvoiddeleteSecret(TenantContext context, long secretId) Deletes secretgetAllSecrets(TenantContext context) Retrieves all the secrets for a tenant with loaded projectsgetRulesSecretIsUsedIn(TenantContext context, String secretKey) getSecretById(TenantContext context, long secretId) Gets a single secret by id with loaded associated projectsgetSecretByKey(TenantContext context, String key) Gets a secret by its key with loaded associated projectsgetSecretsByProject(TenantContext context, String projectId) Retrieves all secrets associated to the given project, including other project associations.updateSecret(TenantContext context, RuleSecretWithProjects secret) Updates given secret, including project associations.
-
Constructor Details
-
JiraRuleSecretStore
-
-
Method Details
-
getAllSecrets
Description copied from interface:RuleSecretStoreRetrieves all the secrets for a tenant with loaded projects- Specified by:
getAllSecretsin interfaceRuleSecretStore- Parameters:
context- The database tenant context- Returns:
- the complete list or rule secrets for the tenant
-
getSecretById
Description copied from interface:RuleSecretStoreGets a single secret by id with loaded associated projects- Specified by:
getSecretByIdin interfaceRuleSecretStore- Parameters:
context- The database tenant contextsecretId- The id of the secret- Returns:
- an optional of the secret
-
getSecretByKey
Description copied from interface:RuleSecretStoreGets a secret by its key with loaded associated projects- Specified by:
getSecretByKeyin interfaceRuleSecretStore- Parameters:
context- The database tenant contextkey- The secret key- Returns:
- an optional of the secret
-
updateSecret
Description copied from interface:RuleSecretStoreUpdates given secret, including project associations.- Specified by:
updateSecretin interfaceRuleSecretStore- Parameters:
context- The database tenant contextsecret- The secret with the updates to apply- Returns:
- The updated secret
-
createSecret
Description copied from interface:RuleSecretStoreCreates secret- Specified by:
createSecretin interfaceRuleSecretStore- Parameters:
context- The database tenant contextsecret- The secret to create- Returns:
- The created secret
-
deleteSecret
Description copied from interface:RuleSecretStoreDeletes secret- Specified by:
deleteSecretin interfaceRuleSecretStore- Parameters:
context- The database tenant contextsecretId- The id of secret to delete
-
getSecretsByProject
Description copied from interface:RuleSecretStoreRetrieves all secrets associated to the given project, including other project associations.- Specified by:
getSecretsByProjectin interfaceRuleSecretStore- Parameters:
context- The database tenant contextprojectId- The id of project to fetch secrets for
-
getRulesSecretIsUsedIn
- Specified by:
getRulesSecretIsUsedInin interfaceRuleSecretStore
-