Skip to main content

@webda/coreReadme | API


Class: UnknownSession

Unknown session that allows all keys

Extends

Indexable

[key: string]: any

Constructors

new UnknownSession()

new UnknownSession(): UnknownSession

Returns

UnknownSession

Inherited from

Session.constructor

Properties

changed

protected changed: boolean = false

Inherited from

Session.changed

Source

packages/core/src/utils/session.ts:140


identUsed

identUsed: string

Ident used

Inherited from

Session.identUsed

Source

packages/core/src/utils/session.ts:152


roles

roles: string[]

User current roles

Inherited from

Session.roles

Source

packages/core/src/utils/session.ts:157


userId

userId: string

User id

Inherited from

Session.userId

Source

packages/core/src/utils/session.ts:148


uuid

uuid: string

Session uuid

Inherited from

Session.uuid

Source

packages/core/src/utils/session.ts:144

Methods

getProxy()

getProxy(): this

Get the proxy to be able to track modification

Returns

this

Inherited from

Session.getProxy

Source

packages/core/src/utils/session.ts:196


isDirty()

isDirty(): boolean

Session is dirty and requires save

Returns

boolean

Inherited from

Session.isDirty

Source

packages/core/src/utils/session.ts:188


isLogged()

isLogged(): boolean

If session is authenticated

Returns

boolean

Inherited from

Session.isLogged

Source

packages/core/src/utils/session.ts:180


login()

login(userId, identUsed): void

Login

Parameters

userId: string

identUsed: string

Returns

void

Inherited from

Session.login

Source

packages/core/src/utils/session.ts:164


logout()

logout(): void

Logout

Returns

void

Inherited from

Session.logout

Source

packages/core/src/utils/session.ts:171