public interface ISubscriptionInfo
ISubscription
Modifier and Type | Field and Description |
---|---|
static int |
DAILY_DELIVERY
Notifications are delivered as a daily digest
|
static int |
DELIVERY_TYPE_MASK
Mast for all delivery types
|
static int |
DIGEST_DELIVERY_MASK
Mast for all digest type deliveries
|
static int |
DISABLED_BY_SYSTEM |
static int |
DISABLED_BY_USER |
static int |
EMAIL_DELIVERY
Notification is delivered by email, if one is defined for the subscriber
|
static int |
ENABLED |
static int |
HTTP_DELIVERY |
static int |
IM_DELIVERY |
static int |
PORTAL_DELIVERY
Notification is delivered to subscriber portal inbox
|
static int |
THING_DELIVERY
Notification is delivered as a thing event
|
static int |
WEEKLY_DELIVERY
Notifications are delivered as a weekly digest
|
Modifier and Type | Method and Description |
---|---|
IThingID |
findCriterion(ICriterion criterion)
Searches by value.
|
List<ICriterion> |
getCriteriaList()
Array of ICriterion
|
int |
getDeliveryModes()
Returns delivery mode set for this subscription.
|
IThingID |
getOwner() |
IThingID |
getResource()
The information resource ID that generates events
|
int |
getStatus()
Determines whether the subscription is enabled or disabled.
|
ISubscriber |
getSubscriber()
The principal interested in events.
|
boolean |
hasCriterion(ICriterion criterion)
Searches by comparing Criterion ThingID
|
boolean |
hasCriterion(IThingID criterion)
Searches by comparing Criterion ThingID
|
boolean |
isRecursive()
Indicates if this is a recursive subscription
|
void |
setCriteriaIDs(IThingIDList criteria)
Note: this is an expensive operation.
|
void |
setDeliveryModes(int modes)
save delivery mode.
|
void |
setOwner(IThingID owner)
Enables or disables the subscription
|
void |
setRecursive(boolean recursive)
Sets if this is a recursive subscription
|
void |
setResource(IThingID sourceID)
Set the event resource ThingID.
|
void |
setStatus(int status)
Enables or disables the subscription
|
void |
setSubscriber(ISubscriber target)
Set the subscriber.
|
static final int EMAIL_DELIVERY
static final int PORTAL_DELIVERY
static final int THING_DELIVERY
static final int HTTP_DELIVERY
static final int IM_DELIVERY
static final int DELIVERY_TYPE_MASK
static final int DAILY_DELIVERY
static final int WEEKLY_DELIVERY
static final int DIGEST_DELIVERY_MASK
static final int ENABLED
static final int DISABLED_BY_USER
static final int DISABLED_BY_SYSTEM
int getStatus() throws MetaException
MetaException
void setStatus(int status) throws MetaException
MetaException
ISubscriptionStatus
IThingID getResource() throws MetaException
MetaException
ISubscriber getSubscriber() throws MetaException
MetaException
void setResource(IThingID sourceID) throws MetaException
MetaException
void setSubscriber(ISubscriber target) throws MetaException
MetaException
List<ICriterion> getCriteriaList() throws MetaException
MetaException
void setCriteriaIDs(IThingIDList criteria) throws MetaException
MetaException
IThingID getOwner() throws MetaException
MetaException
void setOwner(IThingID owner) throws MetaException
MetaException
ISubscriptionStatus
boolean hasCriterion(ICriterion criterion) throws MetaException
MetaException
boolean hasCriterion(IThingID criterion) throws MetaException
MetaException
IThingID findCriterion(ICriterion criterion) throws MetaException
MetaException
void setDeliveryModes(int modes) throws MetaException
MetaException
int getDeliveryModes() throws MetaException
MetaException
boolean isRecursive() throws MetaException
MetaException
void setRecursive(boolean recursive) throws MetaException
recursive
- MetaException