use of org.talend.components.netsuite.client.model.CustomFieldDesc in project components by Talend.
the class CustomMetaDataRetrieverImpl method retrieveCustomRecordCustomFields.
@Override
public Map<String, CustomFieldDesc> retrieveCustomRecordCustomFields(RecordTypeDesc recordType, NsRef nsCustomizationRef) throws NetSuiteException {
List<?> customizationList = retrieveCustomizations(Collections.singletonList(nsCustomizationRef));
if (customizationList.isEmpty()) {
return null;
}
CustomRecordType customRecordType = (CustomRecordType) customizationList.get(0);
List<?> customFieldList = customRecordType.getCustomFieldList().getCustomField();
Map<String, CustomFieldDesc> customFieldDescMap = DefaultCustomMetaDataSource.createCustomFieldDescMap(clientService, recordType, BasicRecordType.getByType(nsCustomizationRef.getType()), customFieldList);
return customFieldDescMap;
}
Aggregations