public interface PolicyStore
| Modifier and Type | Method and Description |
|---|---|
void |
cleanDeploymentFailure(PolicyDefinition policyDefinition,
com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
Deletes the stored deployment failure log of a policy to a specific API
|
void |
cleanDeploymentFailures(String policyName)
Deletes every stored deployment failure log of a policy
|
boolean |
contains(String policyName)
Checks whether the specified policy is present in the store
|
File |
getEncryptedPropertiesFile(String policyName)
Returns the properties file of the specified policy
|
File |
getPolicyConfigFile(String policyName)
Returns the physical config file of the specified policy
|
List<PolicyDefinition> |
load()
Returns every stored Policy definition
|
List<PolicyDefinition> |
offlinePolicies()
Reads and returns every offline policy that is present in the store
|
List<PolicyDefinition> |
onlinePolicies()
Reads and returns every online policy that is present in the store
|
boolean |
remove(String policyName)
Removes the specified policy, valid or failed, from the store.
|
void |
store(Policy policy)
Stores the complete policy.
|
void |
store(PolicyDefinition policyDefinition)
Stores just the policy definition.
|
void |
storeDeploymentFailure(PolicyDefinition policyDefinition,
com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey,
Exception exception)
Stores the deployment failure exception in the failed policies folder
|
List<PolicyDefinition> load()
void store(PolicyDefinition policyDefinition)
policyDefinition - policy definition to storevoid store(Policy policy)
policy - policy to storeboolean remove(String policyName)
policyName - name of the policy to removeList<PolicyDefinition> onlinePolicies()
List<PolicyDefinition> offlinePolicies()
boolean contains(String policyName)
policyName - name of the policy to checkFile getPolicyConfigFile(String policyName)
policyName - name of the policyFile getEncryptedPropertiesFile(String policyName)
policyName - name of the policyvoid storeDeploymentFailure(PolicyDefinition policyDefinition, com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey, Exception exception)
policyDefinition - the policy that failedapiKey - the API where the policy deployment was being deployedexception - the failurevoid cleanDeploymentFailure(PolicyDefinition policyDefinition, com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
policyDefinition - the policy that failedapiKey - the API where the policy deployment was being deployedvoid cleanDeploymentFailures(String policyName)
policyName - name of the policyCopyright © 2014–2025 MuleSoft, Inc.. All rights reserved.