public interface ISubscriptionService extends IMetaComponent, ISubscriptionList
Modifier and Type | Method and Description |
---|---|
IThingID |
createAppCriteria(IThingID appCriteriaFolderID,
String criterionName,
String criterionInfo,
String operationName,
int operationCode,
String property)
create a criterion within the specified folder
|
IThingID |
createAppCriteriaFolder(String folderName,
String layout,
String description)
create a folder for a specified group of application criteria
|
IThingID |
createPortletSubscription(IThingID subscriberID,
IThingID sourceID,
ICriterion customCriterion)
Create a subscription for a portlet subscriber
|
IThingID |
createPortletSubscription(IThingID subscriberID,
IThingID sourceID,
List<ICriterion> customCriterionList)
Create a subscription for a portlet subscriber, if the portlet needs to have more than one criterion.
|
IThingIDList |
getAppCriteria(int xtypeid)
Retrieve application criteria based on defined criterion type name e.g.
|
IThingIDList |
getAppCriteria(String criterionTypeName)
Retrieve application criteria based on defined criterion type name e.g.
|
String |
getAppCriteriaLayout(IThingID critID)
Retrieve a criterion's associated JSP layout location
|
ISubscription |
getSubscription(IThingID subscriptionID)
Retrieves individual ISubscription specified by 'id'.
|
void |
setAppCriteriaLayout(IThingID critID,
String layoutLocation)
Set the JSP layout location of the criterion's parent folder as thing info
|
IThingID |
subscribe(IThingID subscriberID,
int deliveryModes,
IThingID sourceID,
IThingIDList criteriaIDs)
Creates a Subscription on the specified resource for a subscriber
|
IThingID |
subscribe(IThingID subscriberID,
int deliveryModes,
IThingID sourceID,
IThingIDList criteriaIDs,
boolean recursive)
Creates a Subscription on the specified resource for a subscriber
|
IThingID |
subscribe(IThingID ownerID,
IThingID groupID,
int deliveryModes,
IThingID sourceID,
IThingIDList criteriaIDs)
Creates a Subscription on the specified resource for a group
|
IThingID |
subscribe(IThingID ownerID,
IThingID groupID,
int deliveryModes,
IThingID sourceID,
IThingIDList criteriaIDs,
boolean isRecursive)
Creates a Subscription on the specified resource for a group
|
void |
unsubscribe(IThingID subscription_thing_ID)
Unsubscribe a specified subscription
|
getMetaContext, setMetaContext
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
getGroupOwnerSubscriptions, getGroupSubscriberSubscriptionsForResource, getResourceSubscriptions, getResourceSubscriptions, getSubscriberOwnerSubscriptions, getSubscriberSubscriptions, getSubscriberSubscriptionsForSource
IThingID subscribe(IThingID subscriberID, int deliveryModes, IThingID sourceID, IThingIDList criteriaIDs) throws MetaException
subscriberID
- ThingID of the subscriberdeliveryModes
- Multi-valued int specifying how the notification is to be delivered.
Valid values are:
sourceID
- [optional] ThingID of the event source.criteriaIDs
- A list of the application criteria thingIDMetaException
ISubscription
IThingID subscribe(IThingID subscriberID, int deliveryModes, IThingID sourceID, IThingIDList criteriaIDs, boolean recursive) throws MetaException
subscriberID
- ThingID of the subscriberdeliveryModes
- Multi-valued int specifying how the notification is to be delivered.
Valid values are:
sourceID
- [optional] ThingID of the event source.criteriaIDs
- A list of the application criteria thingIDrecursive
- whether this is a recursive subscriptionMetaException
ISubscription
IThingID subscribe(IThingID ownerID, IThingID groupID, int deliveryModes, IThingID sourceID, IThingIDList criteriaIDs) throws MetaException
ownerID
- The owner of the Subscription object - for permission evaluationgroupID
- ThingID of the group
Available to the delivery agent specified in the 'delivery' parameter.deliveryModes
- Multi-valued int specifying how the notification is to be delivered.
Valid values are:
sourceID
- ThingID of the event source.criteriaIDs
- A list of the application criteria thingIDMetaException
ISubscription
IThingID subscribe(IThingID ownerID, IThingID groupID, int deliveryModes, IThingID sourceID, IThingIDList criteriaIDs, boolean isRecursive) throws MetaException
ownerID
- The owner of the Subscription object - for permission evaluationgroupID
- ThingID of the group
Available to the delivery agent specified in the 'delivery' parameter.deliveryModes
- Multi-valued int specifying how the notification is to be delivered.
Valid values are:
sourceID
- ThingID of the event source.criteriaIDs
- A list of the application criteria thingIDMetaException
ISubscription
IThingID createPortletSubscription(IThingID subscriberID, IThingID sourceID, ICriterion customCriterion) throws MetaException
subscriberID
- The subscriber thingIDsourceID
- The resource thingID to monitorcustomCriterion
- A list of criteria that describes the (property, operation, and status) tupleMetaException
IThingID createPortletSubscription(IThingID subscriberID, IThingID sourceID, List<ICriterion> customCriterionList) throws MetaException
subscriberID
- The subscriber thingIDsourceID
- The resource thingID to monitorcustomCriterionList
- A list of criteria that describes (property, operation, and status) tuplesMetaException
ISubscription getSubscription(IThingID subscriptionID) throws MetaException
subscriptionID
- Thing ID of ISubscription to retrieveMetaException
void unsubscribe(IThingID subscription_thing_ID) throws MetaException
subscription_thing_ID
- Thing ID of the subscription to unsubscribeMetaException
IThingIDList getAppCriteria(int xtypeid) throws MetaException
xtypeid
- The XTYPE ID of the criteria folderMetaException
IThingIDList getAppCriteria(String criterionTypeName) throws MetaException
criterionTypeName
- The name of the criterion folder typeMetaException
String getAppCriteriaLayout(IThingID critID) throws MetaException
critID
- The thingID of the criterionMetaException
void setAppCriteriaLayout(IThingID critID, String layoutLocation) throws MetaException
critID
- The criterionIDlayoutLocation
- The new layout location for the specified criterion.
This location has to be in layout="/ui/directory/template_file_without_extension" format
For standard portal notification the layout info is stored as layout="/ui/notification/thing/%agent%/%operation%_%format%"
in the criteria folder thing info. The extension is not defined, but assumed to be '.jsp'.
For custom notification deployed by portlet, the portlet author can define this as layout="/ui/portlets/your_portlet/name_of_the_jsp"MetaException
IThingID createAppCriteriaFolder(String folderName, String layout, String description) throws MetaException
folderName
- The name of the criteria folderlayout
- The layout template of the criteriadescription
- The description of the cirteria folderMetaException
IThingID createAppCriteria(IThingID appCriteriaFolderID, String criterionName, String criterionInfo, String operationName, int operationCode, String property) throws MetaException
appCriteriaFolderID
- The folder thingIDcriterionName
- The name of the criterioncriterionInfo
- The information of the criterionoperationName
- The name of the operationoperationCode
- The code of the operationproperty
- The property of the operationMetaException