public class BrokerPageProvider extends BaseBrokerProvider implements PageProvider
cacheProvider, contentIsBase64Encoded, contentIsCompressed| Constructor and Description |
|---|
BrokerPageProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPageExists(String url,
int publicationId) |
org.joda.time.DateTime |
getLastPublishDate(String url,
int publication) |
PageProviderResultItem<String> |
getPageById(int id,
int publication) |
PageProviderResultItem<String> |
getPageByURL(String url,
int publication) |
String |
getPageContentById(int id,
int publication)
Retrieves content of a Page by looking the page up by its item id and Publication id.
|
String |
getPageContentById(String tcmUri) |
String |
getPageContentByURL(String url,
int publication)
Retrieves content of a Page by looking the page up by its URL.
|
TCMURI |
getPageIdForUrl(String url,
int publicationId) |
String |
getPageListByPublicationId(int publication)
Retrieves a list of URLs for all published Tridion Pages in a Publication.
|
com.tridion.meta.PageMeta |
getPageMetaById(int id,
int publication)
Retrieves metadata of a Page by looking the page up by its item id and Publication id.
|
com.tridion.meta.PageMeta |
getPageMetaByURL(String url,
int publication)
Retrieves metadata of a Page by looking the page up by its URL.
|
protected static com.sdl.web.api.meta.WebPageMetaFactory |
getWebPageMetaFactory(int publication) |
convertStreamToString, decodeAndDecompressContent, encodeUrl, getKey, isContentIsBase64Encoded, setCacheProvider, setContentIsBase64Encoded, setContentIsCompressedpublic PageProviderResultItem<String> getPageById(int id, int publication) throws IOException, org.dd4t.core.exceptions.ItemNotFoundException, org.dd4t.core.exceptions.SerializationException
getPageById in interface PageProviderIOExceptionorg.dd4t.core.exceptions.ItemNotFoundExceptionorg.dd4t.core.exceptions.SerializationExceptionpublic PageProviderResultItem<String> getPageByURL(String url, int publication) throws org.dd4t.core.exceptions.ItemNotFoundException, org.dd4t.core.exceptions.SerializationException
getPageByURL in interface PageProviderorg.dd4t.core.exceptions.ItemNotFoundExceptionorg.dd4t.core.exceptions.SerializationExceptionpublic String getPageContentById(int id, int publication) throws org.dd4t.core.exceptions.ItemNotFoundException, org.dd4t.core.exceptions.SerializationException
getPageContentById in interface PageProviderid - int representing the page item idpublication - int representing the Publication id of the pageorg.dd4t.core.exceptions.ItemNotFoundException - if the requested page does not existorg.dd4t.core.exceptions.SerializationExceptionpublic String getPageContentByURL(String url, int publication) throws org.dd4t.core.exceptions.ItemNotFoundException, org.dd4t.core.exceptions.SerializationException
getPageContentByURL in interface PageProviderurl - String representing the path part of the page URLpublication - int representing the Publication id of the pageorg.dd4t.core.exceptions.SerializationException - if something goes wrong deserializingorg.dd4t.core.exceptions.ItemNotFoundException - if the requested page does not existpublic String getPageContentById(String tcmUri) throws org.dd4t.core.exceptions.ItemNotFoundException, ParseException, org.dd4t.core.exceptions.SerializationException
getPageContentById in interface PageProviderorg.dd4t.core.exceptions.ItemNotFoundExceptionParseExceptionorg.dd4t.core.exceptions.SerializationExceptionpublic String getPageListByPublicationId(int publication) throws org.dd4t.core.exceptions.ItemNotFoundException
getPageListByPublicationId in interface PageProviderpublication - int representing the Publication id of the pageorg.dd4t.core.exceptions.ItemNotFoundException - if the requested page does not existprotected static com.sdl.web.api.meta.WebPageMetaFactory getWebPageMetaFactory(int publication)
public com.tridion.meta.PageMeta getPageMetaById(int id,
int publication)
throws org.dd4t.core.exceptions.ItemNotFoundException
id - int representing the page item idpublication - int representing the Publication id of the pageorg.dd4t.core.exceptions.ItemNotFoundException - if the requested page does not existpublic com.tridion.meta.PageMeta getPageMetaByURL(String url, int publication) throws org.dd4t.core.exceptions.ItemNotFoundException
url - String representing the path part of the page URLpublication - int representing the Publication id of the pageorg.dd4t.core.exceptions.ItemNotFoundException - if the requested page does not existpublic boolean checkPageExists(String url, int publicationId) throws org.dd4t.core.exceptions.ItemNotFoundException, org.dd4t.core.exceptions.SerializationException
checkPageExists in interface PageProviderorg.dd4t.core.exceptions.ItemNotFoundExceptionorg.dd4t.core.exceptions.SerializationExceptionpublic TCMURI getPageIdForUrl(String url, int publicationId) throws org.dd4t.core.exceptions.ItemNotFoundException, org.dd4t.core.exceptions.SerializationException
getPageIdForUrl in interface PageProviderorg.dd4t.core.exceptions.ItemNotFoundExceptionorg.dd4t.core.exceptions.SerializationExceptionpublic org.joda.time.DateTime getLastPublishDate(String url, int publication) throws org.dd4t.core.exceptions.ItemNotFoundException
getLastPublishDate in interface PageProviderorg.dd4t.core.exceptions.ItemNotFoundExceptionCopyright © 2017. All rights reserved.