NebulaLogger

The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.

View the Project on GitHub jongpie/NebulaLogger

LoggerEngineDataSelector class

Selector class used for all queries that are specific to the logger engine layer


Methods

getAuthSessionProxies(List<Id> userIds)Map<Id, LoggerSObjectProxy.AuthSession>

Returns a Map&lt;Id, LoggerSObjectProxy.AuthSession&gt; for the specified user IDs & their matching active sessions, or null if there is not a current session

Parameters
Param Description
userIds userIds description
Return

Type

Map<Id, LoggerSObjectProxy.AuthSession>

Description

The instance of Map&lt;Id, LoggerSObjectProxy.AuthSession&gt; containing any matching Schema.AuthSession records

getCachedAuthSessionProxy()LoggerSObjectProxy.AuthSession

Returns a cached copy of LoggerSObjectProxy.AuthSession for the current user's current session, or null if there is not a current session

Return

Type

LoggerSObjectProxy.AuthSession

Description

The cached LoggerSObjectProxy.AuthSession record

getCachedLoggerSObjectHandlers()List<LoggerSObjectHandler_t>

Returns a cached copy of the LoggerSObjectHandler_t records in the org, including the field SObjectType__r.QualifiedApiName that cannot be accessed via LoggerSObjectHandler_t.getAll()

Return

Type

List<LoggerSObjectHandler_t>

Description

The cached List&lt;LoggerSObjectHandler_t&gt; records

getCachedNetworkProxy(Id networkId)LoggerSObjectProxy.Network

Returns a cached copy of the current user's Schema.Network site, or null if the current user is not associated with a Schema.Network site

Parameters
Param Description
networkId The record ID of the Schema.Network to query
Return

Type

LoggerSObjectProxy.Network

Description

The cached Schema.Network record

getCachedOrganization()Schema.Organization

Returns a cached copy of the Schema.Organization record in the org, including some fields that cannot be accessed via UserInfo

Return

Type

Schema.Organization

Description

The cached Schema.Organization record

getCachedTagAssignmentRules()List<LogEntryTagRule_t>

Returns a cached copy of the LogEntryTagRule_t records in the org, including the field SObjectField__r.QualifiedApiName that cannot be accessed via LogEntryTagRule_t.getAll()

Return

Type

List<LogEntryTagRule_t>

Description

The cached List&lt;LogEntryTagRule_t&gt; records

getCachedUser()Schema.User

Returns a cached copy of the current user, including some profile fields that cannot be accessed via UserInfo

Return

Type

Schema.User

Description

The cached Schema.User record for the current user

getInstance()LoggerEngineDataSelector

The instance LoggerEngineDataSelector used for any querying specific to the logger engine layer

Return

Type

LoggerEngineDataSelector

Description

The singleton instance of LoggerEngineDataSelector

getNetworkProxies(List<Id> networkIds)Map<Id, LoggerSObjectProxy.Network>

Returns a list of matching Schema.Network records based on the provided list of network IDs

Parameters
Param Description
networkIds The list of Schema.Network IDs to query
Return

Type

Map<Id, LoggerSObjectProxy.Network>

Description

The instance of Map&lt;Id, SObject&gt; containing any matching Schema.Network records

getUsers(List<Id> userIds)Map<Id, Schema.User>

Returns a list of matching Schema.User records based on the provided list of user IDs

Parameters
Param Description
userIds The list of Schema.User IDs to query
Return

Type

Map<Id, Schema.User>

Description

The instance of Map&lt;Id, Schema.User&gt; containing any matching Schema.User records