@RestResource(id="atg.commerce.pricing.restresources.CurrencyRestResource") public class CurrencyRestResource extends GenericService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
CURRENCY_CODE |
static java.lang.String |
CURRENCY_SYMBOL |
static java.lang.String |
DISPLAY_NAME |
static java.lang.String |
FRACTIONAL_DIGITS |
static java.lang.String |
NUMERIC_CODE |
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
CurrencyRestResource() |
Modifier and Type | Method and Description |
---|---|
RepresentationModel |
getCurrency(java.lang.String pLocaleId)
Endpoint that provides a representation of a Currency from its Locale ID
|
java.util.Map<java.lang.String,java.lang.Object> |
getCurrencyDetails(java.util.Locale pLocale)
Supporting method used to build up the Map representation of a Currency that will
be parsed by the REST Framework.
|
PricingTools |
getPricingTools()
Returns property PricingTools
|
protected RepresentationModel.Builder |
getRepresentationModelBuilder(java.lang.Object pState)
Gets the RepresentationModel.Builder with the given object acting as the state.
|
void |
setPricingTools(PricingTools pPricingTools)
Sets property PricingTools
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
public static final java.lang.String CURRENCY_CODE
public static final java.lang.String DISPLAY_NAME
public static final java.lang.String FRACTIONAL_DIGITS
public static final java.lang.String NUMERIC_CODE
public static final java.lang.String CURRENCY_SYMBOL
public void setPricingTools(PricingTools pPricingTools)
pPricingTools
- - the PricingTools object to setpublic PricingTools getPricingTools()
@Endpoint(id="/currencies/{localeId}#GET", isSingular=true, filterId="currencies.id-Default") public RepresentationModel getCurrency(java.lang.String pLocaleId) throws RestException
pLocaleId
- - the locale from which the currency details will be retrievedRestException
public java.util.Map<java.lang.String,java.lang.Object> getCurrencyDetails(java.util.Locale pLocale)
pLocale
- - the Locale for which we derive the currency representationprotected RepresentationModel.Builder getRepresentationModelBuilder(java.lang.Object pState)
pState
- the state that will be added to the representation model