Class AppSettingsController

java.lang.Object
systems.dennis.shared.utils.ApplicationContext
systems.dennis.shared.scopes.controller.AppSettingsController
All Implemented Interfaces:
systems.dennis.shared.controller.forms.Serviceable<AppSettingsModel,Long>, systems.dennis.shared.controller.forms.ValidateForm<AppSettingsForm>, systems.dennis.shared.controller.items.AbstractAddItemController<AppSettingsModel,AppSettingsForm,Long>, systems.dennis.shared.controller.items.AbstractDeleteItemController<AppSettingsModel,Long>, systems.dennis.shared.controller.items.AbstractEditFieldItemController<AppSettingsModel,AppSettingsForm,Long>, systems.dennis.shared.controller.items.AbstractEditItemController<AppSettingsModel,AppSettingsForm,Long>, systems.dennis.shared.controller.items.AbstractListItemController<AppSettingsModel,AppSettingsForm,Long>, systems.dennis.shared.controller.items.Contextable, systems.dennis.shared.controller.items.magic.MagicForm<AppSettingsForm>, systems.dennis.shared.controller.items.magic.MagicList<AppSettingsModel,Long>, systems.dennis.shared.controller.items.Transformable<AppSettingsModel,AppSettingsForm>, systems.dennis.shared.postgres.controller.AddItemController<AppSettingsModel,AppSettingsForm>, systems.dennis.shared.postgres.controller.DeleteItemController<AppSettingsModel>, systems.dennis.shared.postgres.controller.EditItemController<AppSettingsModel,AppSettingsForm>, systems.dennis.shared.postgres.controller.ListItemController<AppSettingsModel,AppSettingsForm>

@RestController @RequestMapping("/api/v2/shared/app_settings") @CrossOrigin public class AppSettingsController extends systems.dennis.shared.utils.ApplicationContext implements systems.dennis.shared.postgres.controller.DeleteItemController<AppSettingsModel>, systems.dennis.shared.postgres.controller.ListItemController<AppSettingsModel,AppSettingsForm>, systems.dennis.shared.postgres.controller.EditItemController<AppSettingsModel,AppSettingsForm>, systems.dennis.shared.postgres.controller.AddItemController<AppSettingsModel,AppSettingsForm>
  • Field Summary

    Fields inherited from class systems.dennis.shared.utils.ApplicationContext

    CREATED_FIELDS_MAP

    Fields inherited from interface systems.dennis.shared.controller.items.magic.MagicForm

    pojoFormCache

    Fields inherited from interface systems.dennis.shared.controller.items.magic.MagicList

    pojoListCache

    Fields inherited from interface systems.dennis.shared.controller.forms.Serviceable

    log
  • Constructor Summary

    Constructors
    Constructor
    Description
    AppSettingsController(systems.dennis.shared.config.WebContext context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<AppSettingsForm>
     
    void
     
    org.springframework.http.ResponseEntity<AppSettingsForm>
     
    org.springframework.http.ResponseEntity<org.springframework.data.domain.Page<Map<String,Object>>>
    get(Integer limit, Integer page)
     

    Methods inherited from class systems.dennis.shared.utils.ApplicationContext

    canEqual, equals, getBean, getContext, getCurrentUser, getDefaultLogger, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface systems.dennis.shared.controller.items.AbstractAddItemController

    afterSaveForm

    Methods inherited from interface systems.dennis.shared.controller.items.AbstractEditFieldItemController

    editField

    Methods inherited from interface systems.dennis.shared.controller.items.Contextable

    getContext

    Methods inherited from interface systems.dennis.shared.postgres.controller.DeleteItemController

    deleteItems

    Methods inherited from interface systems.dennis.shared.postgres.controller.ListItemController

    fetchData, fetchForm

    Methods inherited from interface systems.dennis.shared.controller.items.magic.MagicForm

    copyTo, fetchForm, getDescription, getPojoForm, setPojoFormValue

    Methods inherited from interface systems.dennis.shared.controller.items.magic.MagicList

    copyTo, download, fetchFile, getDefaultField, getDescription, getPojoList, objectDetails

    Methods inherited from interface systems.dennis.shared.controller.forms.Serviceable

    getContext, getForm, getLog, getModel, getService, getServiceClass

    Methods inherited from interface systems.dennis.shared.controller.items.Transformable

    afterTransformToDBType, afterTransformToForm, fromForm, getClassDescription, getContext, toForm, toFormPage, transformValueToFormType, transformValueToModelType, transformValueToTargetType

    Methods inherited from interface systems.dennis.shared.controller.forms.ValidateForm

    checkValidation, getClassOfForm, getContext, validate, validate, validate, validateField
  • Constructor Details

    • AppSettingsController

      public AppSettingsController(systems.dennis.shared.config.WebContext context)
  • Method Details

    • get

      @GetMapping("/list") public org.springframework.http.ResponseEntity<org.springframework.data.domain.Page<Map<String,Object>>> get(Integer limit, Integer page)
      Specified by:
      get in interface systems.dennis.shared.controller.items.AbstractListItemController<AppSettingsModel,AppSettingsForm,Long>
      Specified by:
      get in interface systems.dennis.shared.postgres.controller.ListItemController<AppSettingsModel,AppSettingsForm>
    • edit

      @PutMapping("/edit/{id}") public org.springframework.http.ResponseEntity<AppSettingsForm> edit(AppSettingsForm form) throws systems.dennis.shared.exceptions.ItemForAddContainsIdException, systems.dennis.shared.exceptions.ItemDoesNotContainsIdValueException, systems.dennis.shared.exceptions.UnmodifiedItemSaveAttemptException, systems.dennis.shared.exceptions.ItemNotFoundException
      Specified by:
      edit in interface systems.dennis.shared.controller.items.AbstractEditItemController<AppSettingsModel,AppSettingsForm,Long>
      Specified by:
      edit in interface systems.dennis.shared.postgres.controller.EditItemController<AppSettingsModel,AppSettingsForm>
      Throws:
      systems.dennis.shared.exceptions.ItemForAddContainsIdException
      systems.dennis.shared.exceptions.ItemDoesNotContainsIdValueException
      systems.dennis.shared.exceptions.UnmodifiedItemSaveAttemptException
      systems.dennis.shared.exceptions.ItemNotFoundException
    • add

      @PutMapping("/add") public org.springframework.http.ResponseEntity<AppSettingsForm> add(AppSettingsForm form) throws systems.dennis.shared.exceptions.ItemForAddContainsIdException, systems.dennis.shared.exceptions.ItemDoesNotContainsIdValueException, systems.dennis.shared.exceptions.UnmodifiedItemSaveAttemptException, systems.dennis.shared.exceptions.ItemNotFoundException
      Specified by:
      add in interface systems.dennis.shared.controller.items.AbstractAddItemController<AppSettingsModel,AppSettingsForm,Long>
      Specified by:
      add in interface systems.dennis.shared.postgres.controller.AddItemController<AppSettingsModel,AppSettingsForm>
      Throws:
      systems.dennis.shared.exceptions.ItemForAddContainsIdException
      systems.dennis.shared.exceptions.ItemDoesNotContainsIdValueException
      systems.dennis.shared.exceptions.UnmodifiedItemSaveAttemptException
      systems.dennis.shared.exceptions.ItemNotFoundException
    • delete

      @DeleteMapping("/delete/{id}") public void delete(@PathVariable Long id) throws systems.dennis.shared.exceptions.ItemNotUserException, systems.dennis.shared.exceptions.ItemNotFoundException
      Specified by:
      delete in interface systems.dennis.shared.controller.items.AbstractDeleteItemController<AppSettingsModel,Long>
      Specified by:
      delete in interface systems.dennis.shared.postgres.controller.DeleteItemController<AppSettingsModel>
      Throws:
      systems.dennis.shared.exceptions.ItemNotUserException
      systems.dennis.shared.exceptions.ItemNotFoundException