public class

SunSystemsSSCConnector

extends Object
java.lang.Object
   ↳ com.computime.sunsystemsssc.SunSystemsSSCConnector
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

SunSystems Anypoint Cloud Connector - Connect to Infor SunSystems through SunSystems Connect web services

Summary

Fields
public static final Log logger
private ConnectionManagementStrategy strategy
Public Constructors
SunSystemsSSCConnector()
Public Methods
String[] componentsList()
Return a list of SSC Components available
String execute(String component, String method, String group, String sscPayload, Boolean checkForError, Boolean errorsAsHtmlTable, Long timeout)
Execute an SSC Component Method.
String getInputSchema(String component, String method)
Return XML schema of input payload
String getOutputSchema(String component, String method)
Return XML schema of output payload
ConnectionManagementStrategy getStrategy()
String[] methodsList(String component)
Return a list of methods available for a selected component
void setStrategy(ConnectionManagementStrategy strategy)
Setter of connection strategy
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final Log logger

private ConnectionManagementStrategy strategy

Public Constructors

public SunSystemsSSCConnector ()

Public Methods

public String[] componentsList ()

Return a list of SSC Components available

Returns
  • Array of component names

public String execute (String component, String method, String group, String sscPayload, Boolean checkForError, Boolean errorsAsHtmlTable, Long timeout)

Execute an SSC Component Method. Set the Message payload as the SSC Payload.

Parameters
component The name of the SSC component to execute
method The name of the SSC method to execute
group The name of the Sun Systems group (Business Unit Code)
sscPayload The SSC request payload
checkForError Set to true if the method should fire an exception if an error occurs.
errorsAsHtmlTable Set to true if error message should be formatted as an HTML table. Set to false if error message should return SSC payload filter out with entries which failed
timeout Number of milliseconds before a timeout is thrown.
Returns
  • The SSC Response payload
Throws
SunSystemsConnectException Validation errors captured by SunSystems

public String getInputSchema (String component, String method)

Return XML schema of input payload

Parameters
component The name of the SSC component to get input schema
method The name of the SSC Method of the component to get input schema
Returns
  • XSD schema as string

public String getOutputSchema (String component, String method)

Return XML schema of output payload

Parameters
component The name of the SSC component to get output schema
method The name of the SSC Method of the component to get output schema
Returns
  • XSD schema as string

public ConnectionManagementStrategy getStrategy ()

public String[] methodsList (String component)

Return a list of methods available for a selected component

Parameters
component The name of the SSC component to filter methods on
Returns
  • Array of component names

public void setStrategy (ConnectionManagementStrategy strategy)

Setter of connection strategy

Parameters
strategy