|
Portal |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletContext
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 | |
---|---|
java.util.Set |
getAttibuteKeys()
Get the set of known attribute keys |
java.lang.Object |
getAttribute(java.lang.Object key)
Get the attribute that is mapped to the given key 22Feb2010 NOTE NOTE NOTE - this is used by non-Portal code... must remain |
java.util.Map |
getAttributes()
Get the set of known attributes |
javax.servlet.http.HttpSession |
getHttpSession()
Get the HTTPsession attached to this Portlet Context |
java.lang.String |
getId()
Get ID for the portlet context |
java.lang.String |
getMode()
get the mode for the portlet. |
java.lang.String |
getOriginatingHost()
Get the originating host stored in the PortletContext. |
int |
getOriginatingPort()
Get the originating port stored in the PortletContext. |
java.lang.String |
getOriginatingWebContext()
Get the originating web context stored in the PortletContext. |
java.lang.String |
getPageEntityKey()
Get the page entity key stored in this PortletContext |
java.lang.String |
getPortletEntityKey()
Get the portlet entity key stored in this PortletContext |
java.lang.String |
getProtocol()
Get the protocol stored in the PortletContext. |
SessionContextInterface |
getSessionContext()
Get the session context attached to the httpSession stored in this PortletContext. |
LocalizationContext |
newLocalizationContext(java.lang.String bundleName,
java.util.Locale locale)
Get the localizationContext for the locale and bundlename passed in |
java.lang.Object |
removeAttribute(java.lang.Object key)
Remove the attribute that is mapped to the given key 22Feb2010 NOTE NOTE NOTE - this is used by non-Portal code... must remain |
void |
resetMode()
Reset the mode of the portlet to the default mode. |
java.lang.String |
resolveURLForActionName(java.lang.String name)
This will look up all actions stored in the PortletInfo that is attached to this PortletContext. |
void |
setAttribute(java.lang.Object key,
java.lang.Object value)
Set the attribute for a given key to map to the provided value |
void |
setPortletInfo(com.sas.portal.container.deployment.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 |
---|
java.lang.String getId()
java.lang.String
- the portlet context IDjavax.servlet.http.HttpSession getHttpSession()
HttpSession
- the session attached to this portlet contextvoid setAttribute(java.lang.Object key, java.lang.Object value)
key
- the keyvalue
- the value to map to that keyjava.lang.Object getAttribute(java.lang.Object key)
Object
- the value that is mapped to the provided keyjava.lang.Object removeAttribute(java.lang.Object key)
Object
- the value that was previously mapped to the provided keyjava.util.Set getAttibuteKeys()
Set
- the set of attribute keys that can be used with getAttributejava.util.Map getAttributes()
Map
- the set of known attributesvoid setPortletInfo(com.sas.portal.container.deployment.PortletInfo info)
info
- the PortletInfo stored in this PortletContextSessionContextInterface getSessionContext()
java.lang.String
- will return the created or found session contextjava.lang.String getPageEntityKey()
java.lang.String
- the Page entity key stored in this PortletContextjava.lang.String getPortletEntityKey()
java.lang.String
- the Portlet entity key stored in this PortletContextLocalizationContext newLocalizationContext(java.lang.String bundleName, java.util.Locale locale) throws java.io.IOException
bundleName
- the name of the resource bundlelocale
- the locale of the resource bundle
LocalizationContext
- the localization context mapping to the locale
and bundle passed in
java.io.IOException
- any IOException thrown while looking up the proper
resource bundlejava.lang.String getProtocol()
java.lang.String
- the protocol stored in the PortletContextjava.lang.String getOriginatingHost()
java.lang.String
- the originating host stored in the PortletContextjava.lang.String getOriginatingWebContext()
java.lang.String
- the originating web context stored in the PortletContextint getOriginatingPort()
java.lang.int
- the originating port stored in the PortletContextjava.lang.String resolveURLForActionName(java.lang.String name)
java.lang.String
- the URL for the action name passed injava.lang.String getMode()
java.lang.String
- the current mode for the portletvoid resetMode()
void wasInEditMode(boolean flag)
flag
- boolean - Was the portlet in edit mode.boolean wasInEditMode()
|
Portal |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |