Interface Page
-
- All Superinterfaces:
BaseAsset
,FolderContainedAsset
,MetadataAwareAsset
,NamedAsset
,PermissionsCapableAsset
,PublishableAsset
,StructuredDataCapableAsset
public interface Page extends PublishableAsset, StructuredDataCapableAsset
Represents a page asset.- Since:
- 4.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getXHTML()
Get the page's XHTML content, possibly null if the page uses structured data.org.jdom.Element
getXHTMLAsXMLElement()
Get the page's XHTML content as XML element instead of String.void
setXHTML(java.lang.String xhtml)
Set the page's XHTML content.-
Methods inherited from interface com.hannonhill.cascade.api.asset.common.BaseAsset
getAssetId, getAssetType, getIdentifer
-
Methods inherited from interface com.hannonhill.cascade.api.asset.home.FolderContainedAsset
getCreatedBy, getCreatedOn, getFolderOrder, getIdentifier, getLastModified, getLastModifiedBy, getParentFolder, getParentFolderIdentifier, getPath, getSite, getSiteId, getSiteName, getTags, isHideSystemName, setHideSystemName, setParentFolder, setParentFolderIdentifier
-
Methods inherited from interface com.hannonhill.cascade.api.asset.home.MetadataAwareAsset
getLabel, getLinkingAssets, getMetadata, getMetadataSet, getMetadataSetId
-
Methods inherited from interface com.hannonhill.cascade.api.asset.common.NamedAsset
getName, setName
-
Methods inherited from interface com.hannonhill.cascade.api.asset.common.PermissionsCapableAsset
isCurrentUserCanRead, isCurrentUserCanWrite, isUserCanRead, isUserCanWrite
-
Methods inherited from interface com.hannonhill.cascade.api.asset.home.PublishableAsset
getLastPublishedBy, getLastPublishedOn, getLink, getShouldBeIndexed, getShouldBePublished, setIncludeWhenIndexing, setIncludeWhenPublishing
-
Methods inherited from interface com.hannonhill.cascade.api.asset.home.StructuredDataCapableAsset
getDataDefinition, getDataDefinitionId, getDataDefinitionPath, getStructuredData, getStructuredDataNode, getStructuredDataNodes, getStructuredDataNodesWithFieldId, getStructuredDataNodeWithFieldId, setName
-
-
-
-
Method Detail
-
getXHTML
java.lang.String getXHTML() throws java.lang.Exception
Get the page's XHTML content, possibly null if the page uses structured data.- Returns:
- the XHTML content as a String, or null if the page is a Structured Data page.
- Throws:
java.lang.Exception
- An exception will be thrown if the page's XHTML contents are not valid XML
-
getXHTMLAsXMLElement
org.jdom.Element getXHTMLAsXMLElement() throws java.lang.Exception
Get the page's XHTML content as XML element instead of String. The returned Element will always be system-xml element containing the actual XHTML as its children.- Returns:
- Throws:
java.lang.Exception
-
setXHTML
void setXHTML(java.lang.String xhtml)
Set the page's XHTML content.- Parameters:
xhtml
- the content to be set
-
-