Class ObjectResolver.Helper
java.lang.Object
org.nuxeo.ecm.core.schema.types.resolver.ObjectResolver.Helper
- Enclosing interface:
ObjectResolver
Manage translation for resolver :
getConstraintErrorMessage(ObjectResolver, Object, Locale, String...)
- Since:
- 7.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getConstraintErrorMessage
(ObjectResolver resolver, Object invalidValue, Locale locale, String... additionnalParameters) Use a default translation key : label.schema.constraint.resolver.static String
getConstraintErrorMessage
(ObjectResolver resolver, String suffixCase, Object invalidValue, Locale locale, String... additionnalParameters) Use a default translation key : label.schema.constraint.resolver.
-
Method Details
-
getConstraintErrorMessage
public static String getConstraintErrorMessage(ObjectResolver resolver, String suffixCase, Object invalidValue, Locale locale, String... additionnalParameters) Use a default translation key : label.schema.constraint.resolver.[Resolver.getName()]- Parameters:
resolver
- The requesting resolver.suffixCase
- This field is a which allow to define alternative translation.invalidValue
- The invalid value that don't match any entity.locale
- The language in which the message should be generated.additionnalParameters
- Relayed elements to build the message.- Returns:
- A message in the specified language
- Since:
- 7.1
-
getConstraintErrorMessage
public static String getConstraintErrorMessage(ObjectResolver resolver, Object invalidValue, Locale locale, String... additionnalParameters) Use a default translation key : label.schema.constraint.resolver.[Resolver.getName()]- Parameters:
resolver
- The requesting resolver.invalidValue
- The invalid value that don't match any entity.locale
- The language in which the message should be generated.additionnalParameters
- Relayed elements to build the message.- Returns:
- A message in the specified language
- Since:
- 7.1
-