| Modifier and Type | Method and Description |
|---|---|
<T extends Page> |
deserialize(String source,
Class<? extends T> clazz)
Deserializes a JSON encoded String into an object of the given type, which must
derive from the Page interface
|
void |
executeProcessors(Item item,
RunPhase runPhase,
RequestContext context) |
Page |
findPageByUrl(String url,
int publicationId)
Find page by its URL.
|
<T extends Page> |
findPageByUrl(String url,
int publicationId,
Class<T> pageModel)
Find page by its URL.
|
Page |
findPageByUrl(String url,
int publicationId,
RequestContext context)
Find page by its URL.
|
<T extends Page> |
findPageByUrl(String url,
int publicationId,
RequestContext context,
Class<T> pageModel)
Find page by its URL.
|
TCMURI |
findPageIdByUrl(String url,
int publicationId)
Find the TCM Uri of a page by URL
|
String |
findSourcePageByTcmId(String tcmId)
Find the source of the Page by Tcm Id.
|
String |
findSourcePageByUrl(String url,
int publicationId)
Find the source of the Page by Url.
|
Page |
getPage(String uri)
Get a page by its URI.
|
<T extends Page> |
getPage(String uri,
Class<T> pageModel)
Get a Page by its URI.
|
Page |
getPage(String uri,
RequestContext context)
Get a page by its URI.
|
<T extends Page> |
getPage(String uri,
RequestContext context,
Class<T> pageModel)
Get a Page by its URI.
|
Boolean |
isPagePublished(String url,
int publicationId)
Method to check whether a page exists in the Tridion Broker.
|
getProcessors, setCacheProvider, setProcessorsvoid executeProcessors(Item item, RunPhase runPhase, RequestContext context) throws FactoryException
FactoryExceptionPage getPage(String uri) throws FactoryException
uri - of the pageFactoryExceptionPage getPage(String uri, RequestContext context) throws FactoryException
uri - of the pagecontext - describing the current request to be passed on to processorsFactoryException<T extends Page> T getPage(String uri, Class<T> pageModel) throws FactoryException
T - the Type to returnuri - the page UripageModel - the Class to deserialize intoFactoryException<T extends Page> T getPage(String uri, RequestContext context, Class<T> pageModel) throws FactoryException
T - the Type to returnuri - the page UripageModel - the Class to deserialize intoFactoryExceptionPage findPageByUrl(String url, int publicationId) throws FactoryException
url - of the pagepublicationId - of the publicationFactoryExceptionPage findPageByUrl(String url, int publicationId, RequestContext context) throws FactoryException
url - of the pagepublicationId - of the publicationcontext - describing the current request to be passed on to processorsFactoryException<T extends Page> T findPageByUrl(String url, int publicationId, Class<T> pageModel) throws FactoryException
FactoryException<T extends Page> T findPageByUrl(String url, int publicationId, RequestContext context, Class<T> pageModel) throws FactoryException
FactoryExceptionString findSourcePageByUrl(String url, int publicationId) throws FactoryException
FactoryExceptionString findSourcePageByTcmId(String tcmId) throws FactoryException
tcmId - the Tcm Id of the pageFactoryExceptionTCMURI findPageIdByUrl(String url, int publicationId) throws FactoryException
url - the URLpublicationId - the Publication IdFactoryException<T extends Page> T deserialize(String source, Class<? extends T> clazz) throws FactoryException
source - String representing the JSON encoded objectclazz - Class representing the implementation type to deserialize intoFactoryExceptionCopyright © 2017. All rights reserved.