|
SilverStream eXtend Director 4.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Generic interface for the portal context object.
| Field Summary | |
static int |
PERSIST
When setting state this indicates that the state is stored in the user persistent store. |
static int |
REQUEST
When setting state this indicates that the state is remembered for the duration of the request. |
static int |
SESSION
When setting state this indicates that the state is remembered for the duration of the session. |
static String |
STATE_MAXIMIZED
The state when the component has the entire page to itself |
static String |
STATE_MINIMIZED
The state when only the component title bar is showing |
static String |
STATE_NORMAL
The normal state of a component. |
| Method Summary | |
String |
getCallingPage()
Retrieves the URL to the calling page. |
String |
getCallingPageQuery()
Retrieves the query parameter string from the calling page. |
Object |
getComponentContent()
Retrieves the markup set by the the Current component's getComponentData() method. |
String |
getComponentID()
Gets the current component being processed. |
EbiPortalComponentInfo |
getComponentInfo()
Returns the component information object for the current component. |
String |
getComponentInstanceName()
Returns the unique instance name of the current component. |
String |
getComponentMode()
Gets the current component's and instance's mode. |
String |
getComponentState()
Gets the current component's and instance's state. |
Document |
getComponentStyleDocument()
Retrieves the style document to be used when rendering the component, assuming the component is XML. |
String |
getComponentStyleID()
Gets the style ID of the style to be used to render this component. |
String |
getComponentTitle()
Gets the title to be set in the title bar when the component is decorated |
boolean |
getComponentTitleBarEnabled()
Gets the title enabled setting. |
String |
getContentType()
Gets the content type of the content of EbiPortalContext.getComponentContent() |
String |
getContextName()
Gets the name of the context, which is used to namespace the calls to the underlying framework service factory. |
String |
getCurrentPID()
Gets the current Portal Page ID |
long |
getLastModified()
Deprecated. |
String |
getPageName()
Gets the currently viewed portal page name |
String |
getProfileName()
Deprecated. |
boolean |
isComponentContentWellFormed()
Indicated whether or not the processed data from a component is well formed. |
boolean |
isPageWellFormed()
Indicates whether or not any of the data (from multiple components) on the page has malformed data (for example, HTML components). |
void |
reset()
Clears all current component information, setting it up for the next component. |
void |
setCallingPage(String url)
Sets the current calling page URL. |
void |
setCallingPageQuery(String query)
Sets the calling page query parameter. |
void |
setComponentContent(Object content)
This method is called by a component within the getComponentData() method. |
void |
setComponentContentWellFormed(boolean wellFormed)
Set whether or not the data from the component is well formed (e.g. |
void |
setComponentID(String compID)
Sets the current component to be processed by the Presentation Manager. |
void |
setComponentID(String componentID,
String instanceName)
Sets the current component to be processed by the Presentation Manager. |
void |
setComponentMode(String mode,
int level)
Sets the component mode for the current component |
void |
setComponentState(String state,
int level)
Sets the component state for the current component. |
void |
setComponentStyleDocument(Document style)
Sets the style to be used by the component. |
void |
setComponentStyleID(String styleID)
Sets the style ID to be used when rendering the current component. |
void |
setComponentTitle(String title)
Sets the title to be displayed in the component's title bar. |
void |
setComponentTitle(String title,
int level)
Sets the title to be displayed in the component's title bar |
void |
setComponentTitleBarEnabled(boolean enable)
Overrides the default setting of the component's title bar setting (enabled or disabled) |
void |
setContentType(String type)
Specifies the content type of the content being set by EbiPortalContext.setComponentContent(Object) |
void |
setContextName(String contextName)
Sets the name of the context, which is used to namespace the calls to the underlying framework service factory. |
void |
setCurrentPID(String pidName)
Sets the current Portal Page ID |
void |
setLastModified(long p0)
Deprecated. |
void |
setLastModifiedNow()
No information available |
void |
setPageName(String pageName)
Sets the currently viewed user page name. |
void |
setProfileName(String profileName)
Deprecated. |
| Methods implemented from interface com.sssw.fw.api.EbiRequestContext |
getCookieValue,
getResponsePhrase,
getResponseStatus,
getServletContext,
getURI,
hasQueryString,
setCookieValue,
setRequestResponse,
setResponsePhrase,
setResponseStatus,
setServletContext,
setURI |
| Methods implemented from interface com.sssw.fw.api.EbiContext |
cloneCopy,
getAttributeNames,
getBrowserInfo,
getEbiRequest,
getEbiResponse,
getEbiSession,
getEbiSession,
getEbiWhiteboard,
getEJBContext,
getException,
getLocale,
getPrincipal,
getTemporaryData,
getTemporaryValue,
getValue,
getValue,
getValueNames,
hasSession,
hasValue,
isNewSession,
removeAllValues,
removeValue,
setEbiRequest,
setEbiResponse,
setEbiSession,
setEJBContext,
setException,
setTemporaryValue,
setValue |
| Field Detail |
public static final int REQUEST
public static final int SESSION
public static final int PERSIST
public static final String STATE_NORMAL
public static final String STATE_MINIMIZED
public static final String STATE_MAXIMIZED
| Method Detail |
public void reset()
public String getCallingPage()
The calling page refers to a portal URI. This will not return a calling page to another application or server.
public void setCallingPage(String url)
url - the url of the calling pagepublic String getCallingPageQuery()
public void setCallingPageQuery(String query)
query - the query string of the calling pagepublic void setCurrentPID(String pidName)
pidName - sets the currently viewd PIDpublic String getCurrentPID()
public String getProfileName()
public void setProfileName(String profileName)
profileName - The name of the user page.public long getLastModified()
public void setLastModified(long p0)
public void setLastModifiedNow()
public Object getComponentContent()
public void setComponentContent(Object content)
content - The content returned byt the component is as a DOM or a String.
The return type is specified by EbiPortalContext.getContentType()public void setComponentContentWellFormed(boolean wellFormed)
wellFormed - Indicates if the data from the component is well formed (XML, XHTML, etc).public boolean isComponentContentWellFormed()
public boolean isPageWellFormed()
public void setComponentID(String compID)
compID - The component ID.
public void setComponentID(String componentID,
String instanceName)
componentID - The component ID.instanceName - The instance name.public String getComponentID()
public void setComponentMode(String mode,
int level)
the mode is set on the user's session with the componentID and instance name making up the key.
mode - The name of the mode to be set on the session, if null the mode will be cleared from the associated level.level - Indicates at what level to store the mode.
example: setComponentMode("edit",EbiPortalContext.SESSION)
EbiPortalContext.REQUEST,
EbiPortalContext.SESSION,
EbiPortalContext.PERSISTpublic String getComponentMode()
public void setComponentState(String state,
int level)
The mode is set on the user's session with the componentID and instance name making up the key.
The levels can be used in combination setComponentState("minimized",EbiPortalContext.SESSION + EbiPortalContext.PERSIST
state - The name of the state to be set on the session.level - The level to set.EbiPortalContext.REQUEST,
EbiPortalContext.SESSION,
EbiPortalContext.PERSISTpublic String getComponentState()
public EbiPortalComponentInfo getComponentInfo()
public void setComponentTitleBarEnabled(boolean enable)
enable - Set to true to enable.
public void setComponentTitle(String title,
int level)
If this method is not called by the component then the display name, supplied in the descriptor, is used.
title - The title to display in the title bar.level - Indicates the level to persist the title.EbiPortalContext.REQUEST,
EbiPortalContext.SESSION,
EbiPortalContext.PERSISTpublic void setComponentTitle(String title)
If this method is not called by the component then the display name, supplied in the descriptor, is used. This method is equivalent to calling setComponentTitle("Custom Title",EbiPortalContext.REQUEST)
title - The title to display in the title bar.public boolean getComponentTitleBarEnabled()
public String getComponentTitle()
The title is retrieved in the following order
public String getComponentStyleID()
public void setComponentStyleID(String styleID)
styleID - The styleID of the style to be used to render the component.public String getComponentInstanceName()
public Document getComponentStyleDocument()
public void setComponentStyleDocument(Document style)
style - The XSL style sheet in document format to be used when rendering the
XML component.public void setContentType(String type)
EbiPortalContext.setComponentContent(Object)public String getContextName()
public void setContextName(String contextName)
public String getContentType()
EbiPortalContext.getComponentContent()public void setPageName(String pageName)
pageName - The name of the user page.public String getPageName()
|
SilverStream eXtend Director 4.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||