Class PolicyServiceImpl
- java.lang.Object
-
- org.craftercms.studio.impl.v2.service.policy.PolicyServiceImpl
-
- All Implemented Interfaces:
PolicyService
public class PolicyServiceImpl extends Object implements PolicyService
Default implementation ofPolicyService
- Since:
- 4.0.0
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected PolicyServiceInternal
policyServiceInternal
-
Constructor Summary
Constructors Constructor Description PolicyServiceImpl(PolicyServiceInternal policyServiceInternal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ValidationResult>
validate(String siteId, List<Action> actions)
Performs the validation of one or more actions for a given site
-
-
-
Field Detail
-
policyServiceInternal
protected PolicyServiceInternal policyServiceInternal
-
-
Constructor Detail
-
PolicyServiceImpl
@ConstructorProperties("policyServiceInternal") public PolicyServiceImpl(PolicyServiceInternal policyServiceInternal)
-
-
Method Detail
-
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
-
-