Foundations Apex API Developer Reference

fferpcore.ihcc_RegistrationSelector

global inherited sharing class ihcc_RegistrationSelector implements ihcc_IRegistrationSelector

Selector class for fferpcore.ihcc_Registration All database access via this selector is performed in without sharing mode. This is because the registrations are a system level resource that all user have equal access to.

This class implements the following interfaces:

Methods

allRegisteredIntegrations

global List<fferpcore.ihcc_Registration> allRegisteredIntegrations()

Retrieves all the registered integrations. This method uses without sharing access to the database. Registrations are system-level objects so this is appropriate.

Exceptions Thrown

Value Description
fflib_SecurityUtils.CrudException when user does not have access to the SObject

Return Value

A list of all registered integrations

selectById

global List<fferpcore.ihcc_Registration> selectById(Set<Id> ids)

Selects the registered integrations by Id. This method uses without sharing access to the database. Registrations are system-level objects so this is appropriate.

Input Parameters

Name Type Description
ids Set<Id> The set of Ids to select.

Return Value

A list of matching registrations

selectByName

global List<fferpcore.ihcc_Registration> selectByName(String name)

Selects the registered integration by name. Normally this will return a list with a single item or null but if someone has manually registered an integration in error might return multiple items This method uses without sharing access to the database. Registrations are system-level objects so this is appropriate.

Input Parameters

Name Type Description
name String The name of the integration to select.

Return Value

A list of matching registrations

idForRegisteredIntegration

global Id idForRegisteredIntegration(String name)

Retrieves the ID for a registered integration. The ID is used throughout the Integrations Core to refer to the integration. The name should only need to be known by the integration itself. This method uses without sharing access to the database. Registrations are system-level objects so this is appropriate.

Input Parameters

Name Type Description
name String The name of the integration to look up.

Return Value

The ID of the integration or null if no integration registration found for the name

preferredBatchSizeForRegisteredIntegration

global Integer preferredBatchSizeForRegisteredIntegration(Id integrationId)

Retrieves the preferred batch size for a registered integration The integrationId can be retrieved using the getIdentfierForIntegeration method. This method uses without sharing access to the database. Registrations are system-level objects so this is appropriate.

Input Parameters

Name Type Description
integrationId Id The Id of the integration

Return Value

The preferred batch size

businessClassNameForRegisteredIntegration

global String businessClassNameForRegisteredIntegration(Id integrationId)

Retreives the name of business logic class for the integration This method uses without sharing access to the database. Registrations are system-level objects so this is appropriate.

Input Parameters

Name Type Description
integrationId Id The Id of the integration

Return Value

The class name or null if no integrtion found for the Id

© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.