public interface IPortletBean extends IPropertyBag, IContentProvider, IView
This is portlet bean interface.
Modifier and Type | Field and Description |
---|---|
static int |
CLIENT_RENDERING_PASS
Deprecated.
|
static int |
SERVER_RENDERING_PASS
Deprecated.
|
PROP_DESCRIPTION, PROP_NAME, PROP_TYPE, PROP_URI
Modifier and Type | Method and Description |
---|---|
IPortletURL |
createActionUrl()
Creates new action URL.
|
IPortletURL |
createRenderUrl()
Creates new render URL.
|
String |
encodeURL(String url)
Encodes web resource url.
|
String |
getContentSchema()
Deprecated.
|
IPortletControllerBean |
getControllerBean()
Returns the portlet controller bean or null if it's the portlet controller is not configured in the portlet
descriptor.
|
String |
getNamespace()
Returns portlet namespace that must be used to prefix all page elements that require
uniqueness within the page.
|
IContext |
getPortletContext()
Returns the context for the portlet.
|
IPortletInfo |
getPortletInfo()
Returns the portlet descriptor object
|
IThingID |
getPortletThingID()
Returns the thing ID of the portlet instance
|
IPortletTitleBar |
getPortletTitleBar()
Deprecated.
The method is deprecated in favor of per shell title bar setting
instead of per portlet
|
String |
getPortletTypeName()
Returns the portlet type name.
|
int |
getRenderingPass()
Deprecated.
|
String |
getResourceLocation(String resourceUri,
boolean isWebResource)
Returns full URI for the portlet's relative resource.
|
boolean |
getTwoPassRenderingSupported()
Deprecated.
|
boolean |
hasPortletTitleBar()
Deprecated.
The method is deprecated in favor of per shell title bar setting
instead of per portlet
|
boolean |
isDirectContentOutputEnabled() |
void |
setDirectContentOutputEnabled(boolean enabled)
Disables or enables 'optimized' direct content output of the
IContentProvider.getContent() method. |
void |
setPortletContext(IContext context)
Sets the context for the portlet.
|
void |
setPortletTitleBar(IPortletTitleBar portletTitleBar)
Deprecated.
The method is deprecated in favor of per shell title bar setting
instead of per portlet
|
void |
setPortletTypeName(String portletTypeName)
Sets the portlet type name.
|
void |
setRenderingPass(int renderingPass)
Deprecated.
|
void |
setTwoPassRenderingSupported(boolean supported)
Deprecated.
|
assignProperties, createCopy, getProperties, getProperty, load, load, load, save, save, setProperties, setProperty
getContent, getContentType, getContentTypes, isContentTypeSupported, setContentType
getProperties, getProperty, getPropertyNames, getURI
@Deprecated static final int SERVER_RENDERING_PASS
@Deprecated static final int CLIENT_RENDERING_PASS
String getPortletTypeName()
void setPortletTypeName(String portletTypeName)
portletTypeName
- the name of the portlet type.void setPortletContext(IContext context) throws PortalException
context
- portlet context.PortalException
IContext getPortletContext()
setPortletContext(com.webmethods.portal.bizPolicy.IContext)
@Deprecated void setPortletTitleBar(IPortletTitleBar portletTitleBar)
portletTitleBar
- new title bar@Deprecated IPortletTitleBar getPortletTitleBar() throws PortalException
PortalException
@Deprecated boolean hasPortletTitleBar() throws PortalException
PortalException
@Deprecated void setTwoPassRenderingSupported(boolean supported)
@Deprecated boolean getTwoPassRenderingSupported()
@Deprecated void setRenderingPass(int renderingPass)
@Deprecated int getRenderingPass()
@Deprecated String getContentSchema() throws PortalException
PortalException
IPortletInfo getPortletInfo() throws PortalException
IPortletInfo
objectPortalException
IThingID getPortletThingID() throws PortalException
PortalException
void setDirectContentOutputEnabled(boolean enabled) throws PortalException
IContentProvider.getContent()
method.
If direct output is disabled then you can get the content by calling IContentProvider.getContent()
method. Otherwise
{@link #getContent) method may return null and the content is streamed out directly to the client agent. This
is to support the portal on application servers.enabled
- false if you want to get the whole portlet content by calling getContent method.PortalException
isDirectContentOutputEnabled()
boolean isDirectContentOutputEnabled()
setDirectContentOutputEnabled(boolean)
IPortletControllerBean getControllerBean() throws PortalException
PortalException
String getResourceLocation(String resourceUri, boolean isWebResource)
resourceUri
- relative to the widget base folder url to the required resourceisWebResource
- true if the resource is a static web source, like .html, .jpegString getNamespace()
IPortletURL createActionUrl() throws PortalException
IPortletURL.setPortletMethod(String)
PortalException
IPortletURL createRenderUrl() throws PortalException
PortalException
String encodeURL(String url)
url
- url to a portal web resource like images, css, java scripts, etc