public interface ComponentPresentationProvider
| Modifier and Type | Method and Description |
|---|---|
String |
getDynamicComponentPresentation(int componentId,
int publicationId)
Retrieves content of a Dynamic Component Presentation by looking up its componentId and publicationId.
|
String |
getDynamicComponentPresentation(int componentId,
int templateId,
int publicationId)
Retrieves content of a Dynamic Component Presentation by looking up its componentId, templateId and publicationId.
|
ComponentPresentationResultItem<String> |
getDynamicComponentPresentationItem(int componentId,
int publicationId)
Retrieves content of a Dynamic Component Presentation by looking up its componentId and publicationId.
|
ComponentPresentationResultItem<String> |
getDynamicComponentPresentationItem(int componentId,
int templateId,
int publicationId)
Retrieves content of a Dynamic Component Presentation by looking up its componentId, templateId and publicationId.
|
List<String> |
getDynamicComponentPresentations(String[] itemUris,
int templateId,
int publicationId)
Convenience method to obtain a list of component presentations for the same template id.
|
String getDynamicComponentPresentation(int componentId, int publicationId) throws ItemNotFoundException, SerializationException
componentId - int representing the Component item idpublicationId - int representing the Publication id of the DCPItemNotFoundException - if the requested DCP does not existSerializationException - if something went wrong during deserializationString getDynamicComponentPresentation(int componentId, int templateId, int publicationId) throws ItemNotFoundException, SerializationException
componentId - int representing the Component item idtemplateId - int representing the Component Template item idpublicationId - int representing the Publication id of the DCPItemNotFoundException - if the requested DCP does not existSerializationException - if something went wrong during deserializationComponentPresentationResultItem<String> getDynamicComponentPresentationItem(int componentId, int publicationId) throws ItemNotFoundException, SerializationException
componentId - int representing the Component item idpublicationId - int representing the Publication id of the DCPItemNotFoundException - if the requested DCP does not existSerializationException - if something went wrong during deserializationComponentPresentationResultItem<String> getDynamicComponentPresentationItem(int componentId, int templateId, int publicationId) throws ItemNotFoundException, SerializationException
componentId - int representing the Component item idtemplateId - int representing the Component Template item idpublicationId - int representing the Publication id of the DCPItemNotFoundException - if the requested DCP does not existSerializationException - if something went wrong during deserializationList<String> getDynamicComponentPresentations(String[] itemUris, int templateId, int publicationId) throws ItemNotFoundException, SerializationException
itemUris - array of found Component TCM IDstemplateId - the CT Id to fetch DCPs onpublicationId - the current Publication IdItemNotFoundExceptionSerializationExceptionCopyright © 2017. All rights reserved.