public final class SageoneConfigImpl extends java.lang.Object implements SageoneConfig
Modifier and Type | Field and Description |
---|---|
private static java.lang.Integer |
DEFAULT_LEDGER_ACCOUNT_NOMINALCODE_FOR_INVOICES |
private static java.lang.Integer |
DEFAULT_LEDGER_ACCOUNT_NOMINALCODE_FOR_PAYMENTS |
private static java.lang.String |
DEFAULT_NO_ADDRESS_MESSAGE |
private static java.lang.String |
DEFAULT_PAYMENT_NAME |
private static java.lang.String |
DEFAULT_SHIPPING_NAME |
private static java.lang.Integer |
DEFAULT_TERM_OF_PAYMENT_DAYS |
private static java.lang.Integer |
EPAGES_API_ORDERS_PER_PAGE |
(package private) static java.lang.String |
EPAGESJ_INTEGRATION_VERSION |
private static java.lang.Integer |
INITIAL_TIMESPAN_TO_SYNC_IN_WEEKS |
private static java.lang.String[] |
LOG_BLACKLIST |
private static java.lang.String |
SAGE_API_BASE_URL |
private static java.lang.String |
SAGE_API_CLIENT_ID |
private static java.lang.String |
SAGE_API_CLIENT_SECRET |
private static java.lang.String |
SAGE_API_CLIENT_SIGNIGN_SECRET |
private static java.lang.String |
SAGE_API_DATE_FORMAT |
private static java.util.Locale |
SAGE_API_LOCALE |
private static java.lang.Integer |
SAGE_API_MAX_LENGTH_EMAIL |
private static java.lang.Integer |
SAGE_API_MAX_LENGTH_FULLNAME |
private static java.lang.Integer |
SAGE_API_MAX_LENGTH_LINEITEM_DESCRIPTION |
private static java.lang.String |
SAGE_API_RESOURCE_CONTACTS |
private static java.lang.String |
SAGE_API_RESOURCE_LEDGERACCOUNTS |
private static java.lang.String |
SAGE_API_RESOURCE_OAUTH2 |
private static java.lang.String |
SAGE_API_RESOURCE_OAUTHTOKEN |
private static java.lang.String |
SAGE_API_RESOURCE_SALESINVOICES |
private static java.lang.String |
SAGE_API_RESOURCE_SPECIFIC_CONTACT |
private static java.lang.String |
SAGE_API_RESOURCE_SPECIFIC_SALESINVOICE |
private static java.lang.String |
SAGE_API_RESOURCE_TAXRATES |
private static java.lang.String |
SAGE_BOARDING_BASE_URL |
private static java.util.Currency[] |
SUPPORTED_CURRENCIES |
private static java.lang.String[] |
SUPPORTED_SHIPPING_COUNTRYS |
ACCESS_TOKEN_TTL_IN_MS, MAX_CACHE_ENTRIES, SYNCHRONIZATION_TIME_LIMIT, TAX_RATES_TTL_IN_MS
Constructor and Description |
---|
SageoneConfigImpl(org.apache.commons.configuration.Configuration config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClientId()
Provides the Sage-application client id.
|
java.lang.String |
getClientSecret()
Provides the Sage-application client secret.
|
org.joda.time.DateTime |
getDefaultInitialSyncTime()
Provides the timestamp to fetch orders for the
initial synchronization run.
|
java.lang.Integer |
getDefaultLedgerAccountNominalCodeForInvoices()
Provides the nominal code of the ledger account
supposed to be used as default for sales invoices.
|
java.lang.Integer |
getDefaultLedgerAccountNominalCodeForPayments()
Provides the nominal code of the ledger account
supposed to be used as default for payments.
|
java.lang.Integer |
getDefaultTermsOfPaymentDays()
Provides the default amount of days for terms of payment.
|
int |
getEmailMaxLength()
Provides the length limitation for email addresses.
|
java.lang.String |
getIntegrationVersion()
Provides the used version number of the connector.
|
java.util.Locale |
getLocale()
Provides a locale applicable for the used API version.
|
java.util.List<java.lang.String> |
getLoggerBlackList()
Provides a list of params that are supposed to be masked
while logging.
|
int |
getMaxItemDescriptionLength()
Provides the length limitation for the description length of lineitems.
|
int |
getMaxNameLength()
Provides the length limitation for contact names.
|
java.lang.String |
getNoAddressMessage()
Provides string to display in case we miss any address information.
|
java.lang.Integer |
getOrdersPerPage()
Provides the amount of orders requested per page
from epages6 environment.
|
java.lang.String |
getPaymentDefaultName()
Provides a fall back name for payment methods without a name.
|
java.lang.String |
getSageApiBasePath()
Provides the base path of sage-API to use.
|
java.lang.String |
getSageApiTokenResource()
Provides the resource path for access-tokens of the sage-API to use.
|
java.lang.String |
getSageContactsResource()
Provides the resource path for contacts.
|
java.lang.String |
getSageDateFormat()
Provides the date-format expected by the sage-API.
|
java.lang.String |
getSageLedgerAccountsResource()
Provides the resource path for ledger accounts.
|
java.lang.String |
getSageoneBoardingResource()
Provides the resource path for oAuth onboarding.
|
java.lang.String |
getSageoneBoardingUrlBase()
Provides the base url for the oAuth onboarding.
|
java.lang.String |
getSageSalesInvoicesResource()
Provides the resource path for sales invoices.
|
java.lang.String |
getSageSpecificContactResource()
Provides the resource path for a specific contact.
|
java.lang.String |
getSageSpecificSalesInvoiceResource()
Provides the resource path for a specific sales invoice.
|
java.lang.String |
getSageTaxratesResource()
Provides the resource path for tax rates.
|
java.lang.String |
getShippingDefaultName()
Provides a fall back name for shipping methods without a name.
|
java.lang.String |
getSigningSecret()
Provides the Sage-application signing secret.
|
java.util.List<java.util.Currency> |
getSupportedCurrencies()
Provides a list of all supported currencies.
|
java.util.List<java.lang.String> |
getSupportedShippingCountrys()
Provides a list of all supported shipping destination countrys.
|
static final java.lang.String EPAGESJ_INTEGRATION_VERSION
private static final java.lang.String[] LOG_BLACKLIST
private static final java.lang.String SAGE_API_CLIENT_ID
private static final java.lang.String SAGE_API_CLIENT_SECRET
private static final java.lang.String SAGE_API_CLIENT_SIGNIGN_SECRET
private static final java.lang.String SAGE_API_BASE_URL
private static final java.lang.String SAGE_BOARDING_BASE_URL
private static final java.lang.String SAGE_API_RESOURCE_OAUTHTOKEN
private static final java.lang.String SAGE_API_RESOURCE_OAUTH2
private static final java.lang.String SAGE_API_RESOURCE_CONTACTS
private static final java.lang.String SAGE_API_RESOURCE_SPECIFIC_CONTACT
private static final java.lang.String SAGE_API_RESOURCE_SALESINVOICES
private static final java.lang.String SAGE_API_RESOURCE_SPECIFIC_SALESINVOICE
private static final java.lang.String SAGE_API_RESOURCE_TAXRATES
private static final java.lang.String SAGE_API_RESOURCE_LEDGERACCOUNTS
private static final java.util.Locale SAGE_API_LOCALE
private static final java.lang.String SAGE_API_DATE_FORMAT
private static final java.lang.Integer SAGE_API_MAX_LENGTH_EMAIL
private static final java.lang.Integer SAGE_API_MAX_LENGTH_FULLNAME
private static final java.lang.Integer SAGE_API_MAX_LENGTH_LINEITEM_DESCRIPTION
private static final java.lang.Integer EPAGES_API_ORDERS_PER_PAGE
private static final java.lang.Integer INITIAL_TIMESPAN_TO_SYNC_IN_WEEKS
private static final java.lang.Integer DEFAULT_TERM_OF_PAYMENT_DAYS
private static final java.lang.String DEFAULT_NO_ADDRESS_MESSAGE
private static final java.lang.String DEFAULT_PAYMENT_NAME
private static final java.lang.String DEFAULT_SHIPPING_NAME
private static final java.lang.Integer DEFAULT_LEDGER_ACCOUNT_NOMINALCODE_FOR_INVOICES
private static final java.lang.Integer DEFAULT_LEDGER_ACCOUNT_NOMINALCODE_FOR_PAYMENTS
private static final java.util.Currency[] SUPPORTED_CURRENCIES
private static final java.lang.String[] SUPPORTED_SHIPPING_COUNTRYS
@Inject public SageoneConfigImpl(org.apache.commons.configuration.Configuration config)
public java.util.List<java.lang.String> getLoggerBlackList()
SageoneConfig
getLoggerBlackList
in interface SageoneConfig
public java.lang.String getSageoneBoardingUrlBase()
SageoneConfig
getSageoneBoardingUrlBase
in interface SageoneConfig
public java.lang.String getSageoneBoardingResource()
SageoneConfig
getSageoneBoardingResource
in interface SageoneConfig
public java.lang.String getClientId()
SageoneConfig
getClientId
in interface SageoneConfig
public java.lang.String getClientSecret()
SageoneConfig
getClientSecret
in interface SageoneConfig
public java.lang.String getSigningSecret()
SageoneConfig
getSigningSecret
in interface SageoneConfig
public java.lang.String getSageApiBasePath()
SageoneConfig
getSageApiBasePath
in interface SageoneConfig
public java.lang.String getSageApiTokenResource()
SageoneConfig
getSageApiTokenResource
in interface SageoneConfig
public java.lang.String getSageContactsResource()
SageoneConfig
getSageContactsResource
in interface SageoneConfig
public java.lang.String getSageSpecificContactResource()
SageoneConfig
getSageSpecificContactResource
in interface SageoneConfig
public java.lang.String getSageSalesInvoicesResource()
SageoneConfig
getSageSalesInvoicesResource
in interface SageoneConfig
public java.lang.String getSageSpecificSalesInvoiceResource()
SageoneConfig
getSageSpecificSalesInvoiceResource
in interface SageoneConfig
public java.lang.String getSageTaxratesResource()
SageoneConfig
getSageTaxratesResource
in interface SageoneConfig
public java.lang.String getSageLedgerAccountsResource()
SageoneConfig
getSageLedgerAccountsResource
in interface SageoneConfig
public java.lang.String getSageDateFormat()
SageoneConfig
getSageDateFormat
in interface SageoneConfig
public java.lang.Integer getDefaultLedgerAccountNominalCodeForInvoices()
SageoneConfig
getDefaultLedgerAccountNominalCodeForInvoices
in interface SageoneConfig
public java.lang.Integer getDefaultLedgerAccountNominalCodeForPayments()
SageoneConfig
getDefaultLedgerAccountNominalCodeForPayments
in interface SageoneConfig
public java.lang.Integer getOrdersPerPage()
SageoneConfig
getOrdersPerPage
in interface SageoneConfig
public org.joda.time.DateTime getDefaultInitialSyncTime()
SageoneConfig
getDefaultInitialSyncTime
in interface SageoneConfig
public java.lang.Integer getDefaultTermsOfPaymentDays()
SageoneConfig
getDefaultTermsOfPaymentDays
in interface SageoneConfig
public java.util.List<java.util.Currency> getSupportedCurrencies()
SageoneConfig
getSupportedCurrencies
in interface SageoneConfig
public java.util.List<java.lang.String> getSupportedShippingCountrys()
SageoneConfig
getSupportedShippingCountrys
in interface SageoneConfig
public int getEmailMaxLength()
SageoneConfig
getEmailMaxLength
in interface SageoneConfig
public int getMaxNameLength()
SageoneConfig
getMaxNameLength
in interface SageoneConfig
public java.lang.String getNoAddressMessage()
SageoneConfig
getNoAddressMessage
in interface SageoneConfig
public int getMaxItemDescriptionLength()
SageoneConfig
getMaxItemDescriptionLength
in interface SageoneConfig
public java.lang.String getPaymentDefaultName()
SageoneConfig
getPaymentDefaultName
in interface SageoneConfig
public java.lang.String getShippingDefaultName()
SageoneConfig
getShippingDefaultName
in interface SageoneConfig
public java.util.Locale getLocale()
SageoneConfig
getLocale
in interface SageoneConfig
public java.lang.String getIntegrationVersion()
SageoneConfig
getIntegrationVersion
in interface SageoneConfig