Package fr.ird.observe.validation
Class ValidationContextSupport
- java.lang.Object
-
- fr.ird.observe.validation.ValidationContextSupport
-
- All Implemented Interfaces:
io.ultreia.java4all.validation.api.NuitonValidationContext,Closeable,AutoCloseable
public abstract class ValidationContextSupport extends Object implements io.ultreia.java4all.validation.api.NuitonValidationContext, Closeable
Created on 19/11/2020.- Since:
- 8.0.1
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
Fields Modifier and Type Field Description static StringCREATE_VALIDATION_CONTEXTstatic StringUPDATE_VALIDATION_CONTEXT
-
Constructor Summary
Constructors Modifier Constructor Description protectedValidationContextSupport(ValidationRequestConfigurationSupport configuration, DecoratorService decoratorService)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidadd(IdDto dto)voidclose()protected <D> Function<String,D>function()Map<String,Object>getCache()ValidationRequestConfigurationSupportgetConfiguration()DecoratorServicegetDecoratorService()protected <D extends IdDto>
DgetDto(Function<String,D> function, String id)List<?>getEditingReferentielList()DategetEndOfDay()protected Set<String>getIds(Function<String,Set<String>> function, String id)LocalegetLocale()DategetNow()ReferentialLocalegetReferentialLocale()abstract IdProjectgetSelectModel()voidremove(String id)voidreset()voidsetEditingReferentielList(List<?> referentielList)
-
-
-
Field Detail
-
CREATE_VALIDATION_CONTEXT
public static final String CREATE_VALIDATION_CONTEXT
- See Also:
- Constant Field Values
-
UPDATE_VALIDATION_CONTEXT
public static final String UPDATE_VALIDATION_CONTEXT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ValidationContextSupport
protected ValidationContextSupport(ValidationRequestConfigurationSupport configuration, DecoratorService decoratorService)
-
-
Method Detail
-
getSelectModel
public abstract IdProject getSelectModel()
-
getDecoratorService
public final DecoratorService getDecoratorService()
-
getReferentialLocale
public final ReferentialLocale getReferentialLocale()
-
getLocale
public Locale getLocale()
- Specified by:
getLocalein interfaceio.ultreia.java4all.validation.api.NuitonValidationContext
-
getConfiguration
public ValidationRequestConfigurationSupport getConfiguration()
-
getNow
public Date getNow()
-
getEndOfDay
public Date getEndOfDay()
-
add
public void add(IdDto dto)
-
remove
public void remove(String id)
-
reset
public void reset()
-
getEditingReferentielList
public final List<?> getEditingReferentielList()
-
setEditingReferentielList
public final void setEditingReferentielList(List<?> referentielList)
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-