public class DoubleRatingValidator extends Object implements ContentValidator
Constructor and Description |
---|
DoubleRatingValidator() |
Modifier and Type | Method and Description |
---|---|
void |
configure(com.tridion.configuration.Configuration configuration)
Read the configuration for this validator, which optionally contains an override value for the
default timeout.
|
boolean |
supports(Class<?> type)
Check if the object passed is of a supported type.
|
void |
validate(Object target,
Errors errors)
Check if the rating has been submitted after enough time has passed since the last rating of
this item by this visitor.
|
public void configure(com.tridion.configuration.Configuration configuration) throws com.tridion.configuration.ConfigurationException
configure
in interface com.tridion.configuration.Configurable
configuration
- the configuration of this validator.com.tridion.configuration.ConfigurationException
public boolean supports(Class<?> type)
supports
in interface ContentValidator
type
- the type of the object being passed.public void validate(Object target, Errors errors)
validate
in interface ContentValidator
target
- the rating that the visitor submitted.errors
- validation errors that occurred while processing the rating.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries