|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.gst.foundation.facade.fsii.SitePlanUtils
public final class SitePlanUtils
Miscellaneous utility library used to access data stored in the site plan or assets related to the site plan.
This module is aware of two special types of page subtypes: Aliases and Navigatin Placeholders. Aliases are pages that are aliases to other pages containing the same information in the site plan tree. Navigation Placeholders are pages that are typically located at the root of the site plan tree and do not contain any content. They are not content assets but are organizational in nature.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PAGE_SUBTYPE_NAVIGATION_PLACEHOLDER
public static final String PAGE_SUBTYPE_ALIAS
public static final String PAGE_SUBTYPE_ASSOCIATION_NAME
Method Detail |
---|
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 asset
public static String getTemplateForPage(COM.FutureTense.Interfaces.ICS ics, String p)
ics
- contextp
- page asset id
public 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 well
public static String resolvePageAlias(COM.FutureTense.Interfaces.ICS ics, String p)
ics
- contextp
- input page id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |