Package com.microstrategy.web.objects
Interface WebSubscriptionRecipient
-
- All Known Subinterfaces:
WebSubscriptionRecipientEmail
public interface WebSubscriptionRecipient- Since:
- MicroStrategy Web 9.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebSubscriptionContactgetContact()Returns theWebSubscriptionContactthat is the recipient of the subscriptionWebSubscriptionLocationgetLocation()Returns theWebSubscriptionLocationof the recipient.java.lang.StringgetSubscriptionID()Returns the ID of the child subscription for this recipient.booleanisDefaultLocation()Returns whether the location is 'transient'.booleanisUserDefaultContact()Returns whether the recipient is the default contact of the user whose session is current
-
-
-
Method Detail
-
getLocation
WebSubscriptionLocation getLocation()
Returns theWebSubscriptionLocationof the recipient. Used mainly in subscriptions of typeEnumDSSXMLSubscriptionDeliveryType.DssXmlDeliveryTypeFileandEnumDSSXMLSubscriptionDeliveryType.DssXmlDeliveryTypePrinter
-
getContact
WebSubscriptionContact getContact()
Returns theWebSubscriptionContactthat is the recipient of the subscription
-
getSubscriptionID
java.lang.String getSubscriptionID()
Returns the ID of the child subscription for this recipient. When a multi-recipient subscription is created, there is one parent subscription and several child subscriptions - one for each recipient. Using the ID of the child subscription, we can obtain the child subscription alone
-
isUserDefaultContact
boolean isUserDefaultContact() throws WebObjectsExceptionReturns whether the recipient is the default contact of the user whose session is current- Throws:
WebObjectsException
-
isDefaultLocation
boolean isDefaultLocation() throws WebObjectsExceptionReturns whether the location is 'transient'. When a contact is subscribed to a subscription and saved, the Intelligence server will return the address/location that is the default location/address of the contact. Since this can change with time, we call this 'transient'- Throws:
WebObjectsException
-
-