fferpcore.PublicationDescriberglobal inherited sharing abstract class PublicationDescriber A fferpcore.PublicationDescriber structure. Methods
describeglobal virtual fferpcore.MessageDescription describe() This method returns a fferpcore.MessageDescription which contains information about which SObject type the publishing product is sending information about. Additionally, this specifies which fields any publications associated with this describer sends in their messages by default in addition to a field that specifies the correlation Id of a message. Return ValueThis service returns a MessageDescription 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. //Example implementation of a describer. public class ConcreteDescriber extends fferpcore.PublicationDescriber { private static final SObjectType SOBJECT_TYPE = ExampleSObject__c.SObjectType; global override fferpcore.MessageDescription describe() { return new fferpcore.MessageDescription( getCorrelation(), getBody(), new fferpcore.Context.SObjectContext(SOBJECT_TYPE) ); } public fferpcore.Context.Source getCorrelation() { return new fferpcore.Context.SObjectSource(ExampleSObject__c.EmployeeId__c); } public fferpcore.MessageDescription.Node getBody() { return new fferpcore.MessageDescription.MapNode() .withChild('Link Control', fferpcore.LinkControlBody.getOutgoingDescriptionNode(SOBJECT_TYPE, 'Example')) .withScalarChild('Name', ExampleSObject__c.Name) .withChild('Address', new fferpcore.MessageDescription.MapNode() .withScalarChild('Line 1', ExampleSObject__c.Address1__c) .withScalarChild('Phone', ExampleSObject__c.Phone__c) .withChild('Relationship Map', new fferpcore.MessageDescription.MapNode(ExampleSObject__c.Relationship__c) .withScalarChild('Relationship', Relationship__c.Name)); } } describeglobal virtual fferpcore.MessageDescription describe(fferpcore.PublicationDescriber.PublicationDescriptionRequest request) Generate a fferpcore.MessageDescription using the specified PublicationDescriptionRequest to provide additional information such as the source object and correlation field. Input Parameters
Return ValueThe generated MessageDescription. fferpcore.PublicationDescriber.PublicationDescriptionRequestglobal inherited sharing class PublicationDescriptionRequest A request object containing additional information about the desired fferpcore.MessageDescription including the source object and correlation field. Methods
PublicationDescriptionRequestglobal PublicationDescriptionRequest(String sourceObject, String correlationField, String linkDeveloperName) Construct a PublicationDescriptionRequest containing the source object, correlation field. and link developer name. Input Parameters
Return ValueA PublicationDescriptionRequest instance. PublicationDescriptionRequestglobal PublicationDescriptionRequest(String sourceObject, String correlationField, String linkDeveloperName, String virtualObject, String virtualObjectProvider) Construct a PublicationDescriptionRequest containing the source object, correlation field, link developer name, and the virtual object and associated provider. Input Parameters
Return ValueA PublicationDescriptionRequest instance. getCorrelationFieldglobal String getCorrelationField() Return ValueThe API name of the correlation field. getLinkDeveloperNameglobal String getLinkDeveloperName() Return ValueThe developer name used in link control. getVirtualObjectProviderglobal String getVirtualObjectProvider() Return ValueThe name of the virtual object provider. |