Package com.microstrategy.web.objects
Interface WebSubscriptionAddress
-
- All Superinterfaces:
EditableObject
,EnumWebPersistableState
,Persistable
,StringKey
,WebSubscriptionComponent
public interface WebSubscriptionAddress extends WebSubscriptionComponent, EditableObject, Persistable
This object represents a user's address that is used for Narrowcast subscription.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
-
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableState
BARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description int
getDeliveryMode()
java.lang.String
getDeliveryWindow()
returns the String form of the delivery window associated with this address.WebSubscriptionDevice
getDevice()
java.lang.String
getPIN()
returns the PIN associated with this addressSimpleList
getSubscriptions()
Returns aSimpleList
collection ofWebSubscription
objects to which this address is subscribed toSimpleList
getSubscriptions(int blockBegin, int blockCount)
Returns aSimpleList
collection ofWebSubscription
objects to which this particular user is subscribed to, for a specified delivery mode, from a specified begin block, up to a specified block count.SimpleList
getSubscriptions(WebSubscriptionsFilter filter, int blockBegin, int blockCount)
Returns aSimpleList
collection ofWebSubscription
objects which use this particular address, from a specified begin block, up to a specified block count.int
getSubscriptionsCount()
Returns the count of collection ofWebSubscription
objects to which this address is subscribed tojava.lang.String
getTranspropsID()
returns the ID of the transmission properties associated with this addressjava.lang.String
getValue()
boolean
isDefault()
boolean
isNew()
void
setContact(java.lang.String contactID)
set contact Id address relates tovoid
setDefault()
Deprecated.void
setDefault(boolean def)
Used to change the default status of the addressvoid
setDeliveryMode(int deliveryType)
set delivery mode of addressvoid
setDeliveryWindow(java.lang.String dWindow)
sets the String form of the delivery window associated with this addressvoid
setDevice(WebSubscriptionDevice device)
sets theWebSubscriptionDevice
object associated with this address.void
setDevice(java.lang.String deviceID)
sets the deviceID associated with this address.void
setName(java.lang.String name)
sets the name of the address objectvoid
setPIN(java.lang.String pin)
sets the PIN associated with this address.void
setValue(java.lang.String addressValue)
sets the physical value of the address.-
Methods inherited from interface com.microstrategy.web.objects.EditableObject
delete, save, save
-
Methods inherited from interface com.microstrategy.utils.serialization.Persistable
restoreState, restoreState, saveState, saveState, saveState, saveState
-
Methods inherited from interface com.microstrategy.utils.StringKey
getStringKey
-
Methods inherited from interface com.microstrategy.web.objects.WebSubscriptionComponent
getDescription, getID, getName, getSessionInfo, getType, isPopulated, populate
-
-
-
-
Method Detail
-
getDevice
WebSubscriptionDevice getDevice() throws WebObjectsException
- Returns:
- The
WebSubscriptionDevice
object associated with this address. - Throws:
WebObjectsException
- Thrown if there is an error retrieving device information corresponding to this addressID.
-
setDevice
void setDevice(WebSubscriptionDevice device)
sets theWebSubscriptionDevice
object associated with this address.- Parameters:
device
-
-
setDevice
void setDevice(java.lang.String deviceID) throws WebObjectsException
sets the deviceID associated with this address.- Parameters:
deviceID
- the deviceID for this address- Throws:
WebObjectsException
-
setDefault
@Deprecated void setDefault()
Deprecated.sets this address as the default address for the user.
-
setDefault
void setDefault(boolean def)
Used to change the default status of the address- Parameters:
def
-
-
getTranspropsID
java.lang.String getTranspropsID()
returns the ID of the transmission properties associated with this address- Returns:
- transmission properties ID
-
getDeliveryWindow
java.lang.String getDeliveryWindow()
returns the String form of the delivery window associated with this address. delivery window defines what times of the week a delivery should be made- Returns:
- the delivery window string
-
setDeliveryWindow
void setDeliveryWindow(java.lang.String dWindow)
sets the String form of the delivery window associated with this address- Parameters:
dWindow
- the delivery window
-
getPIN
java.lang.String getPIN()
returns the PIN associated with this address- Returns:
- the PIN
-
setPIN
void setPIN(java.lang.String pin)
sets the PIN associated with this address.- Parameters:
pin
-
-
isDefault
boolean isDefault()
- Returns:
- boolean value indicating whether this is the default address for the user
-
setValue
void setValue(java.lang.String addressValue)
sets the physical value of the address. For instance, for an address of type email, the value would be something like 'test@test.com'- Parameters:
addressValue
- the string representing the physical address
-
setName
void setName(java.lang.String name)
sets the name of the address object- Parameters:
name
-
-
getValue
java.lang.String getValue()
- Returns:
- the physical value of the address
-
getDeliveryMode
int getDeliveryMode() throws WebObjectsException
- Returns:
- delivery mode of address chosen from (
EnumWebSubscriptionDeliveryMode
) - Throws:
WebObjectsException
- Since:
- MicroStrategy Web 7.5.1
-
isNew
boolean isNew()
- Returns:
- whether this a new address, i.e. not yet saved.
- Since:
- MicroStrategy Web 8.0.1
-
getSubscriptions
SimpleList getSubscriptions() throws WebObjectsException
Returns aSimpleList
collection ofWebSubscription
objects to which this address is subscribed to- Throws:
WebObjectsException
- Since:
- MicroStrategy Web 9.0.0
-
getSubscriptions
SimpleList getSubscriptions(int blockBegin, int blockCount) throws WebObjectsException
Returns aSimpleList
collection ofWebSubscription
objects to which this particular user is subscribed to, for a specified delivery mode, from a specified begin block, up to a specified block count.- Parameters:
blockBegin
- , the starting count of subscription, it is 0-based index which means set it N will return subscriptions from the (N+1)th subscription.blockCount
- , block size for the incremental fetch of subscription. If set it 0, will return all subscriptions from the starting count- Throws:
WebObjectsException
- Since:
- MicroStrategy Web 9.0.0
-
getSubscriptions
SimpleList getSubscriptions(WebSubscriptionsFilter filter, int blockBegin, int blockCount) throws WebObjectsException
Returns aSimpleList
collection ofWebSubscription
objects which use this particular address, from a specified begin block, up to a specified block count. The results are filtered by the specified filter- Parameters:
filter
-WebSubscriptionsFilter
to filter results. A blank filter can be retrieved fromWebSubscriptionsSource.getNewSubscriptionsFilter()
. The filter's delivery mode will be overwritten with the addresses delivery modeblockBegin
- , the starting count of subscription, it is 0-based index which means set it N will return subscriptions from the (N+1)th subscription.blockCount
- , block size for the incremental fetch of subscription. If set it 0, will return all subscriptions from the starting count- Returns:
SimpleList
collection of filteredWebSubscription
objects- Throws:
WebObjectsException
- Since:
- MicroStrategy Web 9.0.0
-
getSubscriptionsCount
int getSubscriptionsCount() throws WebObjectsException
Returns the count of collection ofWebSubscription
objects to which this address is subscribed to- Throws:
WebObjectsException
- Since:
- MicroStrategy Web 11.1.0.0
-
setDeliveryMode
void setDeliveryMode(int deliveryType)
set delivery mode of address- Parameters:
deliveryType
-EnumDSSXMLSubscriptionDeliveryType
-
setContact
void setContact(java.lang.String contactID)
set contact Id address relates to- Parameters:
contactID
-
-
-