Class UserDataProfileController

java.lang.Object
systems.dennis.shared.utils.ApplicationContext
systems.dennis.auth.controller.UserDataProfileController
All Implemented Interfaces:
systems.dennis.shared.controller.forms.Serviceable<UserData,Long>, systems.dennis.shared.controller.forms.ValidateForm<UserDataForm>, systems.dennis.shared.controller.items.AbstractEditFieldItemController<UserData,UserDataForm,Long>, systems.dennis.shared.controller.items.AbstractEditItemController<UserData,UserDataForm,Long>, systems.dennis.shared.controller.items.magic.MagicForm<UserDataForm>, systems.dennis.shared.controller.items.Transformable<UserData,UserDataForm>, systems.dennis.shared.postgres.controller.EditItemController<UserData,UserDataForm>

@RestController @CrossOrigin("*") @RequestMapping("/api/v2/auth/profile") public class UserDataProfileController extends systems.dennis.shared.utils.ApplicationContext implements systems.dennis.shared.postgres.controller.EditItemController<UserData,UserDataForm>
  • 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.forms.Serviceable

    log
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity
     
    create(String url, Long profileId)
     
    void
    delete(Long profileId)
     
    org.springframework.http.ResponseEntity<UserDataForm>
     
    findByScope(String scopeName, String time)
     
     
     

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

    editField

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

    copyTo, fetchForm, getDescription, getPojoForm, setPojoFormValue

    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

    • UserDataProfileController

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

    • create

      @PostMapping("/update/photo/{id}") public UserData create(@RequestParam("url") String url, @PathVariable("id") Long profileId)
    • findByScope

      @GetMapping("/all/scope/{name}") public List<UserDataForm> findByScope(@PathVariable("name") String scopeName, @RequestParam(value="time",required=false) @DateTimeFormat(pattern="yyyy-MM-dd\'T\'HH:mm:ss.SSS") String time)
    • getUserStatus

      @GetMapping("/status/{mail}") public Long getUserStatus(@PathVariable("mail") String mail)
    • getUserByEmail

      @GetMapping("/email/{mail}") public UserDataForm getUserByEmail(@PathVariable("mail") String mail)
    • changeLang

      @PostMapping("/update_lang/{lang}") public org.springframework.http.ResponseEntity changeLang(@PathVariable("lang") String lang)
    • delete

      @DeleteMapping("/delete/{id}") @ResponseBody public void delete(@PathVariable("id") Long profileId)
    • edit

      public org.springframework.http.ResponseEntity<UserDataForm> edit(UserDataForm 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<UserData,UserDataForm,Long>
      Specified by:
      edit in interface systems.dennis.shared.postgres.controller.EditItemController<UserData,UserDataForm>
      Throws:
      systems.dennis.shared.exceptions.ItemForAddContainsIdException
      systems.dennis.shared.exceptions.ItemDoesNotContainsIdValueException
      systems.dennis.shared.exceptions.UnmodifiedItemSaveAttemptException
      systems.dennis.shared.exceptions.ItemNotFoundException