public class

NetSuiteClientImpl

extends Object
implements NetSuiteClient
java.lang.Object
   ↳ org.mule.module.netsuite.api.NetSuiteClientImpl

Class Overview

Implementation of the NetSuiteClient that uses CXF generated-based interface

Summary

Fields
private final String account
private final String address
private final String email
private final MapObjectMapper mom
private final String password
private NetSuitePortType port
private SearchPreferencesInjectHandler preferencesInjector
private final String roleId
Public Constructors
NetSuiteClientImpl(String address, String email, String password, String account, String roleId)
Public Methods
List<WriteResponse> addList(RecordType recordType, List<Map<String, Object>> recordsAttributes)
void addPreferences(Object preferences)
WriteResponse addRecord(RecordType recordType, Map<String, Object> recordAttributes)
WriteResponse addRecordObject(Record record)
AsyncStatusResult asyncAddList(RecordType recordType, List<Map<String, Object>> recordsAttributes)
AsyncStatusResult asyncAddListRecords(List<Record> records)
AsyncStatusResult asyncDeleteList(List<BaseRefType> records)
AsyncStatusResult asyncDeleteListRecords(List<RecordRef> records)
AsyncStatusResult asyncGetList(List<BaseRefType> records)
AsyncStatusResult asyncGetListRecords(List<RecordRef> records)
AsyncStatusResult asyncInitializeList(List<InitializeRecord> initializeRecord)
AsyncStatusResult asyncSearch(SearchRecordTypeEnum recordType, String expression, SearchPreferences preferences)
AsyncStatusResult asyncUpdateList(RecordType recordType, List<Map<String, Object>> recordsAttributes)
AsyncStatusResult asyncUpdateListRecords(List<Record> records)
AsyncStatusResult asyncUpsertList(RecordType recordType, List<Map<String, Object>> recordsAttributes)
AsyncStatusResult asyncUpsertListRecords(List<Record> records)
WriteResponse attachRecord(RecordRef sourceRef, RecordRef destinationRef, RecordRef contactEntityRef, RecordRef roleRef)
SessionResponse changeEmail(String newEmail, Boolean justThisAccount)
SessionResponse changePassword(String newPassword, Boolean justThisAccount)
AsyncStatusResult checkAsyncStatus(String jobId)
WriteResponse delete(BaseRefType record)
List<WriteResponse> deleteList(List<BaseRefType> recordsToDelete)
WriteResponse deleteRecord(RecordRef record)
List<WriteResponse> deleteRecordsList(List<RecordRef> recordsToDelete)
WriteResponse detachRecord(RecordRef source, RecordRef destination)
ReadResponse get(BaseRefType baseRef)
AsyncResult getAsyncResult(String jobId, int pageIndex)
GetBudgetExchangeRateResult getBudgetExchangeRates(RecordRef period, RecordRef fromSubsidiary, RecordRef toSubsidiary)
GetConsolidatedExchangeRateResult getConsolidatedExchangeRates(RecordRef period, RecordRef fromSubsidiary, RecordRef toSubsidiary)
GetCurrencyRateResult getCurrentRate(CurrencyRateFilter rateFilter)
GetCustomizationIdResult getCustomizationIds(GetCustomizationType type, boolean includeInactives)
GetDataCenterUrlsResult getDataCenterUrls(String account)
GetDeletedResult getDeletedRecords(RecordType type, DateExpression expression)
GetItemAvailabilityResult getItemAvailability(RecordRef recordReference, Date ifModifiedSince)
List<ReadResponse> getList(List<? extends BaseRef> references)
NetSuitePortType getPort()
GetPostingTransactionSummaryResult getPostingTransactionSummary(PostingTransactionSummaryField fields, PostingTransactionSummaryFilter filters, int pageIndex)
ReadResponse getRecord(RecordRef record)
GetAllResponse getRecords(GetAllRecordType type)
GetSavedSearchResult getSavedSearch(RecordType type)
GetSelectValueResult getSelectValue(int page, GetSelectValueFieldDescription fieldDescriptor)
XMLGregorianCalendar getServerTime()
ReadResponse initialize(InitializeRecord record)
List<ReadResponse> initializeList(List<InitializeRecord> initializeRecord)
void login()
void logout()
SessionResponse mapSso(String account, String partnerId, String authenticationToken, String email, String password, RecordRef role)
SearchResult search(SearchRecordTypeEnum searchRecord, Map<String, Object> criteria, SearchPreferences preferences)
SearchResult search(SearchRecord searchQuery, SearchPreferences preferences)
SearchResult searchMore(int pageIndex)
SearchResult searchMoreWithId(String searchId, int pageIndex)
SearchResult searchNext()
SearchResult searchWithExpression(SearchRecordTypeEnum searchRecord, String expression, SearchPreferences preferences)
SessionResponse ssoLogin(String partnerAccount, String partnerId, String authenticationToken)
<T extends CustomFieldRef> List<T> unmapCustomField(T type, Map<String, Object> customFields)
WriteResponse updateInviteeStatus(RecordRef eventId, CalendarEventAttendeeResponse status)
List<WriteResponse> updateInviteeStatusList(List<UpdateInviteeStatusReference> updateInviteeStatusReference)
List<WriteResponse> updateList(RecordType recordType, List<Map<String, Object>> recordsAttributes)
WriteResponse updateRecord(RecordType recordType, Map<String, Object> recordAttributes)
List<WriteResponse> updateRecordsList(List<? extends Record> records)
UpsertListResponse upsertList(RecordType recordType, List<Map<String, Object>> records)
WriteResponse upsertRecord(RecordType recordType, Map<String, Object> recordAttributes)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.module.netsuite.api.NetSuiteClient

Fields

private final String account

private final String address

private final String email

private final MapObjectMapper mom

private final String password

private NetSuitePortType port

private SearchPreferencesInjectHandler preferencesInjector

private final String roleId

Public Constructors

public NetSuiteClientImpl (String address, String email, String password, String account, String roleId)

Parameters
address
email
password
account
roleId

Public Methods

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

public void addPreferences (Object preferences)

Parameters
preferences

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

public AsyncStatusResult asyncAddList (RecordType recordType, List<Map<String, Object>> recordsAttributes)

public AsyncStatusResult asyncSearch (SearchRecordTypeEnum recordType, String expression, SearchPreferences preferences)

public AsyncStatusResult asyncUpdateList (RecordType recordType, List<Map<String, Object>> recordsAttributes)

public AsyncStatusResult asyncUpsertList (RecordType recordType, List<Map<String, Object>> recordsAttributes)

public WriteResponse attachRecord (RecordRef sourceRef, RecordRef destinationRef, RecordRef contactEntityRef, RecordRef roleRef)

public SessionResponse changeEmail (String newEmail, Boolean justThisAccount)

public SessionResponse changePassword (String newPassword, Boolean justThisAccount)

public GetDataCenterUrlsResult getDataCenterUrls (String account)

public NetSuitePortType getPort ()

public SessionResponse mapSso (String account, String partnerId, String authenticationToken, String email, String password, RecordRef role)

public SearchResult searchWithExpression (SearchRecordTypeEnum searchRecord, String expression, SearchPreferences preferences)

public SessionResponse ssoLogin (String partnerAccount, String partnerId, String authenticationToken)

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

Parameters
type
customFields

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

public WriteResponse updateRecord (RecordType recordType, Map<String, Object> recordAttributes)

public WriteResponse upsertRecord (RecordType recordType, Map<String, Object> recordAttributes)