public interface IPortletPolicy extends IBasicPolicy
Modifier and Type | Method and Description |
---|---|
Object |
executePortletMethod(IContext context,
IURI portletUri,
String method,
Map<String,Object> properties)
Executes portlet method on a
IPortletBean loaded for portletUri
with any additional properties loaded from properties parameter. |
void |
flushPortletCache(IContext context,
IURI portletUri)
Flushes all portlet presentation caches.
|
Reader |
getPortletContent(IContext context,
IURI portletUri)
Creates
IPortletBean for given uri, loads all its persisted
properties and obtains its content using IContentProvider.getContent()
method. |
String |
getPortletDescriptors(IContext context,
IURI workspaceUri)
Deprecated.
no longer a supported operation
|
addNote, addToTopics, canUser, cloneRemote, copyToClipboard, cutToClipboard, delete, deleteReference, destroy, getContent, listContainers, listNotes, moveThing, moveThing, pasteFromClipboard, removeNote, setOwner, updateProperties
getIcon, getPagingCookie, getPagingCookie, pageBackward, pageForeward, setPagingCookie, view
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
Reader getPortletContent(IContext context, IURI portletUri) throws BizException
IPortletBean
for given uri, loads all its persisted
properties and obtains its content using IContentProvider.getContent()
method. The IContext
is used for setting
IPortletBean.setPortletContext(com.webmethods.portal.bizPolicy.IContext)
.context
- Current IContext
.portletUri
- Portlet instance IURI
.Reader
object with the portlet's content, can be NULL, if the content is directly streamed back to the
http clientBizException
IContentProvider.getContent()
,
IPortletBean.setDirectContentOutputEnabled(boolean)
Object executePortletMethod(IContext context, IURI portletUri, String method, Map<String,Object> properties) throws BizException
IPortletBean
loaded for portletUri
with any additional properties loaded from properties parameter. The method is executed via
IPortletMechanics.executePortletMethod(com.webmethods.portal.service.portlet.IPortletBean, com.webmethods.portal.bizPolicy.IContext, java.lang.String)
. The method must be defined
in the portlet descriptor as PCA method. See IPortletMethodInfo
context
- Current IContext
portletUri
- Portlet instance IURI
.method
- Name of the method to executeproperties
- Any additional properties that can augment or replace persisted properitesBizException
@Deprecated String getPortletDescriptors(IContext context, IURI workspaceUri) throws BizException
context
- Current IContext
workspaceUri
- the workspace uri, can be NULL.BizException
void flushPortletCache(IContext context, IURI portletUri) throws BizException
IPresentationCacheMechanics.invalidateDependentContent(com.webmethods.portal.service.meta2.thing.IThingID)
to invalidate all content that depends on the portlet thing id.context
- Current IContext
portletUri
- Portlet instance IURI
.BizException
IPresentationCacheMechanics