Class ScopeController

java.lang.Object
systems.dennis.shared.utils.ApplicationContext
systems.dennis.shared.scopes.controller.ScopeController
All Implemented Interfaces:
systems.dennis.shared.controller.forms.Serviceable, systems.dennis.shared.controller.forms.ValidateForm<ScopeForm>, systems.dennis.shared.controller.items.AddItemController<ScopeModel,ScopeForm>, systems.dennis.shared.controller.items.Contextable, systems.dennis.shared.controller.items.DeleteItemController, systems.dennis.shared.controller.items.EditFieldItemController<ScopeModel,ScopeForm>, systems.dennis.shared.controller.items.EditItemController<ScopeModel,ScopeForm>, systems.dennis.shared.controller.items.ListItemController<ScopeModel,ScopeForm>, systems.dennis.shared.controller.items.magic.MagicForm<ScopeForm>, systems.dennis.shared.controller.items.magic.MagicList<ScopeModel>, systems.dennis.shared.controller.items.Transformable<ScopeModel,ScopeForm>

@RestController @RequestMapping("/api/v2/shared/scope") @CrossOrigin public class ScopeController extends systems.dennis.shared.utils.ApplicationContext implements systems.dennis.shared.controller.items.AddItemController<ScopeModel,ScopeForm>, systems.dennis.shared.controller.items.EditItemController<ScopeModel,ScopeForm>, systems.dennis.shared.controller.items.ListItemController<ScopeModel,ScopeForm>, systems.dennis.shared.controller.items.DeleteItemController
  • Field Summary

    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
    ScopeController(systems.dennis.shared.config.WebContext context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.springframework.http.ResponseEntity<ScopeForm>
     
     

    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.AddItemController

    add, afterSaveForm

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

    getContext

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

    deleteItems

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

    editField

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

    get

    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, fetchData, fetchFile, fetchForm, getDefaultField, getDescription, getPojoList, objectDetails

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

    getContext, getForm, getLog, getModel, 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, validateDateBefore, validateField
  • Constructor Details

    • ScopeController

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

    • edit

      public org.springframework.http.ResponseEntity<ScopeForm> edit(ScopeForm 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.EditItemController<ScopeModel,ScopeForm>
      Throws:
      systems.dennis.shared.exceptions.ItemForAddContainsIdException
      systems.dennis.shared.exceptions.ItemDoesNotContainsIdValueException
      systems.dennis.shared.exceptions.UnmodifiedItemSaveAttemptException
      systems.dennis.shared.exceptions.ItemNotFoundException
    • delete

      public void delete(Long id) throws systems.dennis.shared.exceptions.ItemNotUserException, systems.dennis.shared.exceptions.ItemNotFoundException
      Specified by:
      delete in interface systems.dennis.shared.controller.items.DeleteItemController
      Throws:
      systems.dennis.shared.exceptions.ItemNotUserException
      systems.dennis.shared.exceptions.ItemNotFoundException
    • getService

      public ScopeService getService()
      Specified by:
      getService in interface systems.dennis.shared.controller.forms.Serviceable