public class PageFactoryImpl extends BaseFactory implements PageFactory
| Modifier and Type | Field and Description |
|---|---|
protected PageProvider |
pageProvider |
cacheProvider, dataBinders, processors| Constructor and Description |
|---|
PageFactoryImpl() |
| 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
|
Page |
findPageByUrl(String url,
int publicationId) |
<T extends Page> |
findPageByUrl(String url,
int publicationId,
Class<T> pageModel) |
Page |
findPageByUrl(String url,
int publicationId,
RequestContext context) |
<T extends Page> |
findPageByUrl(String url,
int publicationId,
RequestContext context,
Class<T> pageModel) |
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)
This method explicitly used for querying the Broker Storage
for pages and returns raw content as string.
|
Page |
getPage(String uri) |
<T extends Page> |
getPage(String uri,
Class<T> pageModel) |
Page |
getPage(String uri,
RequestContext context) |
<T extends Page> |
getPage(String uri,
RequestContext context,
Class<T> pageModel) |
Boolean |
isPagePublished(String url,
int publicationId)
Method to check whether a page exists in the Tridion Broker.
|
void |
setPageProvider(PageProvider provider) |
executeProcessors, getDataBinders, getProcessors, selectDataBinder, setCacheProvider, setDataBinders, setProcessorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteProcessorsgetProcessors, setCacheProvider, setProcessorsprotected PageProvider pageProvider
public Page getPage(String uri) throws FactoryException
getPage in interface PageFactoryuri - of the pageFactoryExceptionpublic Page findPageByUrl(String url, int publicationId) throws FactoryException
findPageByUrl in interface PageFactoryurl - the url of the pagepublicationId - the publication IdFactoryExceptionpublic String findSourcePageByUrl(String url, int publicationId) throws FactoryException
findSourcePageByUrl in interface PageFactoryurl - the url of the pagepublicationId - the publication IdFactoryExceptionpublic String findSourcePageByTcmId(String tcmId) throws FactoryException
findSourcePageByTcmId in interface PageFactorytcmId - the Tcm Id of the pageFactoryExceptionpublic TCMURI findPageIdByUrl(String url, int publicationId) throws FactoryException
findPageIdByUrl in interface PageFactoryurl - the URLpublicationId - the Publication IdFactoryExceptionpublic Boolean isPagePublished(String url, int publicationId)
isPagePublished in interface PageFactoryurl - the Url to checkpublicationId - the publication Idpublic <T extends Page> T getPage(String uri, Class<T> pageModel) throws FactoryException
getPage in interface PageFactoryFactoryExceptionpublic Page getPage(String uri, RequestContext context) throws FactoryException
getPage in interface PageFactoryFactoryExceptionpublic <T extends Page> T getPage(String uri, RequestContext context, Class<T> pageModel) throws FactoryException
getPage in interface PageFactoryFactoryExceptionpublic Page findPageByUrl(String url, int publicationId, RequestContext context) throws FactoryException
findPageByUrl in interface PageFactoryFactoryExceptionpublic <T extends Page> T findPageByUrl(String url, int publicationId, Class<T> pageModel) throws FactoryException
findPageByUrl in interface PageFactoryFactoryExceptionpublic <T extends Page> T findPageByUrl(String url, int publicationId, RequestContext context, Class<T> pageModel) throws FactoryException
findPageByUrl in interface PageFactoryFactoryExceptionpublic <T extends Page> T deserialize(String source, Class<? extends T> clazz) throws FactoryException
deserialize in interface PageFactorysource - String representing the JSON encoded objectclazz - Class representing the implementation type to deserialize intoFactoryExceptionpublic void setPageProvider(PageProvider provider)
Copyright © 2018. All rights reserved.