session = new Session();
log.debug("Tridion session created");
}
public void getPage() {
Page page = new Page(new TcmUri("tcm:1-99-64"), session);
log.debug("Page title: " + page.getTitle());
for (ComponentPresentation cp : page.getComponentPresentationsList()) {
Component component = cp.getComponent();
ComponentTemplate componentTemplate = cp.getComponentTemplate();
System.out.println(String.format("\tCP: Component: '%s' %s | Component Template: '%s' %s",
component.getTitle(), component.getId(), componentTemplate.getTitle(), componentTemplate.getId()));
}