public class BaseMediaAttributeContentValidator extends java.lang.Object implements AttributeContentValidator<java.util.Map<java.lang.String,java.lang.String>>
| Constructor and Description |
|---|
BaseMediaAttributeContentValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected LanguageFacade |
getLanguageFacade() |
void |
setLanguageFacade(LanguageFacade languageFacade) |
java.util.List<ValidationError> |
validate(java.util.Map<java.lang.String,java.lang.String> value,
AttributeDescriptorModel attribute)
Performs validation on the given arguments.
|
protected void |
validateMedia(AttributeDescriptorModel attribute,
java.lang.String language,
java.lang.String mediaUuid,
java.util.List<ValidationError> errors)
Validate media codes
|
public java.util.List<ValidationError> validate(java.util.Map<java.lang.String,java.lang.String> value, AttributeDescriptorModel attribute)
AttributeContentValidatorvalidate in interface AttributeContentValidator<java.util.Map<java.lang.String,java.lang.String>>value - the value objectattribute - the attribute descriptor of the given value.protected void validateMedia(AttributeDescriptorModel attribute, java.lang.String language, java.lang.String mediaUuid, java.util.List<ValidationError> errors)
attribute - the attribute of the type being validatedlanguage - the language of the media uuidmediaUuid - the media uuid keyerrors - the local error collectionprotected LanguageFacade getLanguageFacade()
public void setLanguageFacade(LanguageFacade languageFacade)
Copyright © 2018 SAP SE. All Rights Reserved.