public class NetsuiteDocumentFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DISABLE_SDK_IGNORE_COMPONENT
System property removes runServerSuiteScriptAndTriggerWorkflows field.
|
static String |
EXTERNAL_ID |
static String |
INTERNAL_ID |
static String |
SCRIPT_ID |
static String |
TYPE |
static String |
XMLNS_PLATFORM_CORE |
static String |
XMLNS_XSI |
static String |
XMLSCHEMA_INSTANCE |
| Constructor and Description |
|---|
NetsuiteDocumentFactory(org.mule.runtime.api.el.MuleExpressionLanguage expressionExecutor,
org.mule.runtime.api.transformation.TransformationService transformationService) |
NetsuiteDocumentFactory(String wsdlVersion,
org.mule.runtime.api.el.MuleExpressionLanguage expressionExecutor,
org.mule.runtime.api.transformation.TransformationService transformationService) |
| Modifier and Type | Method and Description |
|---|---|
Document |
changeEmail(String newEmail,
String currentCredentials,
boolean justThisAccount) |
Document |
changePassword(String newPassword,
String currentCredentials) |
Document |
checkAsyncStatus(String jobId)
TODO: This operation has an index, it is paginated, similar to getDeleted, getSelectValue
|
String |
convertToString(InputStream xmlInputStream) |
String |
convertToString(Node node) |
protected Attr |
createAttribute(Document document,
Node node,
String name,
String value) |
protected void |
createAttributeIfNotPresent(Document document,
Node node,
String nane,
String currentValue,
String newValue) |
protected void |
createAttributeNSIfNotPresent(Document document,
Node node,
String namespace,
String name,
String currentValue,
String newValue) |
protected Document |
createNewDocument() |
static String |
createTokenPassportString(TokenConnectionParameters connectionParameters,
Mac messageAuthenticationCode,
CustomUUIDGenerator customUUIDGenerator,
Optional<WsdlVersion> optionalWsdlVersion) |
protected static String |
generateNonce(CustomUUIDGenerator customUUIDGenerator) |
Document |
generateOperationEmptyBody(String operation) |
Document |
generateXmlHeaderPreferences(PreferencesParameterGroup preferences) |
Document |
generateXmlSearchPreferences(boolean bodyFieldsOnly,
boolean returnSearchColumns,
int pageSize) |
Document |
get(InputStream message,
RecordRefAndTypeParameterGroup recordRefAndType) |
Document |
getAsyncResult(String jobId,
Integer pageIndex) |
Document |
getCustomizationRequest(String customizationTypeValue) |
Document |
getDataCenterUrls(String accountId) |
Document |
getDeleted(Document getDeletedFilter,
int pageIndex) |
Document |
getDeletedFilter(ZonedDateTime since,
DateTimeFormatter netsuiteDateTimeFormatter) |
protected static DocumentBuilder |
getDocumentBuilder() |
Document |
getListRequest(List<Node> baseRefs) |
Document |
getPostingTransactionSummary(Document filtersDocument,
Document fieldsDocument,
String operationId,
int pageIndex) |
Document |
getRecord(String recordType,
String separator) |
Document |
getRecords(String recordType) |
Document |
getSavedSearch(String searchType) |
Document |
getSearchPreferencesHeader(int pageSize) |
Document |
getSelectValue(Document fieldDescription,
int pageIndex) |
InputStream |
newAndModifiedSourceBodyRequest(String objectType,
ZonedDateTime since,
String fieldName,
DateTimeFormatter netsuiteDateTimeFormatter) |
protected Document |
parse(ByteArrayInputStream input) |
Document |
searchMoreWithId(String searchId,
Integer pageIndex) |
InputStream |
transform(String expression,
InputStream xmlInput) |
InputStream |
transform(String expression,
Map<String,Object> inputParams) |
InputStream |
transformCustomFieldsAndRecordsOutgoing(InputStream input,
String separator,
String recordType,
boolean omitInternalIdFromCustomFieldNames)
The payload for this operation contains the input to the connector's operation
input -> operation / transform -> Netsuite's input
expected input should contain the customFields with the trasnformed name.
|
Document |
transformCustomFieldsIncoming(InputStream input,
String separator,
boolean omitInternalIdFromCustomFieldNames) |
InputStream |
transformCustomFieldsIncomingToInputStream(InputStream input,
String separator,
boolean omitInternalIdFromCustomFieldNames) |
Document |
transformToDocument(InputStream xmlInputStream) |
Document |
transformToDocument(String xml,
Charset charset) |
InputStream |
transformToInputStream(Node node) |
Map<String,Object> |
transformToMap(String expression,
InputStream xmlInput) |
public static final String INTERNAL_ID
public static final String EXTERNAL_ID
public static final String SCRIPT_ID
public static final String TYPE
public static final String XMLNS_PLATFORM_CORE
public static final String XMLNS_XSI
public static final String XMLSCHEMA_INSTANCE
public static final String DISABLE_SDK_IGNORE_COMPONENT
public NetsuiteDocumentFactory(org.mule.runtime.api.el.MuleExpressionLanguage expressionExecutor,
org.mule.runtime.api.transformation.TransformationService transformationService)
public NetsuiteDocumentFactory(String wsdlVersion, org.mule.runtime.api.el.MuleExpressionLanguage expressionExecutor, org.mule.runtime.api.transformation.TransformationService transformationService)
public Document getCustomizationRequest(String customizationTypeValue) throws ParserConfigurationException
customizationTypeValue - Any of the custom object types enumerated in CustomizationType.ParserConfigurationException - If there is a problem with the parser configurationpublic Document getRecords(String recordType) throws ParserConfigurationException
ParserConfigurationExceptionpublic Document getSavedSearch(String searchType) throws ParserConfigurationException
ParserConfigurationExceptionpublic Document searchMoreWithId(String searchId, Integer pageIndex) throws ParserConfigurationException
ParserConfigurationExceptionpublic Document getDeleted(Document getDeletedFilter, int pageIndex) throws ParserConfigurationException
getDeletedFilter - The node with the getDeletedFilter, that is, a filter to use to search for deleted elementspageIndex - The page index to return in the result. 1 is the first page and so on.ParserConfigurationException - If there is a problem with the parser configurationpublic Document getSearchPreferencesHeader(int pageSize) throws ParserConfigurationException
pageSize - The size of each page requestParserConfigurationExceptionpublic Document getPostingTransactionSummary(Document filtersDocument, Document fieldsDocument, String operationId, int pageIndex) throws ParserConfigurationException
filtersDocument - The node with the filters bodypageIndex - The page index to return in the result. 1 is the first page and so on.operationId - The operation idfieldsDocument - The fields documentParserConfigurationException - If there is a problem with the parser configurationpublic Document getSelectValue(Document fieldDescription, int pageIndex) throws ParserConfigurationException
fieldDescription - The node with the field descriptionpageIndex - The page index to return in the result. 1 is the first page and so on.ParserConfigurationException - If there is a problem with the parser configurationpublic Document getDeletedFilter(ZonedDateTime since, DateTimeFormatter netsuiteDateTimeFormatter) throws ParserConfigurationException
ParserConfigurationExceptionpublic InputStream newAndModifiedSourceBodyRequest(String objectType, ZonedDateTime since, String fieldName, DateTimeFormatter netsuiteDateTimeFormatter) throws ParserConfigurationException, TransformerException
public Document generateXmlHeaderPreferences(PreferencesParameterGroup preferences) throws ParserConfigurationException
ParserConfigurationExceptionpublic Document generateXmlSearchPreferences(boolean bodyFieldsOnly, boolean returnSearchColumns, int pageSize) throws ParserConfigurationException
ParserConfigurationExceptionpublic Document changeEmail(String newEmail, String currentCredentials, boolean justThisAccount) throws ParserConfigurationException
ParserConfigurationExceptionpublic Document changePassword(String newPassword, String currentCredentials) throws ParserConfigurationException
ParserConfigurationExceptionpublic Document getAsyncResult(String jobId, Integer pageIndex) throws ParserConfigurationException
ParserConfigurationExceptionpublic Document checkAsyncStatus(String jobId) throws ParserConfigurationException
jobId - The ID of the job.ParserConfigurationException - If there is a problem with the parser configurationpublic InputStream transformCustomFieldsIncomingToInputStream(InputStream input, String separator, boolean omitInternalIdFromCustomFieldNames) throws XPathExpressionException, TransformerException
public Document transformCustomFieldsIncoming(InputStream input, String separator, boolean omitInternalIdFromCustomFieldNames) throws XPathExpressionException
XPathExpressionExceptionpublic InputStream transformCustomFieldsAndRecordsOutgoing(InputStream input, String separator, String recordType, boolean omitInternalIdFromCustomFieldNames) throws TransformerException, XPathExpressionException
input - input to the connector's operationseparator - Separator used to generate the keys required to provide a better support for custom fields/records.recordType - The type of record that will be retrieved when created.omitInternalIdFromCustomFieldNames - Omit the internal Id in the name of the custom fieldTransformerException - If there is a problem with the transformationXPathExpressionException - If there is a problem with the XPathprotected void createAttributeNSIfNotPresent(Document document, Node node, String namespace, String name, String currentValue, String newValue)
protected void createAttributeIfNotPresent(Document document, Node node, String nane, String currentValue, String newValue)
protected Attr createAttribute(Document document, Node node, String name, String value)
public Document getDataCenterUrls(String accountId) throws ParserConfigurationException
ParserConfigurationExceptionprotected Document createNewDocument() throws ParserConfigurationException
ParserConfigurationExceptionpublic Document generateOperationEmptyBody(String operation) throws ParserConfigurationException
ParserConfigurationExceptionpublic Document transformToDocument(InputStream xmlInputStream)
protected Document parse(ByteArrayInputStream input) throws SAXException, IOException, ParserConfigurationException
public Document transformToDocument(String xml, Charset charset) throws ParserConfigurationException, IOException, SAXException
protected static DocumentBuilder getDocumentBuilder() throws ParserConfigurationException
ParserConfigurationExceptionpublic InputStream transformToInputStream(Node node) throws TransformerException
TransformerExceptionpublic String convertToString(Node node) throws TransformerException, IOException
TransformerExceptionIOExceptionpublic String convertToString(InputStream xmlInputStream) throws IOException
IOExceptionpublic Document get(InputStream message, RecordRefAndTypeParameterGroup recordRefAndType) throws IOException, SAXException, ParserConfigurationException
public static String createTokenPassportString(TokenConnectionParameters connectionParameters, Mac messageAuthenticationCode, CustomUUIDGenerator customUUIDGenerator, Optional<WsdlVersion> optionalWsdlVersion)
protected static String generateNonce(CustomUUIDGenerator customUUIDGenerator)
public InputStream transform(String expression, InputStream xmlInput)
public InputStream transform(String expression, Map<String,Object> inputParams)
public Map<String,Object> transformToMap(String expression, InputStream xmlInput)
public Document getListRequest(List<Node> baseRefs) throws ParserConfigurationException
ParserConfigurationExceptionpublic Document getRecord(String recordType, String separator) throws ParserConfigurationException
ParserConfigurationExceptionCopyright © 2025 MuleSoft, Inc.. All rights reserved.