public class

CxfNetSuiteClient

extends Object
implements CxfPortProvider SoapNetSuiteClient
java.lang.Object
   ↳ org.mule.module.netsuite.api.CxfNetSuiteClient

Class Overview

Implementation of the SoapNetSuiteClient that uses CXF generated-based interface

Summary

Fields
private final MapObjectMapper mom
private final CxfPortProvider portProvider
Public Constructors
CxfNetSuiteClient(CxfPortProvider portProvider)
Public Methods
AddListResponse addList(RecordType recordType, List<Map<String, Object>> recordsAttributes)
AddResponse addRecord(RecordType recordType, Map<String, Object> recordAttributes)
AddResponse addRecordObject(RecordType recordType, Record record)
AsyncStatusResult asyncFindRecord(SearchRecordType recordType, String expression)
AttachResponse attachRecord(RecordReference sourceRecord, RecordReference destinationRecord, RecordReference contactEntity)
AsyncStatusResult checkAsyncStatus(String jobId)
DeleteListResponse deleteList(List<Map<String, Object>> recordsToDelete)
DeleteResponse deleteRecord(RecordReference record)
DetachResponse detachRecord(RecordReference sourceEntity, RecordReference destinationEntity)
List<Record> findRecords(SearchRecordType recordType, String expression)
List<Record> getAsyncFindResult(String jobId)
NetSuitePortType getAuthenticatedPort()
GetBudgetExchangeRateResponse getBudgetExchangeRates(RecordId period, RecordId fromSubsidiary, RecordId toSubsidiary)
GetConsolidatedExchangeRateResponse getConsolidatedExchangeRates(RecordId period, RecordId fromSubsidiary, RecordId toSubsidiary)
GetCustomizationIdResponse getCustomizationIds(GetCustomizationType type, boolean includeInactives)
GetDataCenterUrlsResponse getDataCenterUrls(GetDataCenterUrlsRequest request)
GetDeletedResponse getDeletedRecords(RecordType type, DateExpression expression)
GetItemAvailabilityResponse getItemAvailabilities(RecordReference recordReference, Date ifModifiedSince)
CxfPortProvider getPortProvider()
GetResponse getRecord(RecordReference record)
GetAllResponse getRecords(GetAllRecordType type)
GetSavedSearchResponse getSavedSearch(RecordType type)
Object getServerTime()
InitializeResponse initialize(InitializeType type, RecordReference recordReference)
void login()
List<SearchRow> savedFindRecords(SearchRecordType recordType, String searchId)
<T extends CustomFieldRef> List<T> unmapCustomField(T type, Map<String, Object> customFields)
UpdateInviteeStatusResponse updateInviteeStatus(RecordId eventId, CalendarEventAttendeeResponse status)
UpdateListResponse updateList(RecordType recordType, List<Map<String, Object>> recordsAttributes)
UpdateResponse updateRecord(RecordReference recordReference, Map<String, Object> recordAttributes)
UpsertListResponse upsertList(RecordType recordType, List<Map<String, Object>> records)
UpsertResponse upsertRecord(RecordReference recordReference, Map<String, Object> recordAttributes)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.module.netsuite.api.CxfPortProvider
From interface org.mule.module.netsuite.api.NetSuiteClient
From interface org.mule.module.netsuite.api.SoapNetSuiteClient

Fields

private final MapObjectMapper mom

private final CxfPortProvider portProvider

Public Constructors

public CxfNetSuiteClient (CxfPortProvider portProvider)

Parameters
portProvider

Public Methods

public AddListResponse addList (RecordType recordType, List<Map<String, Object>> recordsAttributes)

Parameters
recordType
recordsAttributes
Throws
Exception

public AddResponse addRecord (RecordType recordType, Map<String, Object> recordAttributes)

Parameters
recordType
recordAttributes
Throws
Exception

public AddResponse addRecordObject (RecordType recordType, Record record)

Parameters
recordType
record
Throws
Exception

public AsyncStatusResult asyncFindRecord (SearchRecordType recordType, String expression)

Parameters
recordType
expression
Throws
Exception

public AttachResponse attachRecord (RecordReference sourceRecord, RecordReference destinationRecord, RecordReference contactEntity)

Parameters
sourceRecord
destinationRecord
contactEntity
Throws
Exception

public AsyncStatusResult checkAsyncStatus (String jobId)

Parameters
jobId
Throws
Exception

public DeleteListResponse deleteList (List<Map<String, Object>> recordsToDelete)

Parameters
recordsToDelete
Throws
Exception

public DeleteResponse deleteRecord (RecordReference record)

Parameters
record
Throws
Exception

public DetachResponse detachRecord (RecordReference sourceEntity, RecordReference destinationEntity)

Parameters
sourceEntity
destinationEntity
Throws
Exception

public List<Record> findRecords (SearchRecordType recordType, String expression)

Parameters
recordType
expression
Throws
Exception

public List<Record> getAsyncFindResult (String jobId)

Parameters
jobId
Throws
Exception

public NetSuitePortType getAuthenticatedPort ()

Throws
Exception

public GetBudgetExchangeRateResponse getBudgetExchangeRates (RecordId period, RecordId fromSubsidiary, RecordId toSubsidiary)

Parameters
period
fromSubsidiary
toSubsidiary
Throws
Exception

public GetConsolidatedExchangeRateResponse getConsolidatedExchangeRates (RecordId period, RecordId fromSubsidiary, RecordId toSubsidiary)

Parameters
period
fromSubsidiary
toSubsidiary
Throws
Exception

public GetCustomizationIdResponse getCustomizationIds (GetCustomizationType type, boolean includeInactives)

Parameters
type
includeInactives
Throws
Exception

public GetDataCenterUrlsResponse getDataCenterUrls (GetDataCenterUrlsRequest request)

Parameters
request
Throws
Exception

public GetDeletedResponse getDeletedRecords (RecordType type, DateExpression expression)

Parameters
type
expression
Throws
Exception

public GetItemAvailabilityResponse getItemAvailabilities (RecordReference recordReference, Date ifModifiedSince)

Parameters
recordReference
ifModifiedSince
Throws
Exception

public CxfPortProvider getPortProvider ()

public GetResponse getRecord (RecordReference record)

Parameters
record
Throws
Exception

public GetAllResponse getRecords (GetAllRecordType type)

Parameters
type
Throws
Exception

public GetSavedSearchResponse getSavedSearch (RecordType type)

Parameters
type
Throws
Exception

public Object getServerTime ()

Throws
Exception

public InitializeResponse initialize (InitializeType type, RecordReference recordReference)

Parameters
type
recordReference
Throws
Exception

public void login ()

Throws
Exception

public List<SearchRow> savedFindRecords (SearchRecordType recordType, String searchId)

Parameters
recordType
searchId
Throws
Exception

public List<T> unmapCustomField (T type, Map<String, Object> customFields)

Parameters
type
customFields

public UpdateInviteeStatusResponse updateInviteeStatus (RecordId eventId, CalendarEventAttendeeResponse status)

Parameters
eventId
status
Throws
Exception

public UpdateListResponse updateList (RecordType recordType, List<Map<String, Object>> recordsAttributes)

Parameters
recordType
recordsAttributes
Throws
Exception

public UpdateResponse updateRecord (RecordReference recordReference, Map<String, Object> recordAttributes)

Parameters
recordReference
recordAttributes
Throws
Exception

public UpsertListResponse upsertList (RecordType recordType, List<Map<String, Object>> records)

Parameters
recordType
records
Throws
Exception

public UpsertResponse upsertRecord (RecordReference recordReference, Map<String, Object> recordAttributes)

Parameters
recordReference
recordAttributes
Throws
Exception