Class QboConnectionProcessorImpl
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.importexport.QboConnectionProcessorImpl
- All Implemented Interfaces:
BusinessObject,BusinessProcessor,QboConnectionProcessor
public class QboConnectionProcessorImpl
extends BaseBusinessProcessor
implements QboConnectionProcessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Mapprotected voiddoExpirationDates(Map<String, Object> results, Map<String, Object> bearerTokenResponse, String sandboxOrLive) oauth2Callback(String authCode, String state, String realmId, String csrfToken) parseForErrors(Map responseMap) prepareRedirectUrl(String csrfToken) refreshQboConnection(Order order) voidretrieveBearerTokens(Map<String, String> params) voidvoidsendQboConnectionWarningEmail(Order order, String message) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getProductIDs, getSettings, getUser, initialize, isProcessorClassActive, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPGet, sendHTTPPost, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, updateOrderTotals, updateOrderTotals, updateOrderTotals, utilsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initializeMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessProcessor
getAppComponents, getAppSettings, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getSettings, getUser, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, utils
-
Field Details
-
log
static org.apache.commons.logging.Log log -
mapper
private static org.codehaus.jackson.map.ObjectMapper mapper
-
-
Constructor Details
-
QboConnectionProcessorImpl
public QboConnectionProcessorImpl()
-
-
Method Details
-
callDiscoveryDocument
- Specified by:
callDiscoveryDocumentin interfaceQboConnectionProcessor- Throws:
Exception
-
prepareRedirectUrl
- Specified by:
prepareRedirectUrlin interfaceQboConnectionProcessor- Throws:
Exception
-
oauth2Callback
public Map<String,Object> oauth2Callback(String authCode, String state, String realmId, String csrfToken) throws Exception - Specified by:
oauth2Callbackin interfaceQboConnectionProcessor- Throws:
Exception
-
retrieveBearerTokens
- Throws:
Exception
-
createBasicAuthorizationHeaders
-
doExpirationDates
-
refreshTokens
- Specified by:
refreshTokensin interfaceQboConnectionProcessor- Throws:
Exception
-
revokeTokens
- Specified by:
revokeTokensin interfaceQboConnectionProcessor- Throws:
Exception
-
refreshQboConnection
- Specified by:
refreshQboConnectionin interfaceQboConnectionProcessor- Throws:
Exception
-
refreshQboSettingsFromDatabase
- Specified by:
refreshQboSettingsFromDatabasein interfaceQboConnectionProcessor- Throws:
Exception
-
sendQboConnectionWarningEmail
- Specified by:
sendQboConnectionWarningEmailin interfaceQboConnectionProcessor
-
parseForErrors
-