Class UserSettingsResource

java.lang.Object
ch.software_atelier.simpleflex.rest.DefaultRestResource
ch.software_atelier.simpleflex.rest.auth.rres.UserSettingsResource
All Implemented Interfaces:
ch.software_atelier.simpleflex.rest.RestResource

public class UserSettingsResource extends ch.software_atelier.simpleflex.rest.DefaultRestResource
Author:
tk
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    docGET(ch.software_atelier.simpleflex.rest.swagger.MethodDocumentation request)
     
    void
    docPUT(ch.software_atelier.simpleflex.rest.swagger.MethodDocumentation request)
     
    ch.software_atelier.simpleflex.rest.RestResponse
    onGET(ch.software_atelier.simpleflex.rest.RestRequest request)
    Returns the settings of a given user if those settings belong to him or if the user is an admin.
    ch.software_atelier.simpleflex.rest.RestResponse
    onPUT(ch.software_atelier.simpleflex.rest.RestRequest request)
    Saves the given settings for the given user if he is that user or if he is an admin.

    Methods inherited from class ch.software_atelier.simpleflex.rest.DefaultRestResource

    addSimplePropertie, docDELETE, docHEAD, docOPTIONS, docPATCH, docPOST, onDELETE, onHEAD, onOPTIONS, onPATCH, onPOST

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • onPUT

      public ch.software_atelier.simpleflex.rest.RestResponse onPUT(ch.software_atelier.simpleflex.rest.RestRequest request)
      Saves the given settings for the given user if he is that user or if he is an admin. {"key":"value",...} Key-Value pairs
      Specified by:
      onPUT in interface ch.software_atelier.simpleflex.rest.RestResource
      Overrides:
      onPUT in class ch.software_atelier.simpleflex.rest.DefaultRestResource
    • docPUT

      public void docPUT(ch.software_atelier.simpleflex.rest.swagger.MethodDocumentation request)
      Specified by:
      docPUT in interface ch.software_atelier.simpleflex.rest.RestResource
      Overrides:
      docPUT in class ch.software_atelier.simpleflex.rest.DefaultRestResource
    • onGET

      public ch.software_atelier.simpleflex.rest.RestResponse onGET(ch.software_atelier.simpleflex.rest.RestRequest request)
      Returns the settings of a given user if those settings belong to him or if the user is an admin.
      Specified by:
      onGET in interface ch.software_atelier.simpleflex.rest.RestResource
      Overrides:
      onGET in class ch.software_atelier.simpleflex.rest.DefaultRestResource
    • docGET

      public void docGET(ch.software_atelier.simpleflex.rest.swagger.MethodDocumentation request)
      Specified by:
      docGET in interface ch.software_atelier.simpleflex.rest.RestResource
      Overrides:
      docGET in class ch.software_atelier.simpleflex.rest.DefaultRestResource