Package systems.dennis.shared.controller
Class FavoriteItemController
java.lang.Object
systems.dennis.shared.utils.ApplicationContext
systems.dennis.shared.controller.FavoriteItemController
- All Implemented Interfaces:
systems.dennis.shared.controller.forms.Serviceable,systems.dennis.shared.controller.forms.ValidateForm<FavoriteItemForm>,systems.dennis.shared.controller.items.AddItemController<systems.dennis.shared.model.FavoriteItemModel,,FavoriteItemForm> systems.dennis.shared.controller.items.DeleteItemController,systems.dennis.shared.controller.items.magic.MagicForm<FavoriteItemForm>,systems.dennis.shared.controller.items.Transformable<systems.dennis.shared.model.FavoriteItemModel,FavoriteItemForm>
@RestController
@RequestMapping("/api/v2/shared/favorite")
@CrossOrigin
public class FavoriteItemController
extends systems.dennis.shared.utils.ApplicationContext
implements systems.dennis.shared.controller.items.AddItemController<systems.dennis.shared.model.FavoriteItemModel,FavoriteItemForm>, systems.dennis.shared.controller.items.DeleteItemController
-
Field Summary
Fields inherited from interface systems.dennis.shared.controller.items.magic.MagicForm
pojoFormCacheFields inherited from interface systems.dennis.shared.controller.forms.Serviceable
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<FavoriteResponse>org.springframework.http.ResponseEntity<FavoriteResponse>enabled()org.springframework.http.ResponseEntity<FavoriteResponse>isFavorite(FavoriteItemForm form) toFormPage(org.springframework.data.domain.Page<? extends systems.dennis.shared.entity.BaseEntity> page, Class<?> c) Methods inherited from class systems.dennis.shared.utils.ApplicationContext
canEqual, equals, getBean, getContext, getCurrentUser, getDefaultLogger, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface systems.dennis.shared.controller.items.AddItemController
add, afterSaveFormMethods inherited from interface systems.dennis.shared.controller.items.DeleteItemController
delete, deleteItemsMethods inherited from interface systems.dennis.shared.controller.items.magic.MagicForm
copyTo, fetchForm, getDescription, getPojoForm, setPojoFormValueMethods inherited from interface systems.dennis.shared.controller.forms.Serviceable
getContext, getForm, getLog, getModel, getServiceClassMethods inherited from interface systems.dennis.shared.controller.items.Transformable
afterTransformToDBType, afterTransformToForm, fromForm, getClassDescription, getContext, toForm, toFormPage, transformValueToFormType, transformValueToModelType, transformValueToTargetTypeMethods inherited from interface systems.dennis.shared.controller.forms.ValidateForm
checkValidation, getClassOfForm, getContext, validate, validate, validate, validateDateBefore, validateField
-
Constructor Details
-
Method Details
-
enabled
@GetMapping("/enabled") @ResponseBody public org.springframework.http.ResponseEntity<FavoriteResponse> enabled() -
byName
@GetMapping("/byName") @ResponseBody public org.springframework.http.ResponseEntity<FavoriteResponse> byName(@RequestParam("name") String name) -
findByType
@GetMapping("/list/{type}/{searchName}") @ResponseBody public org.springframework.http.ResponseEntity<org.springframework.data.domain.Page<Map<String,Object>>> findByType(@PathVariable String type, @PathVariable("searchName") String name, @RequestParam(value="from",required=false) Long from, @RequestParam(value="limit",required=false) Integer limit, @RequestParam(value="page",required=false) Integer page) -
toFormPage
-
getService
- Specified by:
getServicein interfacesystems.dennis.shared.controller.forms.Serviceable
-