Class PersistentCacheController
java.lang.Object
sk.iway.iwcm.system.datatable.DatatableRestControllerV2<PersistentCacheBean,Long>
sk.iway.iwcm.components.memory_cleanup.persistent_cache_objects.PersistentCacheController
@RestController
@RequestMapping(path="/admin/rest/settings/persistent-cache-objects")
@PreAuthorize("@WebjetSecurityService.hasPermission(\'cmp_data_deleting\')")
public class PersistentCacheController
extends DatatableRestControllerV2<PersistentCacheBean,Long>
-
Constructor Summary
ConstructorsConstructorDescriptionPersistentCacheController
(PersistentCacheService persistentCacheService, PersistentCacheRepository persistentCacheRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeSave
(PersistentCacheBean entity) Metoda volana pred insert/save danej entity, da sa pouzit na nastavenie udajov, napr.org.springframework.data.domain.Page<PersistentCacheBean>
getAllItems
(org.springframework.data.domain.Pageable pageable) Ziska z databazy vsetky zaznamyboolean
processAction
(PersistentCacheBean entity, String action) Vykona zadanu akciu (napr.Methods inherited from class sk.iway.iwcm.system.datatable.DatatableRestControllerV2
action, add, addNotify, addNotify, addSpecSearch, addSpecSort, afterDelete, afterDuplicate, afterImportChunk, afterSave, beforeDelete, beforeDuplicate, checkAccessAllowed, checkItemPerms, copyEntityIntoOriginal, delete, deleteItem, edit, editItem, findByColumns, findItemBy, getAll, getAllItemsIncludeSpecSearch, getCleanKey, getCleanValue, getImportedColumns, getImportMode, getInvalidImportedRows, getLastImportedRow, getOne, getOneItem, getOptions, getParamsMap, getProp, getRepo, getRequest, getSearchConditions, getSearchProperties, getUpdateByColumn, getUser, handleEditor, hasNotify, initBinder, insertItem, isExporting, isForceReload, isImporting, isSkipWrongData, jpaToBoolean, preImportDataEdit, processFromEntity, processFromEntity, processFromEntity, processFromEntity, processToEntity, searchItem, setForceReload, setRequest, setValidator, throwConstraintViolation, throwError, throwError, throwError, throwError, throwError, throwError, validateEditor
-
Constructor Details
-
PersistentCacheController
@Autowired public PersistentCacheController(PersistentCacheService persistentCacheService, PersistentCacheRepository persistentCacheRepository)
-
-
Method Details
-
getAllItems
public org.springframework.data.domain.Page<PersistentCacheBean> getAllItems(org.springframework.data.domain.Pageable pageable) Description copied from class:DatatableRestControllerV2
Ziska z databazy vsetky zaznamy- Overrides:
getAllItems
in classDatatableRestControllerV2<PersistentCacheBean,
Long> - Returns:
-
processAction
Description copied from class:DatatableRestControllerV2
Vykona zadanu akciu (napr. rotacia obrazku v galerii)- Overrides:
processAction
in classDatatableRestControllerV2<PersistentCacheBean,
Long> - Returns:
- false ak nastane chyba
-
beforeSave
Description copied from class:DatatableRestControllerV2
Metoda volana pred insert/save danej entity, da sa pouzit na nastavenie udajov, napr. datum ulozenia, domainId a podobne- Overrides:
beforeSave
in classDatatableRestControllerV2<PersistentCacheBean,
Long>
-