Top Method Summary
Options Name Purpose
ActivateServerSession (EventArgs) Activates a server session
DeactivateServerSession (EventArgs) Deactivates a server session
HANDLE GetClientPrincipal () Returns the current client-principal object
CHARACTER GetDomainName (handle) Returns the Domain Name of the client-principal
CHARACTER GetSessionId (handle) Returns the Session ID of the client-principal
CHARACTER GetUserId (handle) Returns the User ID of the client-principal
Consultingwerk.SmartFramework.Authentication.UserDatasetModel TryResolveUniqueUserByName (character) Attempts to resolve a unique SmartUser record by username alone, without a login-company filter. Used as a last-resort fallback when the CP carries no domain name.

Top Constructor Summary
Options Name Purpose
RestServerSessionActivator () Constructor for the ServerSessionActivator class

Top Property Summary
Options Name Purpose
LOGICAL SetDbClient


Method Detail
Top

ActivateServerSession (EventArgs)

Purpose: Activates a server session
Notes:

Parameters:
e Consultingwerk.EventArgs
The Consultingwerk.EventArgs with the data for this event
Top

DeactivateServerSession (EventArgs)

Purpose: Deactivates a server session
Notes:

Parameters:
e Consultingwerk.EventArgs
The Consultingwerk.EventArgs with the data for this event
Top

HANDLE GetClientPrincipal ()

Purpose: Returns the current client-principal object
Notes: Method may be overridden to return a client-principal object
from a custom source. This implementation returns
SESSION:CURRENT-REQUEST-INFO:GetClientPrincipal() CURRENT-REQUEST-INFO:GetClientPrincipal()

Returns HANDLE
The handle of the client-principal object
Top

CHARACTER GetDomainName (handle)

Purpose: Returns the Domain Name of the client-principal
Notes: Allows overriding of the retrieval of the Domain Name

Parameters:
phPrincipal HANDLE
The current client-principal instance
Returns CHARACTER
The Domain Name Value
Top

CHARACTER GetSessionId (handle)

Purpose: Returns the Session ID of the client-principal
Notes: Allows overriding of the retrieval of the SessionId

Parameters:
phPrincipal HANDLE
The current client-principal instance
Returns CHARACTER
The Session ID Value
Top

CHARACTER GetUserId (handle)

Purpose: Returns the User ID of the client-principal
Notes: Allows overriding of the retrieval of the User ID

Parameters:
phPrincipal HANDLE
The current client-principal instance
Returns CHARACTER
The User ID Value
Top

Consultingwerk.SmartFramework.Authentication.UserDatasetModel TryResolveUniqueUserByName (character)

Purpose: Attempts to resolve a unique SmartUser record by username alone,
without a login-company filter. Used as a last-resort fallback
when the CP carries no domain name.
Notes: Throws NotAuthorizedException when the username matches more than
one record so the ambiguity is never silently resolved.
SmartUser:Available Available = false when no record was found

Parameters:
pcName CHARACTER
The username to look up
Returns Consultingwerk.SmartFramework.Authentication.UserDatasetModel
A UserDatasetModel positioned at the matching record, or with


Constructor Detail
Top

RestServerSessionActivator ()

Purpose: Constructor for the ServerSessionActivator class
Notes:



Property Detail
Top

LOGICAL SetDbClient


Returns LOGICAL


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.05.2026 16:19:06