@Path(value="store/{storeId}/page") public class PageHandler extends AbstractResourceHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
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 |
---|
PageHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
byCatalogEntryIds(java.lang.String storeId)
Finds pages by catalog entry IDs.
|
javax.ws.rs.core.Response |
byCategoryIds(java.lang.String storeId)
Finds pages by category IDs.
|
javax.ws.rs.core.Response |
byNames(java.lang.String storeId)
Finds pages by their names.
|
javax.ws.rs.core.Response |
byPageIds(java.lang.String storeId)
Finds pages by their IDs.
|
javax.ws.rs.core.Response |
byUrlConfigurable(java.lang.String storeId)
Finds content pages with or without configurable URLs.
|
javax.ws.rs.core.Response |
findByName(java.lang.String storeId,
java.lang.String name)
Finds a page by its name.
|
javax.ws.rs.core.Response |
findByPageId(java.lang.String storeId,
java.lang.String pageId)
Finds a page by its ID.
|
javax.ws.rs.core.Response |
findByQuery(java.lang.String storeId,
java.lang.String queryName)
Finds pages by a query.
|
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 java.lang.String getResourceName()
IResourceHandler
public void initializeQueryRegistry(OperationRegistry registry)
AbstractBaseResourceHandler
initializeQueryRegistry
in class AbstractBaseResourceHandler
registry
- The query registry to initialize.@GET @Path(value="{pageId}") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response findByPageId(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="pageId") java.lang.String pageId)
storeId
- The store ID.pageId
- The page ID.@GET @Path(value="name/{name}") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response findByName(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="name") java.lang.String name)
storeId
- The store ID.name
- The page name.@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 byPageIds(@PathParam(value="storeId") java.lang.String storeId)
storeId
- The store ID.public javax.ws.rs.core.Response byNames(@PathParam(value="storeId") java.lang.String storeId)
storeId
- The store ID.public javax.ws.rs.core.Response byUrlConfigurable(@PathParam(value="storeId") java.lang.String storeId)
storeId
- The store ID.public javax.ws.rs.core.Response byCatalogEntryIds(@PathParam(value="storeId") java.lang.String storeId)
storeId
- The store ID.public javax.ws.rs.core.Response byCategoryIds(@PathParam(value="storeId") java.lang.String storeId)
storeId
- The store ID.