public interface PageProvider extends BaseProvider
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPageExists(String url,
int publicationId)
Checks whether a page exists (published from Tridion) by querying its URL
|
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) |
String |
getPageContentById(String tcmUri)
Retrieves a Page by its TCMURI.
|
String |
getPageContentByURL(String url,
int publication)
Retrieves a Page by its Publication and URL.
|
TCMURI |
getPageIdForUrl(String url,
int publicationId) |
String |
getPageListByPublicationId(int publication)
Retrieves a list of published page URLs as one String.
|
PageProviderResultItem<String> getPageById(int id, int publication) throws IOException, ItemNotFoundException, SerializationException
PageProviderResultItem<String> getPageByURL(String url, int publication) throws ItemNotFoundException, SerializationException
String getPageContentById(int id, int publication) throws IOException, ItemNotFoundException, SerializationException
String getPageContentByURL(String url, int publication) throws ItemNotFoundException, SerializationException
url - String representing the path part of the page URLpublication - int representing the context Publication id to read the Page fromItemNotFoundException - if said page cannot be foundSerializationException - if response from service does not represent a serialized PageString getPageContentById(String tcmUri) throws ItemNotFoundException, ParseException, SerializationException
tcmUri - String representing the Tridion Page URIItemNotFoundException - if said page cannot be foundParseException - if given parameter does not represent a TCMURISerializationException - if response from service does not represent a serialized PageString getPageListByPublicationId(int publication) throws ItemNotFoundException, SerializationException
publication - the Publication IdItemNotFoundExceptionSerializationExceptionboolean checkPageExists(String url, int publicationId) throws ItemNotFoundException, SerializationException
url - String representing the path part of the page URLpublicationId - int representing the context Publication id to read the Page fromItemNotFoundException - if said page cannot be foundSerializationException - if there was an error communicating with the serviceTCMURI getPageIdForUrl(String url, int publicationId) throws ItemNotFoundException, SerializationException
org.joda.time.DateTime getLastPublishDate(String url, int publication) throws ItemNotFoundException
ItemNotFoundExceptionCopyright © 2017. All rights reserved.