Package sk.iway.iwcm.doc.mirroring.rest
Class MirroringRestController
java.lang.Object
sk.iway.iwcm.system.datatable.DatatableRestControllerV2<MirroringDTO,Long>
sk.iway.iwcm.doc.mirroring.rest.MirroringRestController
@RestController
@RequestMapping("/admin/rest/webpages/mirroring")
@PreAuthorize("@WebjetSecurityService.hasPermission(\'cmp_mirroring\')")
public class MirroringRestController
extends DatatableRestControllerV2<MirroringDTO,Long>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
deleteItem
(MirroringDTO entity, long syncId) Zmaze danu entitu z databazyeditItem
(MirroringDTO entity, long id) Ulozi existujucu entitu do databazyorg.springframework.data.domain.Page<MirroringDTO>
findByColumns
(Map<String, String> params, org.springframework.data.domain.Pageable pageable, MirroringDTO search) Vyhlada zaznamy v databaze podla zadanych kriterii (serverovo strankovane a sortovane).org.springframework.data.domain.Page<MirroringDTO>
getAllItems
(org.springframework.data.domain.Pageable pageable) Ziska z databazy vsetky zaznamygetOneItem
(long syncId) Ziska z databazy entitu so zadanym idinsertItem
(MirroringDTO entity) Vlozi NOVU entitu do databazyprocessFromEntity
(MirroringDTO entity, ProcessItemAction action, int rowCount) Vykona upravy v entite pred vratenim cez REST rozhranie napr.void
validateEditor
(javax.servlet.http.HttpServletRequest request, DatatableRequest<Long, MirroringDTO> target, Identity user, org.springframework.validation.Errors errors, Long id, MirroringDTO entity) Pripravena metoda, odporucame implementovat v child triede.Methods inherited from class sk.iway.iwcm.system.datatable.DatatableRestControllerV2
action, add, addNotify, addNotify, addSpecSearch, addSpecSort, afterDelete, afterDuplicate, afterImportChunk, afterSave, beforeDelete, beforeDuplicate, beforeSave, checkAccessAllowed, checkItemPerms, copyEntityIntoOriginal, delete, edit, findItemBy, getAll, getAllItemsIncludeSpecSearch, getCleanKey, getCleanValue, getImportedColumns, getImportMode, getInvalidImportedRows, getLastImportedRow, getOne, getOptions, getParamsMap, getProp, getRepo, getRequest, getSearchConditions, getSearchProperties, getSum, getUpdateByColumn, getUser, handleEditor, hasNotify, initBinder, isExporting, isForceReload, isImporting, isSkipWrongData, jpaToBoolean, preImportDataEdit, processAction, processFromEntity, processFromEntity, processFromEntity, processToEntity, searchItem, setForceReload, setRequest, setValidator, throwConstraintViolation, throwError, throwError, throwError, throwError, throwError, throwError
-
Constructor Details
-
MirroringRestController
-
-
Method Details
-
getAllItems
public org.springframework.data.domain.Page<MirroringDTO> getAllItems(org.springframework.data.domain.Pageable pageable) Description copied from class:DatatableRestControllerV2
Ziska z databazy vsetky zaznamy- Overrides:
getAllItems
in classDatatableRestControllerV2<MirroringDTO,
Long> - Returns:
-
findByColumns
public org.springframework.data.domain.Page<MirroringDTO> findByColumns(Map<String, String> params, org.springframework.data.domain.Pageable pageable, MirroringDTO search) Description copied from class:DatatableRestControllerV2
Vyhlada zaznamy v databaze podla zadanych kriterii (serverovo strankovane a sortovane). Pouziva EampleMatcher, v Beane NESMU BYT pouzite primitivne typy (vsetko musia byt Objekty)- Overrides:
findByColumns
in classDatatableRestControllerV2<MirroringDTO,
Long>
-
insertItem
Description copied from class:DatatableRestControllerV2
Vlozi NOVU entitu do databazy- Overrides:
insertItem
in classDatatableRestControllerV2<MirroringDTO,
Long> - Returns:
-
editItem
Description copied from class:DatatableRestControllerV2
Ulozi existujucu entitu do databazy- Overrides:
editItem
in classDatatableRestControllerV2<MirroringDTO,
Long> - Returns:
-
getOneItem
Description copied from class:DatatableRestControllerV2
Ziska z databazy entitu so zadanym id- Overrides:
getOneItem
in classDatatableRestControllerV2<MirroringDTO,
Long> - Returns:
-
deleteItem
Description copied from class:DatatableRestControllerV2
Zmaze danu entitu z databazy- Overrides:
deleteItem
in classDatatableRestControllerV2<MirroringDTO,
Long> - Returns:
-
processFromEntity
Description copied from class:DatatableRestControllerV2
Vykona upravy v entite pred vratenim cez REST rozhranie napr. vyvola potrebne editorFields nastavenia (from entity to editorFields)- Overrides:
processFromEntity
in classDatatableRestControllerV2<MirroringDTO,
Long> action
- - typ zmeny - create,edit,getall...rowCount
- - cislo riadka v tabulke
-
validateEditor
public void validateEditor(javax.servlet.http.HttpServletRequest request, DatatableRequest<Long, MirroringDTO> target, Identity user, org.springframework.validation.Errors errors, Long id, MirroringDTO 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<MirroringDTO,
Long>
-