|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.cq.compat.migration.contentbus.Page
public class Page
The Page class represents a page imported from a CQ4 system.
Instances of this class are primarily created by deserializing a Durbo input
stream and must not be confused with the actual ContentBus API page
com.day.cq.contentbus.Page.
| Constructor Summary | |
|---|---|
Page(String handle,
String csd,
String version,
com.day.durbo.DurboInput.Element content,
com.day.durbo.DurboInput durbo,
com.day.cq.compat.core.ContentBusNameMapper mapper)
Creates a new instance of this class along with the content of the Communique 4 page as read from the durbo file. |
|
| Method Summary | |
|---|---|
static void |
ensureNodeEnd(com.day.durbo.DurboInput.Element next)
|
static void |
ensureNodeEnd(com.day.durbo.DurboInput durbo)
|
Atom |
getAtom(String path)
Returns the atom with the given fully qualified content element path or null if no such atom exists or if a content element exists
at the path but is not an Atom. |
Container |
getContent()
Returns the top level container of this page. |
String |
getCsd()
Returns the CSD of the ContentBus page in the Communique 4 system. |
String |
getHandle()
Returns the handle of the page in the Communique 5 system. |
Calendar |
getLastModified()
Returns the date and time of the last modification to this page in the Communique 4 system. |
String |
getLastModifiedBy()
Returns the name of the user of the last modification to this page in the Communique 4 system. |
com.day.cq.compat.core.ContentBusNameMapper |
getMapper()
Returns the ContentBusNameMapper used to map the old page
handle to the new page handle and to map the atom labels to property
names. |
String |
getOldHandle()
Returns the handle of the page in the Communique 4 system. |
String |
getTemplate()
Returns the template assigned to this page in the Communique 4 system. |
String |
getVersion()
Returns the name of the version of this page instance in the Communique 4 system. |
boolean |
hasContent()
Returns true if this page has content, that is if the
getContent() method returns a non-null result. |
String |
toString()
Returns a string representation of this page instance for logging purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Page(String handle,
String csd,
String version,
com.day.durbo.DurboInput.Element content,
com.day.durbo.DurboInput durbo,
com.day.cq.compat.core.ContentBusNameMapper mapper)
throws IOException
handle - The handle of the page in the Communique 4 system. This
handle is available from the getOldHandle() method.
The new handle is calculated using the given
mapper.csd - The CSD of the Communique 4 pageversion - The Version of the Communique 4 pagecontent - The Durbo Element representing the top level containerdurbo - The DurboInput from which to read further content of the
pagemapper - The ContentBusNameMapper to use to map handles
to node paths and atom labels to property names.
IOException - If an error occurrs reading from the Durbo input.getHandle(),
getOldHandle(),
getCsd(),
getVersion(),
getContent(),
getMapper()| Method Detail |
|---|
public String getOldHandle()
public String getHandle()
public String getCsd()
public String getVersion()
public String getTemplate()
Template toplevel atom. If the Template atom does not exist,
this method returns null.
public Container getContent()
Container,
hasContent()public boolean hasContent()
true if this page has content, that is if the
getContent() method returns a non-null result.
getContent()public Atom getAtom(String path)
null if no such atom exists or if a content element exists
at the path but is not an Atom.
path - The qualified name of the atompublic String toString()
toString in class Objectpublic com.day.cq.compat.core.ContentBusNameMapper getMapper()
ContentBusNameMapper used to map the old page
handle to the new page handle and to map the atom labels to property
names.
public Calendar getLastModified()
CmgrLastModified atom in the Communique 4 page. If no
CmgrLastModified atom does not exist, this method returns a
Calendar instance representing the current time.
public String getLastModifiedBy()
CmgrLastModified atom in the Communique 4 page. If no
CmgrLastModified atom does not exist, this method returns a the string
[unknown].
public static void ensureNodeEnd(com.day.durbo.DurboInput durbo)
throws IOException
IOException
public static void ensureNodeEnd(com.day.durbo.DurboInput.Element next)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||