apitenant

package
v5.1.4+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 15 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TOTenant

type TOTenant struct {
	api.APIInfoImpl `json:"-"`
	tc.TenantNullable
}

TOTenant provides a local type against which to define methods

func (*TOTenant) Create

func (tn *TOTenant) Create() (error, error, int)

func (*TOTenant) Delete

func (ten *TOTenant) Delete() (error, error, int)

func (TOTenant) GetAuditName

func (ten TOTenant) GetAuditName() string

GetAuditName returns a unique identifier Part of the Identifier interface

func (TOTenant) GetID

func (ten TOTenant) GetID() (int, bool)

GetID wraps the ID member with null checking Part of the Identifier interface

func (TOTenant) GetKeyFieldsInfo

func (ten TOTenant) GetKeyFieldsInfo() []api.KeyFieldInfo

GetKeyFieldsInfo identifies types of the key fields

func (TOTenant) GetKeys

func (ten TOTenant) GetKeys() (map[string]interface{}, bool)

GetKeys returns values of keys

func (*TOTenant) GetLastUpdated

func (v *TOTenant) GetLastUpdated() (*time.Time, bool, error)

func (TOTenant) GetType

func (ten TOTenant) GetType() string

GetType returns the name of the type for messages Part of the Identifier interface

func (*TOTenant) InsertQuery

func (v *TOTenant) InsertQuery() string

func (*TOTenant) IsTenantAuthorized

func (ten *TOTenant) IsTenantAuthorized(user *auth.CurrentUser) (bool, error)

IsTenantAuthorized implements the Tenantable interface for TOTenant returns true if the user has access on this tenant and on the ParentID if changed.

func (*TOTenant) NewReadObj

func (v *TOTenant) NewReadObj() interface{}

func (*TOTenant) ParamColumns

func (v *TOTenant) ParamColumns() map[string]dbhelpers.WhereColumnInfo

func (*TOTenant) Read

func (ten *TOTenant) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)

func (*TOTenant) SelectMaxLastUpdatedQuery

func (v *TOTenant) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName string) string

func (*TOTenant) SelectQuery

func (v *TOTenant) SelectQuery() string

func (*TOTenant) SetKeys

func (ten *TOTenant) SetKeys(keys map[string]interface{})

SetKeys allows CreateHandler to assign id once object is created. Part of the Identifier interface

func (*TOTenant) SetLastUpdated

func (v *TOTenant) SetLastUpdated(t tc.TimeNoMod)

func (*TOTenant) Update

func (tn *TOTenant) Update(h http.Header) (error, error, int)

func (*TOTenant) UpdateQuery

func (v *TOTenant) UpdateQuery() string

func (TOTenant) Validate

func (ten TOTenant) Validate() error

Validate fulfills the api.Validator interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL