ERP Apex API Developer Reference

fferpcore.TestModeService

global with sharing class TestModeService

Methods

registerEnableAndPublishTestPublications

global static fferpcore.TestModeService.RegisterEnableAndPublishTestPublicationsResult registerEnableAndPublishTestPublications(fferpcore.TestModeService.RegisterEnableAndPublishTestPublicationsRequest request)

Creates the appropriately linked products, message types and publications for the given test publications, enables any created publications and then synchronously delivers the associated messages.

Input Parameters

Name Type Description
request fferpcore.TestModeService.RegisterEnableAndPublishTestPublicationsRequest Request containing the list of TestPublication Ids.

Return Value

This service returns an TestModeService.RegisterEnableAndPublishTestPublicationsResult object.

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

//Initialize test publication IDs.

fferpcore.TestModeService.RegisterEnableAndPublishTestPublicationsRequest request = 
    new fferpcore.TestModeService.RegisterEnableAndPublishTestPublicationsRequest(testPublicationIds);

fferpcore.TestModeService.registerEnableAndPublishTestPublications(request);

registerTestSubscriptionProducts

global static fferpcore.TestModeService.RegisterTestSubscriptionProductsResult registerTestSubscriptionProducts(fferpcore.TestModeService.RegisterTestSubscriptionProductsRequest request)

Creates the appropriately linked products, message types, and subscriptions for the given test subscriptions and enables any created subscriptions.

Input Parameters

Name Type Description
request fferpcore.TestModeService.RegisterTestSubscriptionProductsRequest Request containing the list of TestSubscription Ids.

Return Value

This service returns an TestModeService.RegisterTestSubscriptionProductsResult object.

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

//Initialize test subscription IDs.

fferpcore.TestModeService.RegisterTestSubscriptionProductsResult request = 
    new fferpcore.TestModeService.RegisterTestSubscriptionProductsResult(testSubscriptionIds);

fferpcore.TestModeService.registerTestSubscriptionProducts(request);

fferpcore.TestModeService.RegisterTestSubscriptionProductsResult

global class RegisterTestSubscriptionProductsResult

This is a stub to facilitate the addition of return values in the future.

fferpcore.TestModeService.RegisterEnableAndPublishTestPublicationsResult

global class RegisterEnableAndPublishTestPublicationsResult

This is a stub to facilitate the addition of return values in the future.

fferpcore.TestModeService.RegisterTestSubscriptionProductsRequest

global class RegisterTestSubscriptionProductsRequest

Request object for the registerTestSubscriptionProducts method to contain a list of TestSubscription Ids.

Methods

RegisterTestSubscriptionProductsRequest

global RegisterTestSubscriptionProductsRequest(List<Id> testSubscriptionIds)

Creates a request containing the given list of test subscription Ids.

Input Parameters

Name Type Description
testSubscriptionIds List<Id> Ids of the test subscriptions to be processed.

getTestSubscriptionIds

global List<Id> getTestSubscriptionIds()

Gets the list of IDs corresponding to the test subscriptions to be processed.

Return Value

This service returns a list of Id objects.

equals

global Boolean equals(Object obj)

hashcode

global Integer hashcode()

fferpcore.TestModeService.RegisterEnableAndPublishTestPublicationsRequest

global class RegisterEnableAndPublishTestPublicationsRequest

Request object for registerEnableAndPublishTestPublications method to contain a list of TestPublication Ids.

Methods

RegisterEnableAndPublishTestPublicationsRequest

global RegisterEnableAndPublishTestPublicationsRequest(List<Id> testPublicationIds)

Create a request containing the given list of test publication Ids.

Input Parameters

Name Type Description
testPublicationIds List<Id> Ids of the test publications to be processed.

getTestPublicationIds

global List<Id> getTestPublicationIds()

Gets the list of Ids corresponding to the test publications to be processed.

Return Value

This service returns a list of Id objects.

equals

global Boolean equals(Object obj)

hashcode

global Integer hashcode()

© Copyright 2009–2018 FinancialForce.com, inc. Confidential – all rights reserved. Various trademarks held by their respective owners.