c8osdkjscore › C8oManagerSession
- C8oManagerSession
- _olduser
- _status
- _user
- c8o
- checker
- id
- ignored
- loginManager
- mutex
- mutexCheckSession
- mutexNetwork
- resumeListener
- sessId
+ new C8oManagerSession(c8o: C8oCore): C8oManagerSession
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:23
Parameters:
| Name | Type |
|---|---|
c8o |
C8oCore |
Returns: C8oManagerSession
• _olduser: C8oSessionUser
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:17
• _status: C8oSessionStatus
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:12
• _user: C8oSessionUser
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:16
• c8o: C8oCore
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:11
• checker: any
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:15
• id: string
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:13
• ignored: any
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:18
• loginManager: C8oManagerLogin
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:14
• mutex: Semaphore
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:20
• mutexCheckSession: Semaphore
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:22
• mutexNetwork: Semaphore
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:21
• resumeListener: any = undefined
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:19
• sessId: string
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:23
• get olduser(): C8oSessionUser
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:84
Get previous status of the session
returns: C8oSessionStatus
Can be: C8oSessionStatus.Connected C8oSessionStatus.HasBeenConnected C8oSessionStatus.HasBeenDisconnected C8oSessionStatus.Disconnected C8oSessionStatus.Ignore
Returns: C8oSessionUser
• get status(): C8oSessionStatus
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:49
Get status of the session
returns: C8oSessionStatus
Can be: C8oSessionStatus.Connected C8oSessionStatus.HasBeenConnected C8oSessionStatus.HasBeenDisconnected C8oSessionStatus.Disconnected C8oSessionStatus.Ignore
Returns: C8oSessionStatus
• set status(status: C8oSessionStatus): void
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:53
Get status of the session
Parameters:
| Name | Type |
|---|---|
status |
C8oSessionStatus |
Returns: void
• get user(): C8oSessionUser
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:69
Get status of the session
returns: C8oSessionStatus
Can be: C8oSessionStatus.Connected C8oSessionStatus.HasBeenConnected C8oSessionStatus.HasBeenDisconnected C8oSessionStatus.Disconnected C8oSessionStatus.Ignore
Returns: C8oSessionUser
• set user(user: C8oSessionUser): void
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:88
Get status of the session
Parameters:
| Name | Type |
|---|---|
user |
C8oSessionUser |
Returns: void
▸ checkSession(headers: any, time: number, resolve: any, fromSetInitalState?: any): Promise‹void›
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:340
Parameters:
| Name | Type | Default |
|---|---|---|
headers |
any | - |
time |
number | - |
resolve |
any | null |
fromSetInitalState? |
any | - |
Returns: Promise‹void›
▸ checkUser(fromSetInitalState?: any): Promise‹any›
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:309
Parameters:
| Name | Type |
|---|---|
fromSetInitalState? |
any |
Returns: Promise‹any›
▸ defineSessionStatus(response: any, headers: any, urlReq: any, parametersReq: any, headersReq: any, fromSetInitalState?: any): Promise‹C8oSessionStatus›
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:257
defineSessionStatus
if haderStatus is not null => we are connected else if headerStatus is not null and this.id is not null, we has lost session else we were never connected
Parameters:
| Name | Type | Description |
|---|---|---|
response |
any | the http header response |
headers |
any | - |
urlReq |
any | - |
parametersReq |
any | - |
headersReq |
any | - |
fromSetInitalState? |
any | - |
Returns: Promise‹C8oSessionStatus›
▸ doAuthReachable(): Promise‹void›
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:205
Returns: Promise‹void›
▸ getInitalState(): Promise‹void›
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:104
Returns: Promise‹void›
▸ setInitalState(): Promise‹void›
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:93
Returns: Promise‹void›
▸ sort(response: any, headers: any, urlReq: any, parametersReq: any, headersReq: any, resolve?: any, status?: any): Promise‹unknown›
Defined in c8osdk-js-core/src/c8o/c8oManagerSession.ts:120
Parameters:
| Name | Type |
|---|---|
response |
any |
headers |
any |
urlReq |
any |
parametersReq |
any |
headersReq |
any |
resolve? |
any |
status? |
any |
Returns: Promise‹unknown›