Class PortletWindowContextImpl
- java.lang.Object
-
- org.silverpeas.core.web.portlets.context.window.impl.PortletWindowContextImpl
-
- All Implemented Interfaces:
com.sun.portal.container.PortletWindowContext
public class PortletWindowContextImpl extends Object implements com.sun.portal.container.PortletWindowContext
ThePortletWindowContextImpl
class provides a default implementation for thePortletWindowContext
interface.
-
-
Constructor Summary
Constructors Constructor Description PortletWindowContextImpl()
PortletWindowContextImpl(String userID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
encodeURL(String url)
String
getAuthenticationType()
String
getConsumerID(String portletWindowName)
String
getContentType()
String
getDescription(String portletName, String desiredLocale)
String
getDesktopURL(javax.servlet.http.HttpServletRequest request)
String
getDesktopURL(javax.servlet.http.HttpServletRequest request, String query, boolean escape)
String
getDisplayName(String portletName, String desiredLocale)
com.sun.portal.container.EntityID
getEntityID(String portletWindowName)
List
getKeywords(String portletName, String desiredLocale)
String
getLocaleString()
List
getMarkupTypes(String portletName)
String
getPortletHandle(String portletWindowName)
String
getPortletID(String portletWindowName)
com.sun.portal.container.PortletLang
getPortletLang(String portletWindowName)
String
getPortletName(String portletWindowName)
List<com.sun.portal.container.EntityID>
getPortletWindows(com.sun.portal.container.PortletType portletType, com.sun.portal.container.service.policy.DistributionType distributionType)
String
getPortletWindowTitle(String portletWindowName, String locale)
javax.portlet.PortletPreferences
getPreferences(String portletWindowName, ResourceBundle bundle, boolean isReadOnly)
String
getProducerEntityID(String portletWindowName)
Object
getProperty(String name)
Map
getRoleMap(String portletWindowName)
List
getRoles()
String
getShortTitle(String portletName, String desiredLocale)
List<com.sun.portal.container.service.EventHolder>
getSupportedProcessingEventHolders(com.sun.portal.container.EntityID portletEntityId)
List<com.sun.portal.container.service.PublicRenderParameterHolder>
getSupportedPublicRenderParameterHolders(com.sun.portal.container.EntityID portletEntityId, Map<String,String[]> renderParameters)
List<com.sun.portal.container.service.EventHolder>
getSupportedPublishingEventHolders(com.sun.portal.container.EntityID portletEntityId)
String
getTitle(String portletName, String desiredLocale)
Map<String,String>
getUserInfo()
Map
getUserInfoMap(String portletWindowName)
String
getUserRepresentation()
void
init(javax.servlet.http.HttpServletRequest request)
boolean
isAuthless(javax.servlet.http.HttpServletRequest request)
void
setPortletHandle(String portletWindowName, String portletHandle)
void
setProperty(String name, Object value)
void
store()
com.sun.portal.container.service.EventHolder
verifySupportedProcessingEvent(com.sun.portal.container.EntityID portletEntityId, com.sun.portal.container.service.EventHolder eventHolder)
Map<String,String>
verifySupportedPublicRenderParameters(com.sun.portal.container.EntityID portletEntityId, List<com.sun.portal.container.service.PublicRenderParameterHolder> publicRenderParameterHolders)
com.sun.portal.container.service.EventHolder
verifySupportedPublishingEvent(com.sun.portal.container.EntityID portletEntityId, com.sun.portal.container.service.EventHolder eventHolder)
-
-
-
Constructor Detail
-
PortletWindowContextImpl
public PortletWindowContextImpl()
-
PortletWindowContextImpl
public PortletWindowContextImpl(String userID)
-
-
Method Detail
-
init
public void init(javax.servlet.http.HttpServletRequest request)
- Specified by:
init
in interfacecom.sun.portal.container.PortletWindowContext
-
getDesktopURL
public String getDesktopURL(javax.servlet.http.HttpServletRequest request)
- Specified by:
getDesktopURL
in interfacecom.sun.portal.container.PortletWindowContext
-
getDesktopURL
public String getDesktopURL(javax.servlet.http.HttpServletRequest request, String query, boolean escape)
- Specified by:
getDesktopURL
in interfacecom.sun.portal.container.PortletWindowContext
-
getLocaleString
public String getLocaleString()
- Specified by:
getLocaleString
in interfacecom.sun.portal.container.PortletWindowContext
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfacecom.sun.portal.container.PortletWindowContext
-
encodeURL
public String encodeURL(String url)
- Specified by:
encodeURL
in interfacecom.sun.portal.container.PortletWindowContext
-
isAuthless
public boolean isAuthless(javax.servlet.http.HttpServletRequest request)
- Specified by:
isAuthless
in interfacecom.sun.portal.container.PortletWindowContext
-
getAuthenticationType
public String getAuthenticationType()
- Specified by:
getAuthenticationType
in interfacecom.sun.portal.container.PortletWindowContext
-
getProperty
public Object getProperty(String name)
- Specified by:
getProperty
in interfacecom.sun.portal.container.PortletWindowContext
-
setProperty
public void setProperty(String name, Object value)
- Specified by:
setProperty
in interfacecom.sun.portal.container.PortletWindowContext
-
getRoles
public List getRoles()
- Specified by:
getRoles
in interfacecom.sun.portal.container.PortletWindowContext
-
getUserInfo
public Map<String,String> getUserInfo()
- Specified by:
getUserInfo
in interfacecom.sun.portal.container.PortletWindowContext
-
getMarkupTypes
public List getMarkupTypes(String portletName) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getMarkupTypes
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getDescription
public String getDescription(String portletName, String desiredLocale) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getDescription
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getShortTitle
public String getShortTitle(String portletName, String desiredLocale) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getShortTitle
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getTitle
public String getTitle(String portletName, String desiredLocale) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getTitle
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getKeywords
public List getKeywords(String portletName, String desiredLocale) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getKeywords
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getDisplayName
public String getDisplayName(String portletName, String desiredLocale) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getDisplayName
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getPortletName
public String getPortletName(String portletWindowName) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getPortletName
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getPortletWindows
public List<com.sun.portal.container.EntityID> getPortletWindows(com.sun.portal.container.PortletType portletType, com.sun.portal.container.service.policy.DistributionType distributionType) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getPortletWindows
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getEntityID
public com.sun.portal.container.EntityID getEntityID(String portletWindowName) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getEntityID
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getPortletWindowTitle
public String getPortletWindowTitle(String portletWindowName, String locale) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getPortletWindowTitle
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getRoleMap
public Map getRoleMap(String portletWindowName) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getRoleMap
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getUserInfoMap
public Map getUserInfoMap(String portletWindowName) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getUserInfoMap
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getPreferences
public javax.portlet.PortletPreferences getPreferences(String portletWindowName, ResourceBundle bundle, boolean isReadOnly) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getPreferences
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
verifySupportedPublishingEvent
public com.sun.portal.container.service.EventHolder verifySupportedPublishingEvent(com.sun.portal.container.EntityID portletEntityId, com.sun.portal.container.service.EventHolder eventHolder)
- Specified by:
verifySupportedPublishingEvent
in interfacecom.sun.portal.container.PortletWindowContext
-
getSupportedPublishingEventHolders
public List<com.sun.portal.container.service.EventHolder> getSupportedPublishingEventHolders(com.sun.portal.container.EntityID portletEntityId)
- Specified by:
getSupportedPublishingEventHolders
in interfacecom.sun.portal.container.PortletWindowContext
-
verifySupportedProcessingEvent
public com.sun.portal.container.service.EventHolder verifySupportedProcessingEvent(com.sun.portal.container.EntityID portletEntityId, com.sun.portal.container.service.EventHolder eventHolder)
- Specified by:
verifySupportedProcessingEvent
in interfacecom.sun.portal.container.PortletWindowContext
-
getSupportedProcessingEventHolders
public List<com.sun.portal.container.service.EventHolder> getSupportedProcessingEventHolders(com.sun.portal.container.EntityID portletEntityId)
- Specified by:
getSupportedProcessingEventHolders
in interfacecom.sun.portal.container.PortletWindowContext
-
verifySupportedPublicRenderParameters
public Map<String,String> verifySupportedPublicRenderParameters(com.sun.portal.container.EntityID portletEntityId, List<com.sun.portal.container.service.PublicRenderParameterHolder> publicRenderParameterHolders)
- Specified by:
verifySupportedPublicRenderParameters
in interfacecom.sun.portal.container.PortletWindowContext
-
getSupportedPublicRenderParameterHolders
public List<com.sun.portal.container.service.PublicRenderParameterHolder> getSupportedPublicRenderParameterHolders(com.sun.portal.container.EntityID portletEntityId, Map<String,String[]> renderParameters)
- Specified by:
getSupportedPublicRenderParameterHolders
in interfacecom.sun.portal.container.PortletWindowContext
-
getPortletID
public String getPortletID(String portletWindowName) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getPortletID
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getConsumerID
public String getConsumerID(String portletWindowName) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getConsumerID
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getPortletHandle
public String getPortletHandle(String portletWindowName) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getPortletHandle
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
setPortletHandle
public void setPortletHandle(String portletWindowName, String portletHandle) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
setPortletHandle
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getProducerEntityID
public String getProducerEntityID(String portletWindowName) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getProducerEntityID
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getPortletLang
public com.sun.portal.container.PortletLang getPortletLang(String portletWindowName) throws com.sun.portal.container.PortletWindowContextException
- Specified by:
getPortletLang
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
store
public void store() throws com.sun.portal.container.PortletWindowContextException
- Specified by:
store
in interfacecom.sun.portal.container.PortletWindowContext
- Throws:
com.sun.portal.container.PortletWindowContextException
-
getUserRepresentation
public String getUserRepresentation()
- Specified by:
getUserRepresentation
in interfacecom.sun.portal.container.PortletWindowContext
-
-