/** * Retrieves content of a Dynamic Component Presentation by looking up its componentId and publicationId. * A templateId is not provided, so the DCP with the highest linking priority is retrieved. * <p/> * <b>Note: This method performs significantly slower than getDynamicComponentPresentation(int, int, int)! * Do provide a templateId!</b> * * @param componentId int representing the Component item id * @param publicationId int representing the Publication id of the DCP * @return String representing the content of the DCP * @throws ItemNotFoundException if the requested DCP cannot be found */ @Override public String getDynamicComponentPresentation(int componentId, int publicationId) throws ItemNotFoundException, SerializationException { return getDynamicComponentPresentation(componentId, 0, publicationId); }
/** * Retrieves content of a Dynamic Component Presentation by looking up its componentId and publicationId. * A templateId is not provided, so the DCP with the highest linking priority is retrieved. * <p/> * <b>Note: This method performs significantly slower than getDynamicComponentPresentation(int, int, int)! * Do provide a templateId!</b> * * @param componentId int representing the Component item id * @param publicationId int representing the Publication id of the DCP * @return String representing the content of the DCP * @throws ItemNotFoundException if the requested DCP cannot be found */ @Override public String getDynamicComponentPresentation(int componentId, int publicationId) throws ItemNotFoundException, SerializationException { return getDynamicComponentPresentation(componentId, 0, publicationId); }