public class DoubleCommentVotingValidator extends Object implements ContentValidator
| Constructor and Description |
|---|
DoubleCommentVotingValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(com.tridion.configuration.Configuration configuration)
Read the configuration for this validator.
|
boolean |
supports(Class<?> type)
Check if the object passed is of a supported type.
|
void |
validate(Object target,
Errors errors)
Check if the comment has been voted on by this visitor already.
|
public void configure(com.tridion.configuration.Configuration configuration)
throws com.tridion.configuration.ConfigurationException
configure in interface com.tridion.configuration.Configurableconfiguration - the configuration of this validator.com.tridion.configuration.ConfigurationExceptionpublic boolean supports(Class<?> type)
supports in interface ContentValidatortype - the type of the object being passed.public void validate(Object target, Errors errors)
validate in interface ContentValidatortarget - the comment that the visitor intends to vote on.errors - validation errors that occurred while processing the vote.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries