public interface ISubscriptionPolicy extends IViewablePolicy
Modifier and Type | Method and Description |
---|---|
IThingID |
createAppCriteriaFolder(IContext context,
String folderName,
String layout,
String description)
Create a folder for a specified type of application criteria
|
IThingID |
createAppCriterion(IContext context,
IThingID appCriteriaFolderID,
String criterionName,
String criterionInfo,
String operationName,
int operationCode,
String property)
create a criterion within the specified criteria folder
|
IThingID |
createPortletSubscription(IContext context,
IThingID subscriberPortlet,
IThingID source,
ICriterion crit)
Create a subscription for the portlet specified to receive notifications
|
IThingIDList |
getAppCriteria(IContext context,
String criteriaFolderName)
Get a list of criteria with specified criteria folder name.
|
IThingID |
getUserSubscription(IContext context,
IThingID userID,
IThingID sourceID)
Returns subscription thingID for the user on the given source object.
|
IThingID |
SetGroupSubscription(IContext context,
IThingID thingID,
IThingID ownerID,
IThingID groupID,
int deliveryMethods,
IThingIDList criteriaIDs)
Set a group subscription on the specified resource
|
IThingID |
SetGroupSubscription(IContext context,
IThingID thingID,
IThingID ownerID,
IThingID groupID,
int deliveryMethods,
IThingIDList criteriaIDs,
boolean isRecursive)
Set a group subscription on the specified resource
|
IThingID |
SetSubscription(IContext context,
IThingID resourceID,
int deliveryMethods,
IThingIDList criteriaIDs)
Set a subscription on the specified resource for the current user.
|
IThingID |
SetSubscription(IContext context,
IThingID resourceID,
int deliveryMethods,
IThingIDList criteriaIDs,
boolean recursive)
Set a subscription on the specified resource for the current user.
|
IThingID |
SetSubscription(IContext context,
IThingID resourceID,
IThingID userID,
int deliveryMethods,
IThingIDList criteriaIDs)
Set a subscription on the specified resource for the specfied user.
|
IThingID |
SetSubscription(IContext context,
IThingID resourceID,
IThingID userID,
int deliveryMethods,
IThingIDList criteriaIDs,
boolean recursive)
Set a subscription on the specified resource for the specfied user.
|
void |
unsubscribe(IContext context,
IThingID subscriptionID)
Delete a subscription
|
getIcon, getPagingCookie, getPagingCookie, pageBackward, pageForeward, setPagingCookie, view
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
IThingID SetSubscription(IContext context, IThingID resourceID, int deliveryMethods, IThingIDList criteriaIDs) throws BizException
context
- The user's portal context IContext
resourceID
- The thingID of the resource to be subscribed todeliveryMethods
- ISubscription
criteriaIDs
- A thing ID list of the application criteriaBizException
IThingID SetSubscription(IContext context, IThingID resourceID, IThingID userID, int deliveryMethods, IThingIDList criteriaIDs) throws BizException
context
- The user's portal context IContext
resourceID
- The thingID of the resource to be subscribed touserID
- User for whom to set the subscription.deliveryMethods
- ISubscription
criteriaIDs
- A thing ID list of the application criteriaBizException
IThingID SetSubscription(IContext context, IThingID resourceID, int deliveryMethods, IThingIDList criteriaIDs, boolean recursive) throws BizException
context
- The user's portal context IContext
resourceID
- The thingID of the resource to be subscribed todeliveryMethods
- ISubscription
criteriaIDs
- A thing ID list of the application criteriarecursive
- If this is a recursive subscriptionBizException
IThingID SetSubscription(IContext context, IThingID resourceID, IThingID userID, int deliveryMethods, IThingIDList criteriaIDs, boolean recursive) throws BizException
context
- The user's portal context IContext
resourceID
- The thingID of the resource to be subscribed touserID
- User for whom to set the subscription.deliveryMethods
- ISubscription
criteriaIDs
- A thing ID list of the application criteriarecursive
- If this is a recursive subscription@@BizException
IThingID SetGroupSubscription(IContext context, IThingID thingID, IThingID ownerID, IThingID groupID, int deliveryMethods, IThingIDList criteriaIDs) throws BizException
context
- The user's portal context IContext
thingID
- The thingID of the resource to be subscribed toownerID
- The owner's thingID of the subscriptiongroupID
- The group's thingID of this subscription that will receive the notificationsdeliveryMethods
- ISubscription
criteriaIDs
- A thing ID list of the application criteriaBizException
IThingID SetGroupSubscription(IContext context, IThingID thingID, IThingID ownerID, IThingID groupID, int deliveryMethods, IThingIDList criteriaIDs, boolean isRecursive) throws BizException
context
- The user's portal context IContext
thingID
- The thingID of the resource to be subscribed toownerID
- The owner's thingID of the subscriptiongroupID
- The group's thingID of this subscription that will receive the notificationsdeliveryMethods
- ISubscription
criteriaIDs
- A thing ID list of the application criteriaBizException
IThingID createPortletSubscription(IContext context, IThingID subscriberPortlet, IThingID source, ICriterion crit) throws BizException
context
- The user's portal context IContext
subscriberPortlet
- The portlet to receive 'thing' notifcationssource
- The resourcecrit
- The criterion
e.g ICriterion crit = new Criterion(IPortalEvent.OPERATION_NO_OP, IPortalEvent.STATUS_SUCCESS);BizException
void unsubscribe(IContext context, IThingID subscriptionID) throws BizException
context
- The user's portal contextIContext
subscriptionID
- The thingID of the subscription to be unsubscribedBizException
IThingID getUserSubscription(IContext context, IThingID userID, IThingID sourceID) throws BizException
context
- userID
- sourceID
- BizException
IThingID createAppCriteriaFolder(IContext context, String folderName, String layout, String description) throws BizException
context
- The user's portal context IContext
folderName
- The name of the folder that will contain all the related criterialayout
- The rendering layout for notification templatedescription
- The description of the folderBizException
IThingID createAppCriterion(IContext context, IThingID appCriteriaFolderID, String criterionName, String criterionInfo, String operationName, int operationCode, String property) throws BizException
context
- The user's portal context IContext
appCriteriaFolderID
- The thingID of the application criteria foldercriterionName
- The name of the criterion to be createdcriterionInfo
- The information of the criterion to be createdoperationName
- The operation name of the criterionoperationCode
- The operation code of the criterionproperty
- The property name of the criterionBizException
IThingIDList getAppCriteria(IContext context, String criteriaFolderName) throws BizException
context
- The user's portal context IContext
criteriaFolderName
- { @link ICriterionTypeName } contains a list of default criterion typesBizException