LinkControlBodyglobal virtual class LinkControlBody Message sent by LinkingMessageHandler to the sender of the original message. Properties
Methods
serializeglobal String serialize() Converts the LinkControlBody into a JSON string. Return ValueThis service returns a string object. deserializeglobal static LinkControlBody deserialize(String jsonString) Convert the given JSON string into a LinkControlBody. Input Parameters
Return ValueThis service returns a LinkControlBody object. createInstanceglobal static LinkControlBody createInstance() Not used outside unit tests. Use constructor instead. withStateOkglobal LinkControlBody withStateOk() Indicates that the linked object was successfully created or updated. Return ValueThis service returns an LinkControlBody object. withStateErrorglobal LinkControlBody withStateError() Indicates that an error occurred when creating or updating the linked object. Return ValueThis service returns an LinkControlBody object. withLinkedObjectIdglobal LinkControlBody withLinkedObjectId(Id linkedObjectId) Specifies the ID of the linked object. Input Parameters
Return ValueThis service returns an LinkControlBody object. withLinkIdglobal virtual LinkControlBody withLinkId(String linkId) Specify the ID of the linked target. Input Parameters
Return ValueThe original instance to allow fluent method calls. withLinkDeveloperNameglobal LinkControlBody withLinkDeveloperName(String linkDeveloperName) Specifies a developer name to identify the link. Input Parameters
Return ValueThis service returns an LinkControlBody object. withDescriptionglobal LinkControlBody withDescription(String description) Specifies the description of the link. Input Parameters
Return ValueThis service returns an LinkControlBody object. withErrorMessageglobal LinkControlBody withErrorMessage(String errorMessage) Indicates an error occurred and specifies a single associated error message. Input Parameters
Return ValueThis service returns an LinkControlBody object. withErrorMessagesglobal LinkControlBody withErrorMessages(List<String> errorMessages) Indicates an error occurred and specifies multiple associated error messages. Input Parameters
Return ValueThis service returns an LinkControlBody object. withErrorBodyglobal LinkControlBody withErrorBody(ErpErrorBody errorBody) Indicates an error occurred and specifies an associated error body. Input Parameters
Return ValueThis service returns an LinkControlBody object. getOutgoingDescriptionNodeglobal static MessageDescription.Node getOutgoingDescriptionNode(Schema.SObjectType context, String linkDeveloperName) Generates a node for use within a MessageDescription to describe an outgoing link control body within a message. Input Parameters
Return ValueThis service returns an MessageDescription.Node 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. new fferpcore.MessageDescription( new fferpcore.Context.SObjectSource(SomeObject__c.CorrelationId__c), fferpcore.LinkControlBody.getOutgoingDescriptionNode(SomeObject__c.SObjectType, 'SO_Link'), new fferpcore.Context.SObjectContext(SomeObject__c.SObjectType)); getResponseDescriptionNodeglobal static MessageDescription.Node getResponseDescriptionNode(Schema.SObjectType context, String linkDeveloperName) Generates a node for use within a MessageDescription to describe a responding link control body within a message. Input Parameters
Return ValueThis service returns an MessageDescription.Node 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. new fferpcore.MessageDescription( new fferpcore.Context.SObjectSource(SomeObject__c.CorrelationId__c), fferpcore.LinkControlBody.getResponseDescriptionNode(SomeObject__c.SObjectType, 'SO_Link'), new fferpcore.Context.SObjectContext(SomeObject__c.SObjectType)); getStateglobal String getState() Gets the state of the link, either 'Ok' or 'Error'. Return ValueThis service returns a string object. getLinkedObjectIdglobal Id getLinkedObjectId() Gets the Id of the linked object. Return ValueThis service returns an Id object. getLinkDeveloperNameglobal String getLinkDeveloperName() Gets the developer name used to identify the link. Return ValueThis service returns a string object. getDescriptionglobal String getDescription() Gets the description of the link. Return ValueThis service returns a string object. getErrorBodyglobal ErpErrorBody getErrorBody() Gets an error body containing the error messages concerning the link. Return ValueThis service returns an ErpErrorBody object. |