|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cassinidivision.oce.rendering.RenderingHelper
A collection of convenience utilities for retrieving rendering context information from the current session.
| Constructor Summary | |
RenderingHelper()
|
|
| Method Summary | |
static C_Feature |
currentFeature(RenderingSession aSession)
Retrieve the current feature recorded in the rendering context (if any). |
static C_FeaturePage |
currentPage(RenderingSession aSession)
Retrieve the current feature page recorded in the rendering context (if any). |
static String |
currentPageIndex(RenderingSession aSession)
Retrieve the index of the current feature page recorded in the rendering context (if any). |
static C_PageVersion |
currentPageVersion(RenderingSession aSession)
Retrieve the current page version recorded in the rendering context (if any). |
static N_Section |
currentSection(RenderingSession aSession)
Retrieve the current section recorded in the rendering context (if any). |
static N_WebSite |
currentWebSite(RenderingSession aSession)
Retrieve the current web site recorded in the rendering context (if any). |
static boolean |
inWebSiteFrontPage(RenderingSession session)
Determine if the root section feature page (front page) is being previewed or published. |
static boolean |
isPreviewing(RenderingSession aSession)
Determine if the current rendering process is for previewing or publishing. |
static boolean |
isPreviewingInContext(RenderingContext aContext)
Determine if the current rendering process is for previewing or publishing. |
static C_FeaturePage |
nextPage(RenderingSession aSession)
Retrieve the next feature page (if there is a current page registered). |
static NSArray |
orderedSectionsInCurrentSite(RenderingSession aSession)
Retrieve the current set of root-level ordered sections in the web site registered. |
static C_FeaturePage |
previousPage(RenderingSession aSession)
Retrieve the previous feature page (if there is a current page registered). |
static Object |
render(RenderingSession aSession,
Object renderedObject)
Retrieve a representation for a requested object using the default formatter registered in the rendering context. |
static String |
stringRender(RenderingSession aSession,
Object renderedObject)
Retrieve a string representation for a requested object using the default formatter registered in the rendering context. |
static String |
urlForNextPage(RenderingSession aSession)
Derive a unique URL for a feature page following to the current registered page based on information provided in the session's rendering context. |
static String |
urlForPreviousPage(RenderingSession aSession)
Derive a unique URL for a feature page previous to the current registered page based on information provided in the session's rendering context. |
static String |
urlInCurrentContextForPage(RenderingSession aSession,
C_FeaturePage aPage)
Derive a unique URL for a generated feature page based on information provided in the session's rendering context. |
static NSArray |
visiblePageDetailsForFeature(C_Feature feature,
RenderingSession session)
Returns information for all visible authorized (published) pages of the feature requested. |
static NSArray |
visiblePageDetailsForFeature(C_Feature feature,
RenderingSession session,
boolean publishedOnly)
Returns information for all visible pages of the feature requested. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RenderingHelper()
| Method Detail |
public static Object render(RenderingSession aSession,
Object renderedObject)
aSession - The current session.renderedObject - The source object.
public static String stringRender(RenderingSession aSession,
Object renderedObject)
A non-null string will always be returned by this method.
aSession - The current session.renderedObject - The source object.
public static N_Section currentSection(RenderingSession aSession)
aSession - The current session.
public static N_WebSite currentWebSite(RenderingSession aSession)
aSession - The current session.
public static C_Feature currentFeature(RenderingSession aSession)
aSession - The current session.
public static C_FeaturePage currentPage(RenderingSession aSession)
aSession - The current session.
public static String currentPageIndex(RenderingSession aSession)
aSession - The current session.
public static C_PageVersion currentPageVersion(RenderingSession aSession)
aSession - The current session.
public static C_FeaturePage previousPage(RenderingSession aSession)
aSession - The current session.
public static C_FeaturePage nextPage(RenderingSession aSession)
aSession - The current session.
public static String urlInCurrentContextForPage(RenderingSession aSession,
C_FeaturePage aPage)
aSession - The current session.aPage - The feature page in question.
public static String urlForPreviousPage(RenderingSession aSession)
aSession - The current session.
public static String urlForNextPage(RenderingSession aSession)
aSession - The current session.
public static NSArray orderedSectionsInCurrentSite(RenderingSession aSession)
aSession - The current session.
public static boolean isPreviewing(RenderingSession aSession)
aSession - The current session.
public static boolean isPreviewingInContext(RenderingContext aContext)
aContext - A given rendering context.
public static NSArray visiblePageDetailsForFeature(C_Feature feature,
RenderingSession session)
The method returns an array of dictionaries, one dictionary per visible page. Each dictionary contains the following following key/value pairs:
KEY VALUE
feature - The feature in question.session - The current session.
public static NSArray visiblePageDetailsForFeature(C_Feature feature,
RenderingSession session,
boolean publishedOnly)
The method returns an array of dictionaries, one dictionary per visible page. Each dictionary contains the following following key/value pairs:
KEY VALUE
feature - The feature in question.session - The current session.publishedOnly - Set true to include only authorized (published) pages, or false to include all pages.
public static boolean inWebSiteFrontPage(RenderingSession session)
WARNING: This method assumes the web site index URL obeys the default URL handler format, e.g.:
.../OCE_Feature/12345/0/...
In other words, the call may not work as expected for all URL handler classes.
session - The current session
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||