Class InvitationController

java.lang.Object
systems.dennis.shared.utils.ApplicationContext
systems.dennis.auth.controller.InvitationController
All Implemented Interfaces:
systems.dennis.shared.controller.forms.Serviceable<InvitationModel,Long>, systems.dennis.shared.controller.forms.ValidateForm<InvitationForm>, systems.dennis.shared.controller.items.AbstractAddItemController<InvitationModel,InvitationForm,Long>, systems.dennis.shared.controller.items.AbstractDeleteItemController<InvitationModel,Long>, systems.dennis.shared.controller.items.AbstractSelfItemsListController<InvitationModel,InvitationForm,Long>, systems.dennis.shared.controller.items.Contextable, systems.dennis.shared.controller.items.magic.MagicForm<InvitationForm>, systems.dennis.shared.controller.items.magic.MagicList<InvitationModel,Long>, systems.dennis.shared.controller.items.Transformable<InvitationModel,InvitationForm>, systems.dennis.shared.postgres.controller.AddItemController<InvitationModel,InvitationForm>, systems.dennis.shared.postgres.controller.DeleteItemController<InvitationModel>

@RestController @RequestMapping("/api/v2/auth/invitation") @CrossOrigin public class InvitationController extends systems.dennis.shared.utils.ApplicationContext implements systems.dennis.shared.postgres.controller.AddItemController<InvitationModel,InvitationForm>, systems.dennis.shared.controller.items.AbstractSelfItemsListController<InvitationModel,InvitationForm,Long>, systems.dennis.shared.postgres.controller.DeleteItemController<InvitationModel>
  • 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
    InvitationController(systems.dennis.shared.config.WebContext context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    accept(Long invitationId)
     
    getByUser(Long userId)
     
     
    getMyInvitation(Long from, 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.AbstractSelfItemsListController

    getData, modifySearchSpecification, onEmpty

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

    add

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

    getContext

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

    delete, deleteItems

    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, validateField
  • Constructor Details

    • InvitationController

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

    • accept

      @PostMapping("/accept/{id}") public Boolean accept(@PathVariable("id") Long invitationId)
    • getMyInvitation

      @GetMapping("/my_accepted") public List<InvitationForm> getMyInvitation(@RequestParam(value="from",required=false) Long from, @RequestParam(value="limit",required=false) Integer limit, @RequestParam(value="page",required=false) Integer page)
    • getInfo

      @GetMapping("/info") public InvitationForm getInfo(@RequestParam("id") Long id)
    • getByUser

      @GetMapping("/user/{userId}") public InvitationForm getByUser(@PathVariable("userId") Long userId)
    • getService

      public InvitationService getService()
      Specified by:
      getService in interface systems.dennis.shared.controller.forms.Serviceable<InvitationModel,Long>