Class AbstractConfigurationController
java.lang.Object
sk.iway.iwcm.system.datatable.DatatableRestControllerV2<ConfPrefixDto,Long>
sk.iway.iwcm.components.configuration.AbstractConfigurationController
- Direct Known Subclasses:
AbTestingConfigRestController
public abstract class AbstractConfigurationController
extends DatatableRestControllerV2<ConfPrefixDto,Long>
Abstract class for configuration controllers with specified prefix of conf. variables
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractConfigurationController
(String confPrefix, ConfDetailsMapper confDetailsMapper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeDuplicate
(ConfPrefixDto entity) Metoda volana pred duplikovanim danej entity, da sa pouzit na resetovanie udajov, napr.boolean
deleteItem
(ConfPrefixDto entity, long id) Zmaze danu entitu z databazyeditItem
(ConfPrefixDto entity, long id) Ulozi existujucu entitu do databazyorg.springframework.data.domain.Page<ConfPrefixDto>
getAllItems
(org.springframework.data.domain.Pageable pageable) Ziska z databazy vsetky zaznamyinsertItem
(ConfPrefixDto entity) Vlozi NOVU entitu do databazyMethods inherited from class sk.iway.iwcm.system.datatable.DatatableRestControllerV2
action, add, addNotify, addNotify, addSpecSearch, addSpecSort, afterDelete, afterDuplicate, afterImportChunk, afterSave, beforeDelete, beforeSave, checkAccessAllowed, checkItemPerms, copyEntityIntoOriginal, delete, edit, findByColumns, findItemBy, getAll, getAllItemsIncludeSpecSearch, getCleanKey, getCleanValue, getImportedColumns, getImportMode, getInvalidImportedRows, getLastImportedRow, getOne, getOneItem, getOptions, getParamsMap, getProp, getRepo, getRequest, getSearchConditions, getSearchProperties, getUpdateByColumn, getUser, handleEditor, hasNotify, initBinder, isExporting, isForceReload, isImporting, isSkipWrongData, jpaToBoolean, preImportDataEdit, processAction, processFromEntity, processFromEntity, processFromEntity, processFromEntity, processToEntity, searchItem, setForceReload, setRequest, setValidator, throwConstraintViolation, throwError, throwError, throwError, throwError, throwError, throwError, validateEditor
-
Constructor Details
-
AbstractConfigurationController
-
-
Method Details
-
getAllItems
public org.springframework.data.domain.Page<ConfPrefixDto> getAllItems(org.springframework.data.domain.Pageable pageable) Description copied from class:DatatableRestControllerV2
Ziska z databazy vsetky zaznamy- Overrides:
getAllItems
in classDatatableRestControllerV2<ConfPrefixDto,
Long> - Returns:
-
editItem
Description copied from class:DatatableRestControllerV2
Ulozi existujucu entitu do databazy- Overrides:
editItem
in classDatatableRestControllerV2<ConfPrefixDto,
Long> - Returns:
-
insertItem
Description copied from class:DatatableRestControllerV2
Vlozi NOVU entitu do databazy- Overrides:
insertItem
in classDatatableRestControllerV2<ConfPrefixDto,
Long> - Returns:
-
deleteItem
Description copied from class:DatatableRestControllerV2
Zmaze danu entitu z databazy- Overrides:
deleteItem
in classDatatableRestControllerV2<ConfPrefixDto,
Long> - Returns:
-
beforeDuplicate
Description copied from class:DatatableRestControllerV2
Metoda volana pred duplikovanim danej entity, da sa pouzit na resetovanie udajov, napr. priradena default stranka adresara a podobne- Overrides:
beforeDuplicate
in classDatatableRestControllerV2<ConfPrefixDto,
Long>
-