Class PolicyServiceImpl
java.lang.Object
org.craftercms.studio.impl.v2.service.policy.PolicyServiceImpl
- All Implemented Interfaces:
PolicyService
Default implementation of
PolicyService
- Since:
- 4.0.0
- Author:
- joseross
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
policyServiceInternal
-
-
Constructor Details
-
PolicyServiceImpl
@ConstructorProperties("policyServiceInternal") public PolicyServiceImpl(PolicyServiceInternal policyServiceInternal)
-
-
Method Details
-
validate
public List<ValidationResult> validate(String siteId, List<Action> actions) throws ConfigurationException, IOException, ContentNotFoundException Description copied from interface:PolicyService
Performs the validation of one or more actions for a given site- Specified by:
validate
in interfacePolicyService
- Parameters:
siteId
- the id of the siteactions
- the list of actions to validate- Returns:
- the validation results
- Throws:
ConfigurationException
- if there any error parsing the configurationIOException
- if the is any error reading the configurationContentNotFoundException
- if there is any error reading the site repository
-