Documentation ¶
Index ¶
- func Create(w http.ResponseWriter, r *http.Request)
- func Current(w http.ResponseWriter, r *http.Request)
- func Get(w http.ResponseWriter, r *http.Request)
- func InsertQueryV40() string
- func ReplaceCurrent(w http.ResponseWriter, r *http.Request)
- func ReplaceCurrentV4(w http.ResponseWriter, r *http.Request)
- func Update(w http.ResponseWriter, r *http.Request)
- func UpdateQueryV40() string
- type TOUser
- func (user *TOUser) Create() (error, error, int)
- func (user *TOUser) DeleteQuery() string
- func (user TOUser) GetAuditName() string
- func (user TOUser) GetKeyFieldsInfo() []api.KeyFieldInfo
- func (user TOUser) GetKeys() (map[string]interface{}, bool)
- func (user TOUser) GetType() string
- func (user *TOUser) InsertQuery() string
- func (u *TOUser) IsTenantAuthorized(user *auth.CurrentUser) (bool, error)
- func (user *TOUser) NewReadObj() interface{}
- func (user *TOUser) ParamColumns() map[string]dbhelpers.WhereColumnInfo
- func (this *TOUser) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
- func (user *TOUser) SelectQuery() string
- func (user *TOUser) SelectQuery40() string
- func (user *TOUser) SetKeys(keys map[string]interface{})
- func (user *TOUser) SetLastUpdated(t tc.TimeNoMod)
- func (user *TOUser) Update(h http.Header) (error, error, int)
- func (user *TOUser) UpdateQuery() string
- func (user *TOUser) Validate() (error, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(w http.ResponseWriter, r *http.Request)
Get is the handler for GET requests made to /users.
func InsertQueryV40 ¶
func InsertQueryV40() string
func ReplaceCurrent ¶
func ReplaceCurrent(w http.ResponseWriter, r *http.Request)
func ReplaceCurrentV4 ¶
func ReplaceCurrentV4(w http.ResponseWriter, r *http.Request)
ReplaceCurrentV4 replaces the current user with the definition in the user's request (assuming it meets validation constraints).
func Update ¶
func Update(w http.ResponseWriter, r *http.Request)
Update is the handler for PUT requests made to /users.
func UpdateQueryV40 ¶
func UpdateQueryV40() string
Types ¶
type TOUser ¶
type TOUser struct { api.APIInfoImpl `json:"-"` tc.User }
func (*TOUser) Create ¶
Note: Not using GenericCreate because Scan also needs to scan tenant and rolename
func (*TOUser) DeleteQuery ¶
func (TOUser) GetAuditName ¶
func (TOUser) GetKeyFieldsInfo ¶
func (user TOUser) GetKeyFieldsInfo() []api.KeyFieldInfo
func (*TOUser) InsertQuery ¶
func (*TOUser) IsTenantAuthorized ¶
func (u *TOUser) IsTenantAuthorized(user *auth.CurrentUser) (bool, error)
func (*TOUser) NewReadObj ¶
func (user *TOUser) NewReadObj() interface{}
func (*TOUser) ParamColumns ¶
func (user *TOUser) ParamColumns() map[string]dbhelpers.WhereColumnInfo
func (*TOUser) Read ¶
This is not using GenericRead because of this tenancy check. Maybe we can add tenancy functionality to the generic case?
func (*TOUser) SelectQuery ¶
func (*TOUser) SelectQuery40 ¶
func (*TOUser) SetLastUpdated ¶
func (user *TOUser) SetLastUpdated(t tc.TimeNoMod)
func (*TOUser) UpdateQuery ¶
Click to show internal directories.
Click to hide internal directories.