@Path(value="store/{storeId}/catalog_entry") public class CatalogEntryHandler extends AbstractResourceHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice.
|
static java.lang.String |
PARAMETER_PARENT_PART_NUMBER_DESCRIPTION
The parent part number description
|
static java.lang.String |
PARAMETER_PART_NUMBER
The parameter part number
|
static java.lang.String |
PARAMETER_PART_NUMBER_DESCRIPTION
The part number description
|
APPLICATION_ATOM_XML, APPLICATION_JSON, APPLICATION_XHTML_XML, APPLICATION_XML, CHANGE_VERB, PARAMETER_ACTION, PARAMETER_ACTION_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 |
---|
CatalogEntryHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
byParentPartNumbers(java.lang.String storeId)
Finds all child catalog entries for the given part number of the parent catalog entry.
|
javax.ws.rs.core.Response |
byPartNumbers(java.lang.String storeId)
Finds all catalog entries for a given part number
|
javax.ws.rs.core.Response |
findByQuery(java.lang.String storeId,
java.lang.String queryName)
Finds catalog entries by a query.
|
javax.ws.rs.core.Response |
findBySearchTerm(java.lang.String storeId,
java.lang.String searchTerm)
Finds catalog entries under a catalog by search team.
|
java.lang.String |
getResourceName()
This method returns the name of the resource used primarily to determine
the representation of the resource.
|
void |
initializeQueryRegistry(OperationRegistry registry)
Initialize the query registry.
|
createMapForProvider, createMapForProvider, generateResponseForEntireDataObject, getMapFromRequest, getStoreId, getUserId, isRequestInPreviewMode, mergeMapsForProvider, prepareAndValidate
addError, createMapForProviderWithResultData, documentApi, generateResponseFromHttpStatusCodeAndRespData, getActionRegistry, getBooleanParameterValue, getClassDescription, getDoubleParameterValue, getDoubleParameterValues, getEnumeratedParameterValue, getErrorCodeFromMessage, getExternalResourceName, getFormattedMessage, getFormattedMessageWithLocale, getFormattingGroupName, getInstrumentor, getIntegerParameterValue, getIntegerParameterValues, getLongParameterValue, getLongParameterValues, getParameterValue, getParameterValue, getParameterValues, getQueryRegistry, getRequest, getResponse, getUriInfo, handleException, initializeActionRegistry, performAction, postProcess, preProcess, registerOperationWithMethodSignature, runQuery, staticConvertStreamToString, throwInvalidQueryNameException, throwInvalidQueryNameException, throwRestException, throwRestExceptionIfErrorsAreDetected, validatePageNumberPageSize
public static final java.lang.String COPYRIGHT
public static final java.lang.String PARAMETER_PART_NUMBER
public static final java.lang.String PARAMETER_PART_NUMBER_DESCRIPTION
public static final java.lang.String PARAMETER_PARENT_PART_NUMBER_DESCRIPTION
public java.lang.String getResourceName()
IResourceHandler
public void initializeQueryRegistry(OperationRegistry registry)
AbstractBaseResourceHandler
initializeQueryRegistry
in class AbstractBaseResourceHandler
registry
- The query registry to initialize.@GET @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.public javax.ws.rs.core.Response byPartNumbers(@PathParam(value="storeId") java.lang.String storeId)
storeId
- The store ID.public javax.ws.rs.core.Response byParentPartNumbers(@PathParam(value="storeId") java.lang.String storeId)
storeId
- The store ID.@GET @Path(value="bySearchTerm/{searchTerm}") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response findBySearchTerm(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="searchTerm") java.lang.String searchTerm)
storeId
- The store ID.searchTerm
- The search term