@Path(value="store/{storeId}")
public class StoreHandler
extends AbstractConfigBasedClassicHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CATEGORY_URL_KEY
The constant PERSON_URL_KEY.
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String |
DEFAULT_ACCESS_PROFILE
Deprecated.
Replaced with
DEFAULT_ONLINESTORE_PROFILENAME. |
static java.lang.String |
DEFAULT_ONLINESTORE_PROFILENAME
The default profile name being used when a profile name is not specified
using the
profileName query parameter. |
static java.lang.String |
DIRECTORY_KEY
The constant DIRECTORY_KEY.
|
static java.lang.String |
ESPOT_URL_TEMPLATE_KEY
The constant ESPOT_URL_TEMPLATE_KEY.
|
static java.lang.String |
FIND_BY_FINDALL_XPATH
The XPATH expression, used to retrieve the Store by findAllByUsage
|
static java.lang.String |
FIND_BY_FINDBYNAME_XPATH
The XPATH expression, used to retrieve the Store by findByStoreNameAndUsage
|
static java.lang.String |
FIND_BY_STORE_ID_XPATH
The XPATH expression, used to retrieve the OnlineStore by store ID.
|
static java.lang.String |
FORMAT_GROUP_NAME
The constant FORMAT_GROUP_NAME
|
static java.lang.String |
GEONODE_URL_KEY
The constant GUEST_IDENTITY_URL_KEY.
|
static java.lang.String |
GUEST_IDENTITY_URL_KEY
The constant GUEST_IDENTITY_URL_KEY.
|
static java.lang.String |
I_REQUEST_PROPERTIES
The constant I_REQUEST_PROPERTIES which returns all stores for by range query.
|
static java.lang.String |
INVENTORY_URL_KEY
The constant GUEST_IDENTITY_URL_KEY.
|
static java.lang.String |
LOGIN_IDENTITY_URL_KEY
The constant LOGIN_IDENTITY_URL_KEY.
|
static java.lang.String |
LTPA_IDENTITY_URL_KEY
The constant LTPAIDENTITY_URL_KEY.
|
static java.lang.String |
ORDER_HISTORY_URL_KEY
The constant ORDER_HISTORY_URL_KEY.
|
static java.lang.String |
ORDER_URL_KEY
The constant ORDER_URL_KEY.
|
static java.lang.String |
PERSON_URL_KEY
The constant PERSON_URL_KEY.
|
static java.lang.String |
PRODUCTVIEW_URL_KEY
The constant PERSON_URL_KEY.
|
static java.lang.String |
RESOURCE_MAPPING_KEY
The Constant RESOURCE_MAPPING_KEY.
|
static java.lang.String |
RESOURCE_NAME
The Constant RESOURCE_NAME.
|
static java.lang.String |
RESULT_LIST
The constant RESULT_LIST.
|
static java.lang.String |
SHOPPING_CART_URL_KEY
The constant SHOPPING_CART_URL_KEY.
|
static java.lang.String |
STORE_LOCATOR_URL_KEY
The constant SHOPPING_CART_URL_KEY.
|
static java.lang.String |
TOP_CATEGORIES_URL_KEY
The constant TOP_CATEGORIES_URL_KEY.
|
static java.lang.String |
USAGE_STORE_MANAGEMENT_TOOL
The constant USAGE_STORE_MANAGEMENT_TOOL which returns all stores for by range query.
|
static java.lang.String |
WCS_CALCULATION_METHOD_ID
The constant WCS_CALCULATION_METHOD_ID.
|
static java.lang.String |
WISHLIST_URL_KEY
The constant TOP_CATEGORIES_URL_KEY.
|
APPLICATION_ATOM_XML, APPLICATION_JSON, APPLICATION_XHTML_XML, APPLICATION_XML, CHANGE_VERB, PARAMETER_ACTION, PARAMETER_ACTION_DESCRIPTION, PARAMETER_CATALOG_ID, PARAMETER_CATALOG_ID_DESCRIPTION, PARAMETER_CURRENCY, PARAMETER_CURRENCY_DESCRIPTION, PARAMETER_FOR_USER, PARAMETER_FOR_USER_DESCRIPTION, PARAMETER_FOR_USER_ID, PARAMETER_FOR_USER_ID_DESCRIPTION, PARAMETER_LANG_ID, PARAMETER_LANG_ID_DESCRIPTION, PARAMETER_LOCALE, PARAMETER_LOCALE_DESCRIPTION, PARAMETER_MODE, PARAMETER_MODE_DESCRIPTION, PARAMETER_PAGE_NUMBER, PARAMETER_PAGE_NUMBER_DESCRIPTION, PARAMETER_PAGE_SIZE, PARAMETER_PAGE_SIZE_DESCRIPTION, PARAMETER_PROFILE_NAME, PARAMETER_PROFILE_NAME_DESCRIPTION, PARAMETER_QUERY, PARAMETER_QUERY_DESCRIPTION, PARAMETER_RESET_PASSWORD_DESCRIPTION, PARAMETER_RESPONSE_FORMAT, PARAMETER_RESPONSE_FORMAT_DESCRIPTION, PARAMETER_STORE_ID, PARAMETER_STORE_ID_DESCRIPTION, PARAMETER_WORKSPACE_IDENTIFIER, PARAMETER_WORKSPACE_IDENTIFIER_DESCRIPTION, PARAMETER_WORKSPACE_NAME, PARAMETER_WORKSPACE_NAME_DESCRIPTION, PARAMETER_WORKSPACE_TASK, PARAMETER_WORKSPACE_TASK_DESCRIPTION, PARAMETER_WORKSPACE_TASKGROUP, PARAMETER_WORKSPACE_TASKGROUP_DESCRIPTION, PROCESS_VERB, RESPONSE_200_DESCRIPTION, RESPONSE_201_DESCRIPTION, RESPONSE_204_DESCRIPTION, RESPONSE_400_DESCRIPTION, RESPONSE_401_DESCRIPTION, RESPONSE_403_DESCRIPTION, RESPONSE_404_DESCRIPTION, RESPONSE_500_DESCRIPTION| Constructor and Description |
|---|
StoreHandler() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
fetchStore(java.lang.String storeId,
java.lang.String responseFormat)
Fetch store.
|
javax.ws.rs.core.Response |
findAllByUsage(java.lang.String storeId)
This method returns the store details by specified store name and usage
|
javax.ws.rs.core.Response |
findByQuery(java.lang.String storeId,
java.lang.String queryName)
Finds stores by a query.
|
javax.ws.rs.core.Response |
findByQueryOnlineStore(java.lang.String storeId,
java.lang.String queryName)
Finds online store details by a query.
|
javax.ws.rs.core.Response |
findByQueryTaxInformation(java.lang.String storeId,
java.lang.String queryName)
Finds tax information for a store by a query.
|
javax.ws.rs.core.Response |
findByStoreNameAndUsage(java.lang.String storeId)
This method returns the store details by specified store name and usage
|
javax.ws.rs.core.Response |
findDataBean(java.lang.String storeId)
Executes the
StoreDataBean based on
the REST input and configuration mapping profile. |
javax.ws.rs.core.Response |
findOnlineStore(java.lang.String storeId)
This method returns the store details by specified store ID.
|
javax.ws.rs.core.Response |
findOnlineStoresByRange(java.lang.String storeId)
This method returns the store details of all stores with store IDs within a range of two numbers.
|
java.lang.String |
getFormattingGroupName()
(non-Javadoc)
|
javax.ws.rs.core.Response |
getRemoteConfig(java.lang.String storeId,
java.lang.String responseFormat)
Fetch remote store config.
|
java.lang.String |
getResourceName()
(non-Javadoc)
|
javax.ws.rs.core.Response |
getSalesTaxCalculationRule(java.lang.String storeId)
This method returns the sales tax calculation rule information for the store.
|
javax.ws.rs.core.Response |
getStoreAsset(java.lang.String storeId)
This method returns the asset at the specified path (relative or full) from the Watson Content Hub.
|
void |
initializeQueryRegistry(OperationRegistry registry)
Initializes the registry mapping between the query names and the methods being called to handle requests.
|
executeConfigBasedBean, executeConfigBasedBean, executeConfigBasedBeanWithContext, executeConfigBasedBeanWithContext, executeConfigBasedCommand, executeConfigBasedCommandWithContextcreateMapForProvider, createMapForProvider, generateResponseForEntireDataObject, getMapFromRequest, getStoreId, getUserId, isRequestInPreviewMode, mergeMapsForProvider, prepareAndValidateaddError, createMapForProviderWithResultData, documentApi, generateResponseFromHttpStatusCodeAndRespData, getActionRegistry, getBooleanParameterValue, getClassDescription, getDoubleParameterValue, getDoubleParameterValues, getEnumeratedParameterValue, getErrorCodeFromMessage, getExternalResourceName, getFormattedMessage, getFormattedMessageWithLocale, getInstrumentor, getIntegerParameterValue, getIntegerParameterValues, getLongParameterValue, getLongParameterValues, getParameterValue, getParameterValue, getParameterValues, getQueryRegistry, getRequest, getResponse, getUriInfo, handleException, initializeActionRegistry, performAction, postProcess, preProcess, registerOperationWithMethodSignature, runQuery, staticConvertStreamToString, throwInvalidQueryNameException, throwInvalidQueryNameException, throwRestException, throwRestExceptionIfErrorsAreDetected, validatePageNumberPageSizepublic static final java.lang.String COPYRIGHT
public static final java.lang.String FIND_BY_STORE_ID_XPATH
public static final java.lang.String FIND_BY_FINDALL_XPATH
public static final java.lang.String FIND_BY_FINDBYNAME_XPATH
public static final java.lang.String RESOURCE_NAME
public static final java.lang.String RESOURCE_MAPPING_KEY
public static final java.lang.String FORMAT_GROUP_NAME
public static final java.lang.String DIRECTORY_KEY
public static final java.lang.String CATEGORY_URL_KEY
public static final java.lang.String ESPOT_URL_TEMPLATE_KEY
public static final java.lang.String LOGIN_IDENTITY_URL_KEY
public static final java.lang.String LTPA_IDENTITY_URL_KEY
public static final java.lang.String GUEST_IDENTITY_URL_KEY
public static final java.lang.String GEONODE_URL_KEY
public static final java.lang.String INVENTORY_URL_KEY
public static final java.lang.String ORDER_HISTORY_URL_KEY
public static final java.lang.String ORDER_URL_KEY
public static final java.lang.String PERSON_URL_KEY
public static final java.lang.String PRODUCTVIEW_URL_KEY
public static final java.lang.String SHOPPING_CART_URL_KEY
public static final java.lang.String STORE_LOCATOR_URL_KEY
public static final java.lang.String TOP_CATEGORIES_URL_KEY
public static final java.lang.String WISHLIST_URL_KEY
public static final java.lang.String USAGE_STORE_MANAGEMENT_TOOL
public static final java.lang.String I_REQUEST_PROPERTIES
public static final java.lang.String RESULT_LIST
public static final java.lang.String WCS_CALCULATION_METHOD_ID
public static final java.lang.String DEFAULT_ACCESS_PROFILE
DEFAULT_ONLINESTORE_PROFILENAME.accessProfile query parameter.public static final java.lang.String DEFAULT_ONLINESTORE_PROFILENAME
profileName query parameter.public void initializeQueryRegistry(OperationRegistry registry)
initializeQueryRegistry in class AbstractBaseResourceHandlerregistry - The operation registry object.public java.lang.String getResourceName()
IResourceHandler.getResourceName()public java.lang.String getFormattingGroupName()
getFormattingGroupName in interface IResourceHandlergetFormattingGroupName in class AbstractBaseResourceHandlerAbstractBaseResourceHandler.getFormattingGroupName()@GET
@Path(value="storeAsset")
@Produces(value="*/*")
public javax.ws.rs.core.Response getStoreAsset(@PathParam(value="storeId")
java.lang.String storeId)
storeId - The store identifier.@GET
@Path(value="databean")
@Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
public javax.ws.rs.core.Response findDataBean(@PathParam(value="storeId")
java.lang.String storeId)
StoreDataBean based on
the REST input and configuration mapping profile.storeId - The store ID.@Path(value="online_store")
public javax.ws.rs.core.Response findOnlineStoresByRange(@PathParam(value="storeId")
java.lang.String storeId)
storeId - The store identifier.@Path(value="taxInformation")
public javax.ws.rs.core.Response getSalesTaxCalculationRule(@PathParam(value="storeId")
java.lang.String storeId)
storeId - The store identifier.@Path(value="online_store")
public javax.ws.rs.core.Response findOnlineStore(@PathParam(value="storeId")
java.lang.String storeId)
storeId - The store identifier.@GET
@Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
public javax.ws.rs.core.Response fetchStore(@PathParam(value="storeId")
java.lang.String storeId,
@QueryParam(value="responseFormat")
java.lang.String responseFormat)
storeId - the store idresponseFormat - the response format@GET
@Path(value="adminLookup")
@Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
public javax.ws.rs.core.Response findByQuery(@PathParam(value="storeId")
java.lang.String storeId,
@QueryParam(value="q")
java.lang.String queryName)
storeId - The store ID.queryName - The query name.@GET
@Path(value="taxInformation")
@Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
public javax.ws.rs.core.Response findByQueryTaxInformation(@PathParam(value="storeId")
java.lang.String storeId,
@QueryParam(value="q")
java.lang.String queryName)
storeId - The store ID.queryName - The query name.@GET
@Path(value="online_store")
@Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
public javax.ws.rs.core.Response findByQueryOnlineStore(@PathParam(value="storeId")
java.lang.String storeId,
@QueryParam(value="q")
java.lang.String queryName)
storeId - The store ID.queryName - The query name.@Path(value="adminLookup")
public javax.ws.rs.core.Response findAllByUsage(@PathParam(value="storeId")
java.lang.String storeId)
storeId - The store identifier.@Path(value="adminLookup")
public javax.ws.rs.core.Response findByStoreNameAndUsage(@PathParam(value="storeId")
java.lang.String storeId)
storeId - The store identifierOnlineStore. *@GET
@Path(value="remoteConfig")
@Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
public javax.ws.rs.core.Response getRemoteConfig(@PathParam(value="storeId")
java.lang.String storeId,
@QueryParam(value="responseFormat")
java.lang.String responseFormat)
storeId - the store idresponseFormat - the response format