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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Map
protected void
doExpirationDates
(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) void
retrieveBearerTokens
(Map<String, String> params) void
void
sendQboConnectionWarningEmail
(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, utils
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
Methods 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:
callDiscoveryDocument
in interfaceQboConnectionProcessor
- Throws:
Exception
-
prepareRedirectUrl
- Specified by:
prepareRedirectUrl
in interfaceQboConnectionProcessor
- Throws:
Exception
-
oauth2Callback
public Map<String,Object> oauth2Callback(String authCode, String state, String realmId, String csrfToken) throws Exception - Specified by:
oauth2Callback
in interfaceQboConnectionProcessor
- Throws:
Exception
-
retrieveBearerTokens
- Throws:
Exception
-
createBasicAuthorizationHeaders
-
doExpirationDates
-
refreshTokens
- Specified by:
refreshTokens
in interfaceQboConnectionProcessor
- Throws:
Exception
-
revokeTokens
- Specified by:
revokeTokens
in interfaceQboConnectionProcessor
- Throws:
Exception
-
refreshQboConnection
- Specified by:
refreshQboConnection
in interfaceQboConnectionProcessor
- Throws:
Exception
-
refreshQboSettingsFromDatabase
- Specified by:
refreshQboSettingsFromDatabase
in interfaceQboConnectionProcessor
- Throws:
Exception
-
sendQboConnectionWarningEmail
- Specified by:
sendQboConnectionWarningEmail
in interfaceQboConnectionProcessor
-
parseForErrors
-