public final class SitePlanUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PAGE_SUBTYPE_ALIAS
Name of the page subtype indicating that this page is just an alias to
another page.
|
static String |
PAGE_SUBTYPE_ASSOCIATION_NAME
Name of the association in an alias page that contains the target page.
|
static String |
PAGE_SUBTYPE_NAVIGATION_PLACEHOLDER
Name of the page subtype indicating that this page is NOT rendered on the
site but is instead merely used to group navigation components on the
site.
|
Modifier and Type | Method and Description |
---|---|
static com.fatwire.assetapi.data.AssetId |
getPageDetailForPage(COM.FutureTense.Interfaces.ICS ics,
String p,
String assocname)
Get the specified page detail asset id for the specified page.
|
static String |
getPageDetailTemplateForPage(COM.FutureTense.Interfaces.ICS ics,
String p,
String assocname)
Return the name of the template assigned to the associated PageDetail
asset.
|
static PageLinkData |
getSitePlanAsLinks(COM.FutureTense.Interfaces.ICS ics,
String p,
String assocname,
String linktextAttr,
String tname,
String wrapper,
boolean withChildren)
Get a PageLinkData object from the site plan tree.
|
static HeadTagData |
getStandardHeadData(COM.FutureTense.Interfaces.ICS ics,
String c,
String cid,
String metaKeywordAttribute,
String metaDescriptionAttribute,
String titleAttribute)
Return a bean containing the common information found inside a HEAD html
tag.
|
static String |
getTemplateForPage(COM.FutureTense.Interfaces.ICS ics,
String p)
For a given page asset, return the template
|
static String |
resolvePageAlias(COM.FutureTense.Interfaces.ICS ics,
String p)
Given an input page, find out if it is an alias or not, and if it is,
return the ID of the target page.
|
public static final String PAGE_SUBTYPE_NAVIGATION_PLACEHOLDER
public static final String PAGE_SUBTYPE_ALIAS
public static final String PAGE_SUBTYPE_ASSOCIATION_NAME
public static String getPageDetailTemplateForPage(COM.FutureTense.Interfaces.ICS ics, String p, String assocname)
ics
- contextp
- id of page assetassocname
- name of the association between the page and the page
detail assetpublic static String getTemplateForPage(COM.FutureTense.Interfaces.ICS ics, String p)
ics
- contextp
- page asset idpublic static com.fatwire.assetapi.data.AssetId getPageDetailForPage(COM.FutureTense.Interfaces.ICS ics, String p, String assocname)
ics
- contextp
- page asset idassocname
- name of the association containing the page detail.public static HeadTagData getStandardHeadData(COM.FutureTense.Interfaces.ICS ics, String c, String cid, String metaKeywordAttribute, String metaDescriptionAttribute, String titleAttribute)
ics
- contextc
- asset typecid
- asset idmetaKeywordAttribute
- attribute used to contain meta keywords. must
be multi-valuedmetaDescriptionAttribute
- attribute used to contain description.
expects single-valuedtitleAttribute
- attribute used to contain title. expects
single-valued.public static PageLinkData getSitePlanAsLinks(COM.FutureTense.Interfaces.ICS ics, String p, String assocname, String linktextAttr, String tname, String wrapper, boolean withChildren)
ics
- contextp
- pageassocname
- association name for pageDetail if applicable. May be
nulllinktextAttr
- attribute in associated pagedetail if specified,
otherwise attribute in page assettname
- Template name to link to. Required if links are to work but
can be omitted if links are not desired.wrapper
- Wrapper SiteEntry name. Null is allowed.withChildren
- populate the result with data for children as wellpublic static String resolvePageAlias(COM.FutureTense.Interfaces.ICS ics, String p)
ics
- contextp
- input page idCopyright © 2010-2016 Oracle Corporation. All Rights Reserved.