|
| Portal |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
Common storage area assigned to each portlet instance. For each
unique user session that interacts with a given portlet, a
separate instance of a PortletContext is created
and stored in the user session.
| Method Summary | |
Set |
getAttibuteKeys()
Get the set of known attribute keys |
Object |
getAttribute(Object key)
Get the attribute that is mapped to the given key |
Map |
getAttributes()
Get the set of known attributes |
HttpSession |
getHttpSession()
Get the HTTPsession attached to this Portlet Context |
String |
getId()
Get ID for the portlet context |
String |
getMode()
get the mode for the portlet. |
String |
getOriginatingHost()
Get the originating host stored in the PortletContext. |
int |
getOriginatingPort()
Get the originating port stored in the PortletContext. |
String |
getOriginatingWebContext()
Get the originating web context stored in the PortletContext. |
String |
getPageEntityKey()
Get the page entity key stored in this PortletContext |
String |
getPortletEntityKey()
Get the portlet entity key stored in this PortletContext |
String |
getProtocol()
Get the protocol stored in the PortletContext. |
com.sas.services.session.SessionContextInterface |
getSessionContext()
Get the session context attached to the httpSession stored in this PortletContext. |
LocalizationContext |
newLocalizationContext(String bundleName,
Locale locale)
Get the localizationContext for the locale and bundlename passed in |
Object |
removeAttribute(Object key)
Remove the attribute that is mapped to the given key |
void |
resetMode()
Reset the mode of the portlet to the default mode. |
String |
resolveURLForActionName(String name)
This will look up all actions stored in the PortletInfo that is attached to this PortletContext. |
void |
setAttribute(Object key,
Object value)
Set the attribute for a given key to map to the provided value |
void |
setPortletInfo(PortletInfo info)
Set the PortletInfo stored in this PortletContext |
boolean |
wasInEditMode()
Return if the portlet was in edit mode. |
void |
wasInEditMode(boolean flag)
Sets the flag to say that the portlet was in edit mode. |
| Method Detail |
public String getId()
java.lang.String - the portlet context IDpublic HttpSession getHttpSession()
HttpSession - the session attached to this portlet context
public void setAttribute(Object key,
Object value)
Object - the keyObject - the value to map to that keypublic Object getAttribute(Object key)
Object - the value that is mapped to the provided keypublic Object removeAttribute(Object key)
Object - the value that was previously mapped to the provided keypublic Set getAttibuteKeys()
Set - the set of attribute keys that can be used with getAttributepublic Map getAttributes()
Map - the set of known attributespublic void setPortletInfo(PortletInfo info)
PortletInfo - the PortletInfo stored in this PortletContextpublic com.sas.services.session.SessionContextInterface getSessionContext()
java.lang.String - will return the created or found session contextpublic String getPageEntityKey()
java.lang.String - the Page entity key stored in this PortletContextpublic String getPortletEntityKey()
java.lang.String - the Portlet entity key stored in this PortletContext
public LocalizationContext newLocalizationContext(String bundleName,
Locale locale)
throws IOException
bundleName - the name of the resource bundlelocale - the locale of the resource bundleLocalizationContext - the localization context mapping to the locale
and bundle passed inIOException - any IOException thrown while looking up the proper
resource bundlepublic String getProtocol()
java.lang.String - the protocol stored in the PortletContextpublic String getOriginatingHost()
java.lang.String - the originating host stored in the PortletContextpublic String getOriginatingWebContext()
java.lang.String - the originating web context stored in the PortletContextpublic int getOriginatingPort()
java.lang.int - the originating port stored in the PortletContextpublic String resolveURLForActionName(String name)
java.lang.String - the URL for the action name passed inpublic String getMode()
java.lang.String - the current mode for the portletpublic void resetMode()
public void wasInEditMode(boolean flag)
flag - boolean - Was the portlet in edit mode.public boolean wasInEditMode()
|
| Portal |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||