|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.portal.generic.GenericPortal
public class GenericPortal
A Portal implementation with default values.
| Field Summary | |
|---|---|
static java.util.logging.Logger |
log
|
| Constructor Summary | |
|---|---|
GenericPortal()
|
|
| Method Summary | |
|---|---|
BufferFactory |
getBufferFactory()
|
Cache |
getCache()
XXX: caching not currently implemented |
PortalContext |
getPortalContext()
|
java.lang.String |
getPortalInfo()
|
PreferencesStore |
getPreferencesStore()
Return a PreferencesStore for a connection. |
java.lang.String |
getProperty(java.lang.String name)
|
java.util.Enumeration |
getPropertyNames()
|
java.lang.String |
getReservedNamespace()
The reserved namespace is used to mark parameters that have special meaning to the portal. |
java.util.Enumeration |
getSupportedPortletModes()
|
java.util.Enumeration |
getSupportedWindowStates()
|
java.util.Set<java.lang.String> |
getUserAttributeNames()
Return a Set of all user attributes names that this portlet uses, null if all user attributes available from the portal should be made available. |
UserAttributeStore |
getUserAttributeStore()
Return a UserAttributeStore. |
boolean |
isPortletModeAllowed(PortletRequest portletRequest,
PortletMode portletMode)
Return true if the PortletMode is allowed. |
boolean |
isWindowStateAllowed(PortletRequest portletRequest,
WindowState windowState)
Return true if the WindowState is allowed. |
void |
setBufferFactory(BufferFactory bufferFactory)
The default is an instance of BufferFactoryImpl. |
void |
setCache(Cache cache)
Caching is currently unimplemented, attempting to set this value will cause an exception to be thrown. |
void |
setPortalInfo(java.lang.String portalInfo)
Set the value to be returned by getPortalInfo(), the default
is "GenericPortal/1.0". |
void |
setPreferencesStore(PreferencesStore preferencesStore)
Set the #PreferencesStore, obtained once for each
connection and then used to obtain a preferences store for each namespace
as needed. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Set a portal property that is available with getProperty(java.lang.String). |
void |
setReservedNamespace(java.lang.String reservedNamespace)
Set the reserved namespace, the default is "__". |
void |
setSupportedPortletModes(java.util.Set<PortletMode> portletModes)
Set the supported portlet modes. |
void |
setSupportedWindowStates(java.util.Set<WindowState> windowStates)
Set the supported window states. |
void |
setUserAttributeNames(java.util.Set<java.lang.String> userAttributeNames)
Set the user attribute names that the portlet can use, the default is to allow all user attributes to be visible to the portlet. |
void |
setUserAttributeStore(UserAttributeStore userAttributeStore)
Set the #UserAttributeStore, obtained once for each
connection and then used to obtain user attributes
as needed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.logging.Logger log
| Constructor Detail |
|---|
public GenericPortal()
| Method Detail |
|---|
public PortalContext getPortalContext()
getPortalContext in interface Portalpublic void setPortalInfo(java.lang.String portalInfo)
getPortalInfo(), the default
is "GenericPortal/1.0".
public java.lang.String getPortalInfo()
public void setReservedNamespace(java.lang.String reservedNamespace)
public java.lang.String getReservedNamespace()
getReservedNamespace in interface Portal
public void setProperty(java.lang.String name,
java.lang.String value)
getProperty(java.lang.String).
public java.lang.String getProperty(java.lang.String name)
public java.util.Enumeration getPropertyNames()
public void setSupportedPortletModes(java.util.Set<PortletMode> portletModes)
isPortletModeAllowed(PortletRequest, PortletMode) will always return true (all portlet
modes are allowed) but getSupportedPortletModes() will return an
empty enumeration.
public java.util.Enumeration getSupportedPortletModes()
public boolean isPortletModeAllowed(PortletRequest portletRequest,
PortletMode portletMode)
portletRequest.getResponseContentType() can be used
if the allowed portlet modes depends on the mime type of the
response.
isPortletModeAllowed in interface Portalpublic void setSupportedWindowStates(java.util.Set<WindowState> windowStates)
isWindowStateAllowed(PortletRequest, WindowState)
will always return true (all window states are allowed) but
getSupportedWindowStates() will return an empty enumeration.
public java.util.Enumeration getSupportedWindowStates()
public boolean isWindowStateAllowed(PortletRequest portletRequest,
WindowState windowState)
portletRequest.getResponseContentType() can be used
if the allowed portlet modes depends on the mime type of the
response.
isWindowStateAllowed in interface Portalpublic void setPreferencesStore(PreferencesStore preferencesStore)
#PreferencesStore, obtained once for each
connection and then used to obtain a preferences store for each namespace
as needed. The default is an instance of
#SessionPreferencesStore.
public PreferencesStore getPreferencesStore()
javax.portlet.PortletPreferences for each namespace.
getPreferencesStore in interface Portalpublic void setUserAttributeNames(java.util.Set<java.lang.String> userAttributeNames)
public java.util.Set<java.lang.String> getUserAttributeNames()
getUserAttributeNames in interface Portalpublic void setUserAttributeStore(UserAttributeStore userAttributeStore)
#UserAttributeStore, obtained once for each
connection and then used to obtain user attributes
as needed. The default is null, which means that no user attributes
are available.
public UserAttributeStore getUserAttributeStore()
getUserAttributeStore in interface Portalpublic void setCache(Cache cache)
public Cache getCache()
getCache in interface Portalpublic void setBufferFactory(BufferFactory bufferFactory)
public BufferFactory getBufferFactory()
getBufferFactory in interface Portal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||