Package com.microstrategy.web.objects
Class WebIServerSubscriptionDynamicRecipientListImpl
- java.lang.Object
-
- com.microstrategy.utils.serialization.AbstractPersistable
-
- com.microstrategy.web.objects.WebIServerSubscriptionDynamicRecipientListImpl
-
- All Implemented Interfaces:
EnumWebPersistableState,Persistable,StringKey,SubscriptionParserTags,EditableObject,WebSubscriptionComponent,WebSubscriptionContact,WebSubscriptionDynamicRecipientList
public class WebIServerSubscriptionDynamicRecipientListImpl extends AbstractPersistable implements WebSubscriptionDynamicRecipientList
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microstrategy.web.objects.WebSubscriptionDynamicRecipientList
WebSubscriptionDynamicRecipientList.MappingField
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String_descriptionprotected WebObjectsFactory_factoryprotected java.lang.String_idprotected boolean_isPopulatedprotected java.lang.String_nameprotected int_typeprotected java.lang.String_xmlprotected static java.lang.StringDEFAULT_CONTACT_IDprotected static java.lang.StringDUMMY_CONTACT_IDprotected booleanstale-
Fields inherited from class com.microstrategy.utils.serialization.AbstractPersistable
scriptEndTagEncoder
-
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableState
BARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
-
Fields inherited from interface com.microstrategy.utils.subscription.SubscriptionParserTags
Att_Action, Att_AddressId, Att_AddressName, Att_AddressValue, Att_BurstLayoutKey, Att_ChangeableMask, Att_ConsumerId, Att_ContactFieldFlag, Att_ContactId, Att_ContactLogin, Att_ContactType, Att_ContentID, Att_CreationTime, Att_DeliveryType, Att_DetailFlag, Att_DetailFlag2, Att_DeviceId, Att_DisableContact, Att_DSSID, Att_EmailBurstAttFormID, Att_EmailBurstAttID, Att_EmailBurstDeviceID, Att_EnableContact, Att_Enabled, Att_Filter, Att_Filter_Field, Att_Fixed, Att_HasPath, Att_InstanceId, Att_Invalid_Schedule_flag, Att_IsBulkExport, Att_IsBursting, Att_IsDefaultContact, Att_IsGetAllInfo, Att_IsPersonalization, Att_IsTransient, Att_LowerBound, Att_MobileAppId, Att_MobileClientType, Att_ModificationTime, Att_Non_Schedulable, Att_NotificationID, Att_Order_By, Att_PersonalViewMode, Att_ProjectId, Att_RefreshType, Att_SecurityEnabled, Att_SendNow, Att_SubscriptionId, Att_TotalCount, Att_TriggerId, Att_UpperBound, Att_UseInstance, ATTR_ADDRESS_DEFAULT, ATTR_ADDRESS_DELIVERY_WIN, ATTR_ADDRESS_DESCRIPTION, ATTR_ADDRESS_DEVICE_ID, ATTR_ADDRESS_DEVICE_NAME, ATTR_ADDRESS_ID, ATTR_ADDRESS_IS_NEW, ATTR_ADDRESS_NAME, ATTR_ADDRESS_PHYSICAL_ADD, ATTR_ADDRESS_TRANSPROPS, ATTR_COMPONENT_DESCRIPTION, ATTR_COMPONENT_ID, ATTR_COMPONENT_NAME, ATTR_SUBSCRIPITON_ERROR_DESC, ATTR_SUBSCRIPITON_ERROR_ID, START_IN_TAG, START_MI_TAG, START_OI_TAG, SUBSCRIPTION_ERROR_NODE, Tag_AddRecipients, Tag_Address, Tag_Addresses, Tag_AddressInfo, Tag_Alert, Tag_AssociateContacts, Tag_AssProjSchedules, Tag_AssSchsWithReportOrDoc, Tag_BadgeMetricID, TAG_BOOKMARK_IDS, Tag_BurstAtt, Tag_BurstAtts, Tag_BurstSubFolder, Tag_BurstXml, Tag_CacheUpdateFlag, Tag_Check_Subscription_Access, Tag_Check_Subscription_ACL, Tag_CheckNCSCS, Tag_ClientAlertingMessage, Tag_Collate, Tag_Collections, Tag_Contact, Tag_Contact_Member, Tag_ContactInfo, Tag_Contacts, Tag_ContactSecurity, Tag_Content, TAG_CONTENT_MODE, Tag_ContentInstance, Tag_Copies, Tag_DeliveryType, Tag_DeltaXML, Tag_Destination, Tag_Device, Tag_DeviceType, Tag_DoNotCreateUpdateCaches, Tag_EmailBurstAddress, Tag_EMMACubeOptions, Tag_ExecutionFlags, Tag_Expiration, Tag_ExpirationTimeOffset, Tag_ExpirationTimeZone, Tag_ExportSettings, Tag_FileFormat, Tag_FileName, Tag_FilterXML, Tag_FirstPage, Tag_Get_Contacts_By_Search, Tag_GetAddress, Tag_GetAllDevices, Tag_GetContact, Tag_GetContacts, Tag_GetSchListofProj, Tag_GetSchsOfReportOrDoc, Tag_GetSubscription, Tag_GetSubscriptions, Tag_HistoryLinkUrl, Tag_HistoryLinkWebServer, Tag_IncludeData, Tag_IncludeLink, Tag_JsonSelectedFlag, Tag_LastPage, Tag_Message, Tag_MobileAppDeviceID, Tag_Notification, Tag_Personalization, Tag_PromptAnswer, Tag_ProtectZipFile, Tag_Recipients_All_Consumers, Tag_RemoveAddress, Tag_RemoveContact, Tag_RemoveContacts, Tag_RemoveDevice, Tag_RemoveSubscription, Tag_ReRunHistoryList, Tag_ReUseDataSetCache, Tag_ReuseHL, Tag_ReuseHLMsgId, Tag_SaveAddress, Tag_SaveContact, Tag_SaveSubscription, Tag_Segment, Tag_SendBadge, Tag_SendPreviewNow, Tag_SendPushNotification, Tag_SendToHistory, Tag_ShortcutCacheFormat, Tag_SpaceDelimiter, Tag_Subject, Tag_Subscription, Tag_SubscriptionInstance, Tag_Table, Tag_Tables, Tag_TransformationSettings, Tag_TriggerEvent, Tag_Triggers, Tag_Use_Print_Range, Tag_Zip, Tag_ZipFileName, Tag_ZipPassword
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAddress(WebSubscriptionAddress address)add address of contactvoidaddCollection(WebSubscriptionContact collection)voidaddMember(WebSubscriptionContact member)add the members of contactvoiddelete()Removes an existing editable object from its source.booleanequals(java.lang.Object obj)java.util.List<WebSubscriptionAddress>getAddreses()get the addresses of contactSimpleListgetAddressesByDeliveryMode(int delMode)Returns aSimpleListofWebSubscriptionAddressobjects associated to this particular contact for a specified delivery mode.intgetContactType()Returns the type of contact, fromEnumDSSXMLSubscriptionContactTypejava.lang.StringgetDescription()java.lang.StringgetID()booleangetIsAllInfo()whether to save all info for the contactjava.lang.StringgetLinkedUserId()Gets the linked user Id of the contactjava.lang.StringgetLinkedUserName()Gets the linked user name of the contactSimpleListgetLocationsByDeliveryMode(int delMode)Returns aSimpleListofWebSubscriptionLocationobjects associated to this particular contact for a specified delivery mode.WebObjectInfogetMappingContent()WebSubscriptionDynamicRecipientList.MappingFieldgetMappingDevice()WebSubscriptionDynamicRecipientList.MappingFieldgetMappingLinkedUser()WebSubscriptionDynamicRecipientList.MappingFieldgetMappingNotificationAddress()WebSubscriptionDynamicRecipientList.MappingFieldgetMappingNotificationDevice()WebSubscriptionDynamicRecipientList.MappingFieldgetMappingPersonalization()WebSubscriptionDynamicRecipientList.MappingFieldgetMappingPhysicalAddress()WebObjectInfogetMappingProject()WebSubscriptionDynamicRecipientList.MappingFieldgetMappingRecipientName()WebSubscriptionContactsgetMembers()get the members of the contactWebSubscriptionContactsgetMemberships()get the Contact Groups of which the given contact is a member ofjava.lang.StringgetName()java.lang.StringgetName(java.lang.String localeID)WebSessionInfogetSessionInfo()booleangetStatus()get the status of the contactjava.lang.StringgetStringKey()SimpleListgetSubscriptions()Returns aSimpleListcollection ofWebSubscriptionobjects to which this DRL (dynamic recipient list) is subscribed toSimpleListgetSubscriptions(int deliveryMode)Returns aSimpleListofWebSubscriptionobjects to which this particular contact is subscribed to, for a specified delivery mode.SimpleListgetSubscriptions(int blockBegin, int blockCount)SimpleListgetSubscriptions(int deliveryMode, int blockBegin, int blockCount)Returns aSimpleListcollection ofWebSubscriptionobjects to which this particular user is subscribed to, for a specified delivery mode, from a specified begin block, up to a specified block count.SimpleListgetSubscriptions(WebSubscriptionsFilter filter, int blockBegin, int blockCount)Returns aSimpleListcollection ofWebSubscriptionobjects to which this particular contact is a recipient, for a specified delivery mode, from a specified begin block, up to a specified block count.intgetType()inthashCode()booleanisPopulated()WebSubscriptionDynamicRecipientList.MappingFieldnewMappingField(java.lang.String attributeId, java.lang.String formId)Creates a new MappingField object.voidpopulate()used to populate the object if not already populatedvoidremoveAddress(WebSubscriptionAddress address)remove the address of contactvoidremoveMember(WebSubscriptionContact member)remove members from the contactvoidsave()save this conatctvoidsave(java.lang.String iPGUID, java.lang.String iSessionId)Saves the new or modified object on its source.protected voidsaveXMLState(WebXMLBuilder builder, int howMuchState)protected voidsaveXMLState(java.lang.StringBuffer buf, int howMuchState)voidsetDescription(java.lang.String description)set description of contactprotected voidsetID(java.lang.String objectID)voidsetIsAllInfo(boolean isAllInfo)Set whether to save all info for the contact
isAllInfo flag is added when we develop the save_contact XML API for Contact and contact group manager in Cloud OM.voidsetLinkedUser(java.lang.String linkedUserId)set the linked UservoidsetMappingContent(WebObjectInfo content)Sets the mapping content object.voidsetMappingDevice(WebSubscriptionDynamicRecipientList.MappingField field)Sets the mapping field for Device property.voidsetMappingLinkedUser(WebSubscriptionDynamicRecipientList.MappingField field)Sets the mapping field for Linked User property.voidsetMappingNotificationAddress(WebSubscriptionDynamicRecipientList.MappingField field)Sets the mapping field for Notification Address property.voidsetMappingNotificationDevice(WebSubscriptionDynamicRecipientList.MappingField field)Sets the mapping field for Notification Device property.voidsetMappingPersonalization(WebSubscriptionDynamicRecipientList.MappingField field)Sets the mapping field for Personalization property.voidsetMappingPhysicalAddress(WebSubscriptionDynamicRecipientList.MappingField field)Sets the mapping field for Physical Address property.voidsetMappingProject(WebObjectInfo project)Sets the project object which the mapping content is belonging to.voidsetMappingRecipientName(WebSubscriptionDynamicRecipientList.MappingField field)Sets the mapping field for Recipient Name property.voidsetName(java.lang.String objectName)voidsetStatus(boolean isEnabled)set the status for the contactprotected voidsetType(int objectType)voidupdateAddress(WebSubscriptionAddress wsa)update address of contact-
Methods inherited from class com.microstrategy.utils.serialization.AbstractPersistable
doFlatState, doFlatState, getStateHandler, isXMLStateZipped, restoreState, restoreState, restoreXMLState, saveState, saveState, saveState, saveState, saveXMLState
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
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
-
Methods inherited from interface com.microstrategy.web.objects.WebSubscriptionContact
addAddress, addMember, getAddreses, getAddressesByDeliveryMode, getContactType, getIsAllInfo, getLinkedUserId, getLinkedUserName, getLocationsByDeliveryMode, getMembers, getMemberships, getStatus, getSubscriptions, getSubscriptions, removeAddress, removeMember, setDescription, setIsAllInfo, setLinkedUser, setName, setStatus, updateAddress
-
-
-
-
Field Detail
-
DEFAULT_CONTACT_ID
protected static final java.lang.String DEFAULT_CONTACT_ID
- See Also:
- Constant Field Values
-
DUMMY_CONTACT_ID
protected static final java.lang.String DUMMY_CONTACT_ID
- See Also:
- Constant Field Values
-
_name
protected java.lang.String _name
-
_id
protected java.lang.String _id
-
_description
protected java.lang.String _description
-
_type
protected int _type
-
_xml
protected java.lang.String _xml
-
_isPopulated
protected boolean _isPopulated
-
stale
protected boolean stale
-
_factory
protected WebObjectsFactory _factory
-
-
Method Detail
-
getMappingDevice
public WebSubscriptionDynamicRecipientList.MappingField getMappingDevice()
- Specified by:
getMappingDevicein interfaceWebSubscriptionDynamicRecipientList- Returns:
- a
WebSubscriptionDynamicRecipientList.MappingFieldobject, which the Device property is mapping to.
-
getMappingLinkedUser
public WebSubscriptionDynamicRecipientList.MappingField getMappingLinkedUser()
- Specified by:
getMappingLinkedUserin interfaceWebSubscriptionDynamicRecipientList- Returns:
- a
WebSubscriptionDynamicRecipientList.MappingFieldobject, which the Linked User property is mapping to.
-
getMappingNotificationDevice
public WebSubscriptionDynamicRecipientList.MappingField getMappingNotificationDevice()
- Specified by:
getMappingNotificationDevicein interfaceWebSubscriptionDynamicRecipientList- Returns:
- a
WebSubscriptionDynamicRecipientList.MappingFieldobject, which the Notification Device property is mapping to.
-
getMappingNotificationAddress
public WebSubscriptionDynamicRecipientList.MappingField getMappingNotificationAddress()
- Specified by:
getMappingNotificationAddressin interfaceWebSubscriptionDynamicRecipientList- Returns:
- a
WebSubscriptionDynamicRecipientList.MappingFieldobject, which the Notification Address property is mapping to.
-
getMappingPersonalization
public WebSubscriptionDynamicRecipientList.MappingField getMappingPersonalization()
- Specified by:
getMappingPersonalizationin interfaceWebSubscriptionDynamicRecipientList- Returns:
- a
WebSubscriptionDynamicRecipientList.MappingFieldobject, which the Personalization property is mapping to.
-
getMappingPhysicalAddress
public WebSubscriptionDynamicRecipientList.MappingField getMappingPhysicalAddress()
- Specified by:
getMappingPhysicalAddressin interfaceWebSubscriptionDynamicRecipientList- Returns:
- a
WebSubscriptionDynamicRecipientList.MappingFieldobject, which the Physical Address property is mapping to.
-
getMappingRecipientName
public WebSubscriptionDynamicRecipientList.MappingField getMappingRecipientName()
- Specified by:
getMappingRecipientNamein interfaceWebSubscriptionDynamicRecipientList- Returns:
- a
WebSubscriptionDynamicRecipientList.MappingFieldobject, which the Recipient Name property is mapping to.
-
setMappingDevice
public void setMappingDevice(WebSubscriptionDynamicRecipientList.MappingField field)
Description copied from interface:WebSubscriptionDynamicRecipientListSets the mapping field for Device property.- Specified by:
setMappingDevicein interfaceWebSubscriptionDynamicRecipientList- Parameters:
field-WebSubscriptionDynamicRecipientList.MappingFieldcontaining the mapping attribute id and attribute form id
-
setMappingLinkedUser
public void setMappingLinkedUser(WebSubscriptionDynamicRecipientList.MappingField field)
Description copied from interface:WebSubscriptionDynamicRecipientListSets the mapping field for Linked User property.- Specified by:
setMappingLinkedUserin interfaceWebSubscriptionDynamicRecipientList- Parameters:
field-WebSubscriptionDynamicRecipientList.MappingFieldcontaining the mapping attribute id and attribute form id
-
setMappingNotificationDevice
public void setMappingNotificationDevice(WebSubscriptionDynamicRecipientList.MappingField field)
Description copied from interface:WebSubscriptionDynamicRecipientListSets the mapping field for Notification Device property.- Specified by:
setMappingNotificationDevicein interfaceWebSubscriptionDynamicRecipientList- Parameters:
field-WebSubscriptionDynamicRecipientList.MappingFieldcontaining the mapping attribute id and attribute form id
-
setMappingNotificationAddress
public void setMappingNotificationAddress(WebSubscriptionDynamicRecipientList.MappingField field)
Description copied from interface:WebSubscriptionDynamicRecipientListSets the mapping field for Notification Address property.- Specified by:
setMappingNotificationAddressin interfaceWebSubscriptionDynamicRecipientList- Parameters:
field-WebSubscriptionDynamicRecipientList.MappingFieldcontaining the mapping attribute id and attribute form id
-
setMappingPersonalization
public void setMappingPersonalization(WebSubscriptionDynamicRecipientList.MappingField field)
Description copied from interface:WebSubscriptionDynamicRecipientListSets the mapping field for Personalization property.- Specified by:
setMappingPersonalizationin interfaceWebSubscriptionDynamicRecipientList- Parameters:
field-WebSubscriptionDynamicRecipientList.MappingFieldcontaining the mapping attribute id and attribute form id
-
setMappingPhysicalAddress
public void setMappingPhysicalAddress(WebSubscriptionDynamicRecipientList.MappingField field)
Description copied from interface:WebSubscriptionDynamicRecipientListSets the mapping field for Physical Address property.- Specified by:
setMappingPhysicalAddressin interfaceWebSubscriptionDynamicRecipientList- Parameters:
field-WebSubscriptionDynamicRecipientList.MappingFieldcontaining the mapping attribute id and attribute form id
-
setMappingRecipientName
public void setMappingRecipientName(WebSubscriptionDynamicRecipientList.MappingField field)
Description copied from interface:WebSubscriptionDynamicRecipientListSets the mapping field for Recipient Name property.- Specified by:
setMappingRecipientNamein interfaceWebSubscriptionDynamicRecipientList- Parameters:
field-WebSubscriptionDynamicRecipientList.MappingFieldcontaining the mapping attribute id and attribute form id
-
getMappingContent
public WebObjectInfo getMappingContent()
- Specified by:
getMappingContentin interfaceWebSubscriptionDynamicRecipientList- Returns:
- The mapping content object.
-
getMappingProject
public WebObjectInfo getMappingProject()
- Specified by:
getMappingProjectin interfaceWebSubscriptionDynamicRecipientList- Returns:
- The project object the mapping content belonging to.
-
setMappingContent
public void setMappingContent(WebObjectInfo content)
Description copied from interface:WebSubscriptionDynamicRecipientListSets the mapping content object.- Specified by:
setMappingContentin interfaceWebSubscriptionDynamicRecipientList- Parameters:
content- The mapping content object.
-
setMappingProject
public void setMappingProject(WebObjectInfo project)
Description copied from interface:WebSubscriptionDynamicRecipientListSets the project object which the mapping content is belonging to.- Specified by:
setMappingProjectin interfaceWebSubscriptionDynamicRecipientList- Parameters:
project- The project object.
-
newMappingField
public WebSubscriptionDynamicRecipientList.MappingField newMappingField(java.lang.String attributeId, java.lang.String formId)
Description copied from interface:WebSubscriptionDynamicRecipientListCreates a new MappingField object.- Specified by:
newMappingFieldin interfaceWebSubscriptionDynamicRecipientList- Parameters:
attributeId- The id of the attribute which the field is mapping toformId- The id of the attribute form which the field is mapping to- Returns:
- A new MappingField object
-
save
public void save() throws WebObjectsExceptionDescription copied from interface:WebSubscriptionContactsave this conatct- Specified by:
savein interfaceEditableObject- Specified by:
savein interfaceWebSubscriptionContact- Throws:
WebObjectsException- if an error was encountered on the source while saving.
-
delete
public void delete() throws WebObjectsExceptionDescription copied from interface:EditableObjectRemoves an existing editable object from its source. Example : removing an existingWebSchedulefrom IServer.- Specified by:
deletein interfaceEditableObject- Throws:
WebObjectsException- if an error was encountered on the source while deletion.
-
getSubscriptions
public SimpleList getSubscriptions() throws WebObjectsException
Description copied from interface:WebSubscriptionDynamicRecipientListReturns aSimpleListcollection ofWebSubscriptionobjects to which this DRL (dynamic recipient list) is subscribed to- Specified by:
getSubscriptionsin interfaceWebSubscriptionDynamicRecipientList- Throws:
WebObjectsException
-
getSubscriptions
public SimpleList getSubscriptions(int blockBegin, int blockCount) throws WebObjectsException
- Throws:
WebObjectsException
-
getSubscriptions
public SimpleList getSubscriptions(WebSubscriptionsFilter filter, int blockBegin, int blockCount) throws WebObjectsException
Description copied from interface:WebSubscriptionContactReturns aSimpleListcollection ofWebSubscriptionobjects to which this particular contact is a recipient, for a specified delivery mode, from a specified begin block, up to a specified block count.- Specified by:
getSubscriptionsin interfaceWebSubscriptionContact- Parameters:
filter-WebSubscriptionsFilterused to filter the results of this call. A blank filter can be retrieved fromWebSubscriptionsSource.getNewSubscriptionsFilter()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- Returns:
SimpleListcollection ofWebSubscriptionobjects- Throws:
WebObjectsException
-
save
public void save(java.lang.String iPGUID, java.lang.String iSessionId) throws WebObjectsExceptionDescription copied from interface:EditableObjectSaves the new or modified object on its source. Example : saving aWebScheduleon IServer.- Specified by:
savein interfaceEditableObject- Parameters:
iPGUID- the project Id the object is atiSessionId- the session Id to access the object on IServer- Throws:
WebObjectsException- if an error was encountered on the source while saving.
-
getContactType
public int getContactType()
Description copied from interface:WebSubscriptionContactReturns the type of contact, fromEnumDSSXMLSubscriptionContactType- Specified by:
getContactTypein interfaceWebSubscriptionContact
-
getLinkedUserName
public java.lang.String getLinkedUserName()
Description copied from interface:WebSubscriptionContactGets the linked user name of the contact- Specified by:
getLinkedUserNamein interfaceWebSubscriptionContact- Returns:
Stringfull name of the linked user
-
getLinkedUserId
public java.lang.String getLinkedUserId()
Description copied from interface:WebSubscriptionContactGets the linked user Id of the contact- Specified by:
getLinkedUserIdin interfaceWebSubscriptionContact- Returns:
StringId of the linked user
-
populate
public void populate()
Description copied from interface:WebSubscriptionComponentused to populate the object if not already populated- Specified by:
populatein interfaceWebSubscriptionComponent
-
setIsAllInfo
public void setIsAllInfo(boolean isAllInfo)
Description copied from interface:WebSubscriptionContactSet whether to save all info for the contact
isAllInfo flag is added when we develop the save_contact XML API for Contact and contact group manager in Cloud OM.
Below is the description and usage of this flag. It is added to keep backward compatibility.
1. When itâs false, it keeps the old behavior that we remove or edit one of its addresses for this contact. We save the changed addresses.
2. When itâs true, it indicates to save all details for this contact, including all of its addresses, contact members, etc. For this case, we need pass all addresses of this contact to backend.- Specified by:
setIsAllInfoin interfaceWebSubscriptionContact
-
getIsAllInfo
public boolean getIsAllInfo()
Description copied from interface:WebSubscriptionContactwhether to save all info for the contact- Specified by:
getIsAllInfoin interfaceWebSubscriptionContact- Returns:
- whether to get all info
-
setStatus
public void setStatus(boolean isEnabled)
Description copied from interface:WebSubscriptionContactset the status for the contact- Specified by:
setStatusin interfaceWebSubscriptionContact
-
getAddressesByDeliveryMode
public SimpleList getAddressesByDeliveryMode(int delMode) throws WebObjectsException
Description copied from interface:WebSubscriptionContactReturns aSimpleListofWebSubscriptionAddressobjects associated to this particular contact for a specified delivery mode.- Specified by:
getAddressesByDeliveryModein interfaceWebSubscriptionContact- Parameters:
delMode- , fromEnumDSSXMLSubscriptionDeliveryType- Throws:
WebObjectsException
-
getSubscriptions
public SimpleList getSubscriptions(int deliveryMode) throws WebObjectsException
Description copied from interface:WebSubscriptionContactReturns aSimpleListofWebSubscriptionobjects to which this particular contact is subscribed to, for a specified delivery mode.- Specified by:
getSubscriptionsin interfaceWebSubscriptionContact- Parameters:
deliveryMode- , fromEnumDSSXMLSubscriptionDeliveryType- Throws:
WebObjectsException
-
getSubscriptions
public SimpleList getSubscriptions(int deliveryMode, int blockBegin, int blockCount) throws WebObjectsException
Description copied from interface:WebSubscriptionContactReturns aSimpleListcollection ofWebSubscriptionobjects to which this particular user is subscribed to, for a specified delivery mode, from a specified begin block, up to a specified block count.- Specified by:
getSubscriptionsin interfaceWebSubscriptionContact- Parameters:
deliveryMode- , fromEnumDSSXMLSubscriptionDeliveryTypeblockBegin- , 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
-
getLocationsByDeliveryMode
public SimpleList getLocationsByDeliveryMode(int delMode) throws WebObjectsException
Description copied from interface:WebSubscriptionContactReturns aSimpleListofWebSubscriptionLocationobjects associated to this particular contact for a specified delivery mode.- Specified by:
getLocationsByDeliveryModein interfaceWebSubscriptionContact- Parameters:
delMode- , fromEnumDSSXMLSubscriptionDeliveryType- Throws:
WebObjectsException
-
setDescription
public void setDescription(java.lang.String description)
Description copied from interface:WebSubscriptionContactset description of contact- Specified by:
setDescriptionin interfaceWebSubscriptionContact
-
addAddress
public void addAddress(WebSubscriptionAddress address)
Description copied from interface:WebSubscriptionContactadd address of contact- Specified by:
addAddressin interfaceWebSubscriptionContact- Parameters:
address-WebSubscriptionAddress
-
updateAddress
public void updateAddress(WebSubscriptionAddress wsa)
Description copied from interface:WebSubscriptionContactupdate address of contact- Specified by:
updateAddressin interfaceWebSubscriptionContact- Parameters:
wsa-WebSubscriptionAddress
-
removeAddress
public void removeAddress(WebSubscriptionAddress address) throws WebObjectsException
Description copied from interface:WebSubscriptionContactremove the address of contact- Specified by:
removeAddressin interfaceWebSubscriptionContact- Parameters:
address-WebSubscriptionAddress- Throws:
WebObjectsException
-
setLinkedUser
public void setLinkedUser(java.lang.String linkedUserId)
Description copied from interface:WebSubscriptionContactset the linked User- Specified by:
setLinkedUserin interfaceWebSubscriptionContact- Parameters:
linkedUserId- the linked User GUID
-
addCollection
public void addCollection(WebSubscriptionContact collection)
-
addMember
public void addMember(WebSubscriptionContact member)
Description copied from interface:WebSubscriptionContactadd the members of contact- Specified by:
addMemberin interfaceWebSubscriptionContact- Parameters:
member-WebSubscriptionContact
-
getMembers
public WebSubscriptionContacts getMembers()
Description copied from interface:WebSubscriptionContactget the members of the contact- Specified by:
getMembersin interfaceWebSubscriptionContact- Returns:
WebSubscriptionContacts
-
removeMember
public void removeMember(WebSubscriptionContact member) throws WebObjectsException
Description copied from interface:WebSubscriptionContactremove members from the contact- Specified by:
removeMemberin interfaceWebSubscriptionContact- Parameters:
member- the removed members- Throws:
WebObjectsException
-
getMemberships
public WebSubscriptionContacts getMemberships()
Description copied from interface:WebSubscriptionContactget the Contact Groups of which the given contact is a member of- Specified by:
getMembershipsin interfaceWebSubscriptionContact- Returns:
WebSubscriptionContacts
-
getStatus
public boolean getStatus()
Description copied from interface:WebSubscriptionContactget the status of the contact- Specified by:
getStatusin interfaceWebSubscriptionContact
-
getAddreses
public java.util.List<WebSubscriptionAddress> getAddreses()
Description copied from interface:WebSubscriptionContactget the addresses of contact- Specified by:
getAddresesin interfaceWebSubscriptionContact- Returns:
- List of the addresses of contact
-
setType
protected void setType(int objectType)
-
setID
protected void setID(java.lang.String objectID)
-
setName
public void setName(java.lang.String objectName)
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceWebSubscriptionComponent- Returns:
- the description of the component
-
getID
public java.lang.String getID()
- Specified by:
getIDin interfaceWebSubscriptionComponent- Returns:
- the identifier of the component
-
getType
public int getType()
- Specified by:
getTypein interfaceWebSubscriptionComponent- Returns:
- the type of the component as defined in
EnumWebSubscriptionObjectTypes
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceWebSubscriptionComponent- Returns:
- the name of the component
-
getName
public java.lang.String getName(java.lang.String localeID)
-
isPopulated
public boolean isPopulated()
- Specified by:
isPopulatedin interfaceWebSubscriptionComponent- Returns:
- boolean indicating whether the object has been populated
-
getStringKey
public java.lang.String getStringKey()
- Specified by:
getStringKeyin interfaceStringKey
-
getSessionInfo
public WebSessionInfo getSessionInfo()
- Specified by:
getSessionInfoin interfaceWebSubscriptionComponent- Returns:
- the associated
WebSessionInfoobject
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
saveXMLState
protected void saveXMLState(java.lang.StringBuffer buf, int howMuchState)- Overrides:
saveXMLStatein classAbstractPersistable
-
saveXMLState
protected void saveXMLState(WebXMLBuilder builder, int howMuchState)
-
-