Class SubscriptionDataController

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

@RestController @RequestMapping("/api/v2/auth/subscriptions") @CrossOrigin public class SubscriptionDataController extends systems.dennis.shared.utils.ApplicationContext implements systems.dennis.shared.postgres.controller.DeleteItemController<Subscription>, systems.dennis.shared.postgres.controller.AddItemController<Subscription,SubscriptionForm>, systems.dennis.shared.postgres.controller.EditItemController<Subscription,SubscriptionForm>, systems.dennis.shared.postgres.controller.ListItemController<Subscription,SubscriptionForm>
  • 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
    SubscriptionDataController(systems.dennis.shared.config.WebContext context)
     
  • Method Summary

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

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

    deleteItems

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

    fetchData, fetchForm, 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, 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

    • SubscriptionDataController

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

    • edit

      public org.springframework.http.ResponseEntity<SubscriptionForm> edit(SubscriptionForm 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<Subscription,SubscriptionForm,Long>
      Specified by:
      edit in interface systems.dennis.shared.postgres.controller.EditItemController<Subscription,SubscriptionForm>
      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.AbstractDeleteItemController<Subscription,Long>
      Specified by:
      delete in interface systems.dennis.shared.postgres.controller.DeleteItemController<Subscription>
      Throws:
      systems.dennis.shared.exceptions.ItemNotUserException
      systems.dennis.shared.exceptions.ItemNotFoundException