public interface IViewablePolicy
extends com.webmethods.portal.bizPolicy.biz.IBizPolicy
Policy used to view (viewable) portal resources.
Policy commands are always invoked with a IContext
object.
The IContext
object contains information about the user on whose
behalf the command is invoked, as well as access, event, and workflow states.
These states, which can be toggled on and off, are known as traits,
and are encapsulated by the ITraits
object.
By default, all policy commands will check access, fire events, and initiate workflow
as appropriate for the command.
Modifier and Type | Method and Description |
---|---|
String |
getIcon(IContext context,
IURI itemId,
String type)
Gets the url to the specified type of icon representing this resource.
|
com.webmethods.portal.service.view.IPagingCookie |
getPagingCookie(IContext context,
IURI itemId,
String view)
Deprecated.
use
IViewableContainerPolicy.getPagingCookie(IContext, IURI, String) instead |
com.webmethods.portal.service.view.IPagingCookie |
getPagingCookie(IContext context,
IURI itemId,
String view,
int start,
int pageSize,
String sort,
String order,
boolean reset)
Deprecated.
use
IViewableContainerPolicy.getPagingCookie(IContext, IURI, String, int, int, String, String, boolean) instead |
void |
pageBackward(IContext context,
IURI itemId,
String view)
Deprecated.
use
IViewableContainerPolicy.pageBackward(IContext, IURI, String) instead |
void |
pageForeward(IContext context,
IURI itemId,
String view)
Deprecated.
use
IViewableContainerPolicy.pageForeward(IContext, IURI, String) instead |
void |
setPagingCookie(IContext context,
IURI itemId,
String view,
int start,
int pageSize,
String sort,
String order)
Deprecated.
use
IViewableContainerPolicy.setPagingCookie(IContext, IURI, String, int, int, String, String) instead |
IView |
view(IContext context,
IURI itemId)
Returns a view of the specified item.
|
IView view(IContext context, IURI itemId) throws com.webmethods.portal.bizPolicy.BizException
context
- Context state information (current user, etc.).itemId
- Item to view.com.webmethods.portal.bizPolicy.BizException
- if command fails because access was denied or a datasource error occured.String getIcon(IContext context, IURI itemId, String type) throws com.webmethods.portal.bizPolicy.BizException
context
- Context state information (current user, etc.).itemId
- Item for which to get the icon.type
- Icon type (ie 'reference'). Null for default icon.com.webmethods.portal.bizPolicy.BizException
- if command fails because access was denied or a datasource error occured.@Deprecated com.webmethods.portal.service.view.IPagingCookie getPagingCookie(IContext context, IURI itemId, String view) throws com.webmethods.portal.bizPolicy.BizException
IViewableContainerPolicy.getPagingCookie(IContext, IURI, String)
insteadcontext
- Context state information (current user, etc.).itemId
- Item for which to get the paging cookie.view
- Name of the view (ie 'versions'). Null for default view.com.webmethods.portal.bizPolicy.BizException
- if command fails because access was denied or a datasource error occured.@Deprecated com.webmethods.portal.service.view.IPagingCookie getPagingCookie(IContext context, IURI itemId, String view, int start, int pageSize, String sort, String order, boolean reset) throws com.webmethods.portal.bizPolicy.BizException
IViewableContainerPolicy.getPagingCookie(IContext, IURI, String, int, int, String, String, boolean)
insteadcontext
- Context state information (current user, etc.).itemId
- Item for which to get the paging cookie.view
- Name of the view (ie 'versions'). Null for default view.start
- Default starting index. The first index is one, not zero.pageSize
- Default items per page.
If zero, will default to the user's preferred page size.sort
- Default sort key (ie 'name').order
- Default sort order. Either IPagingCookie.ASCENDING
or IPagingCookie.DESCENDING
.reset
- True to always acquire a new paging cookie.com.webmethods.portal.bizPolicy.BizException
- if command fails because access was denied or a datasource error occured.@Deprecated void setPagingCookie(IContext context, IURI itemId, String view, int start, int pageSize, String sort, String order) throws com.webmethods.portal.bizPolicy.BizException
IViewableContainerPolicy.setPagingCookie(IContext, IURI, String, int, int, String, String)
insteadcontext
- Context state information (current user, etc.).itemId
- Item to for which to set the paging cookie.view
- Name of the view (ie 'versions'). Null for default view.start
- New starting index. The first index is one, not zero.pageSize
- New page size.
If zero, will default to the user's preferred page size.sort
- New sort key (ie 'name').order
- New sort order. Either IPagingCookie.ASCENDING
or IPagingCookie.DESCENDING
.com.webmethods.portal.bizPolicy.BizException
- if command fails because access was denied or a datasource error occured.@Deprecated void pageBackward(IContext context, IURI itemId, String view) throws com.webmethods.portal.bizPolicy.BizException
IViewableContainerPolicy.pageBackward(IContext, IURI, String)
insteadcontext
- Context state information (current user, etc.).itemId
- Item for which to page the paging cookie.view
- Name of the view (ie 'versions'). Null for default view.com.webmethods.portal.bizPolicy.BizException
- if command fails because access was denied or a datasource error occured.@Deprecated void pageForeward(IContext context, IURI itemId, String view) throws com.webmethods.portal.bizPolicy.BizException
IViewableContainerPolicy.pageForeward(IContext, IURI, String)
insteadcontext
- Context state information (current user, etc.).itemId
- Item for which to page the paging cookie.view
- Name of the view (ie 'versions'). Null for default view.com.webmethods.portal.bizPolicy.BizException
- if command fails because access was denied or a datasource error occured.