|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.cq.wcm.core.impl.RevisionImpl
public class RevisionImpl
Implementation of a CQ page revision.
| Constructor Summary | |
|---|---|
RevisionImpl(Version version)
Create a new version of this class. |
|
RevisionImpl(Version version,
boolean deleted)
Create a new version of this class. |
|
| Method Summary | |
|---|---|
Calendar |
getCreated()
Return the creation date. |
String |
getDescription()
Returns the description of this resource. |
String |
getId()
Return the unique version id. |
String |
getLabel()
Return the version label. |
String |
getName()
Returns the name of the page. |
String |
getNavigationTitle()
Returns the navigation title of the page or null if none
defined. |
String |
getPageTitle()
Returns the page title of the page or null if none defined. |
String |
getParentPath()
Return the parent path of the page. |
org.apache.sling.api.resource.ValueMap |
getProperties()
Returns a property map of the page content. |
org.apache.sling.api.resource.ValueMap |
getProperties(String relPath)
Returns a property map of the address content of the page. |
String |
getTitle()
Returns the title of the page or null if none defined. |
String |
getVanityUrl()
Returns the vanity url. |
boolean |
hasContent()
Checks if the page has content attached. |
boolean |
isDeleted()
Return a flag indicating whether this revision belongs to a deleted page. |
boolean |
isHideInNav()
Returns the "hideInNav" flag or false if non defined. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RevisionImpl(Version version,
boolean deleted)
throws RepositoryException
version - associated version informationdeleted - flag indicating whether the associated page is deleted
RepositoryException - if an error occurs
public RevisionImpl(Version version)
throws RepositoryException
version - associated version information
RepositoryException - if an error occurs| Method Detail |
|---|
public org.apache.sling.api.resource.ValueMap getProperties()
getProperties in interface RevisionRevision.hasContent()public org.apache.sling.api.resource.ValueMap getProperties(String relPath)
null is returned.
getProperties in interface RevisionrelPath - relative path to the content
nullpublic String getId()
getId in interface Revisionpublic String getLabel()
getLabel in interface Revisionpublic boolean isDeleted()
isDeleted in interface Revisiontrue if the associated page is deleted;
false otherwisepublic String getName()
getName in interface Revisionpublic String getParentPath()
getParentPath in interface Revisionpublic String getTitle()
null if none defined.
The title is a short form of the page title, usually displayed in the
site admin.
getTitle in interface Revisionpublic String getDescription()
getDescription in interface Revisionnull if not defined.public String getPageTitle()
null if none defined.
getPageTitle in interface Revisionpublic String getNavigationTitle()
null if none
defined. The navigation title is usually used when drawing navigation
links.
getNavigationTitle in interface Revisionpublic boolean isHideInNav()
false if non defined.
The hideInNav flag is usually used to control if a page should be
displayed in a navigation.
isHideInNav in interface Revisionpublic boolean hasContent()
hasContent in interface Revisiontrue if the page has content;
false otherwise.public String getVanityUrl()
getVanityUrl in interface Revisionnullpublic Calendar getCreated()
getCreated in interface Revision
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||