Class NewsTemplatesRestController
java.lang.Object
sk.iway.iwcm.system.datatable.DatatableRestControllerV2<NewsTemplatesEntity,Long>
sk.iway.iwcm.components.news.templates.rest.NewsTemplatesRestController
@RestController
@RequestMapping("/admin/rest/templates/news-templates")
@PreAuthorize("@WebjetSecurityService.hasPermission(\'components.news.edit_templates\')")
public class NewsTemplatesRestController
extends DatatableRestControllerV2<NewsTemplatesEntity,Long>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterDelete
(NewsTemplatesEntity entity, long id) Metoda volana po zmazanim enity z DB, moze vykonat dodatocne akcie napr.void
afterSave
(NewsTemplatesEntity entity, NewsTemplatesEntity saved) Metoda volana po ulozeni entity.void
Doplni pri volani getAllItems options polozky pre vyberove poliavoid
validateEditor
(javax.servlet.http.HttpServletRequest request, DatatableRequest<Long, NewsTemplatesEntity> target, Identity user, org.springframework.validation.Errors errors, Long id, NewsTemplatesEntity entity) Pripravena metoda, odporucame implementovat v child triede.Methods inherited from class sk.iway.iwcm.system.datatable.DatatableRestControllerV2
action, add, addNotify, addNotify, addSpecSearch, addSpecSort, afterDuplicate, afterImportChunk, beforeDelete, beforeDuplicate, beforeSave, checkAccessAllowed, checkItemPerms, copyEntityIntoOriginal, delete, deleteItem, edit, editItem, findByColumns, findItemBy, getAll, getAllItems, getAllItemsIncludeSpecSearch, getCleanKey, getCleanValue, getImportedColumns, getImportMode, getInvalidImportedRows, getLastImportedRow, getOne, getOneItem, getParamsMap, getProp, getRepo, getRequest, getSearchConditions, getSearchProperties, getSum, getUpdateByColumn, getUser, handleEditor, hasNotify, initBinder, insertItem, isExporting, isForceReload, isImporting, isSkipWrongData, jpaToBoolean, preImportDataEdit, processAction, processFromEntity, processFromEntity, processFromEntity, processFromEntity, processToEntity, searchItem, setForceReload, setRequest, setValidator, throwConstraintViolation, throwError, throwError, throwError, throwError, throwError, throwError
-
Constructor Details
-
NewsTemplatesRestController
-
-
Method Details
-
validateEditor
public void validateEditor(javax.servlet.http.HttpServletRequest request, DatatableRequest<Long, NewsTemplatesEntity> target, Identity user, org.springframework.validation.Errors errors, Long id, NewsTemplatesEntity entity) Description copied from class:DatatableRestControllerV2
Pripravena metoda, odporucame implementovat v child triede. Metoda je volana pre kazdy odoslaby objekt. Chyby pridava do error objeku pomocouErrors
.rejectValue- Overrides:
validateEditor
in classDatatableRestControllerV2<NewsTemplatesEntity,
Long>
-
getOptions
Description copied from class:DatatableRestControllerV2
Doplni pri volani getAllItems options polozky pre vyberove polia- Overrides:
getOptions
in classDatatableRestControllerV2<NewsTemplatesEntity,
Long>
-
afterDelete
Description copied from class:DatatableRestControllerV2
Metoda volana po zmazanim enity z DB, moze vykonat dodatocne akcie napr. zmazanie suborov z disku, ulozenie do archivu, alebo obnovu cache objektov- Overrides:
afterDelete
in classDatatableRestControllerV2<NewsTemplatesEntity,
Long>
-
afterSave
Description copied from class:DatatableRestControllerV2
Metoda volana po ulozeni entity. POZOR: pre novo vytvaranu entitu bude jej ID ulozene len v saved entite, povodna entity bude mat ID=0- Overrides:
afterSave
in classDatatableRestControllerV2<NewsTemplatesEntity,
Long> - Parameters:
entity
- - povodna odoslana entitasaved
- - uz ulozena verzia entity
-