Interface WebSubscriptionUserAddresses
- 
- All Superinterfaces:
- EnumWebPersistableState,- Persistable
 
 public interface WebSubscriptionUserAddresses extends Persistable This interface allows the client to manage multiple addresses associated with aWebUserin memory and apply all the changes in one call. The changes will be persisted in the metadata when the save on the associated user gets invoked. Until then, the changes are all retained in memory- Since:
- MicroStrategy Web 9.0.0
 
- 
- 
Field Summary- 
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableStateBARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description WebSubscriptionAddressaddNewAddress(int delMode)This method creates a newWebSubscriptionAddresswith a given delivery mode.WebSubscriptionAddressget(int i)This method returns aWebSubscriptionAddressgiven an index of the address in the address list.WebSubscriptionAddressgetAddress(java.lang.String id)This method returns aWebSubscriptionAddressgiven the address ID.voidremove(WebSubscriptionAddress address)This method removes aWebSubscriptionAddressfromWebSubscriptionUserAddressesfor a user given aWebSubscriptionAddress.voidremove(java.lang.String addressID)This method removes anWebSubscriptionAddressfromWebSubscriptionUserAddressesfor a user given an address ID.voidsave()This methods saves modification of theWebSubscriptionUserAddressesand persist the changes to the server.voidsaveAddress(WebSubscriptionAddress address)This method adds a newly created or modifiedWebSubscriptionAddressto a list, so that all the changes can be later saved to the server.voidsetDefaultAddress(java.lang.String addressID)This method sets the default address, making sure that only one address is set to default for the same delivery mode.intsize()This method returns the size of the WebSubscriptionAddress list.- 
Methods inherited from interface com.microstrategy.utils.serialization.PersistablerestoreState, restoreState, saveState, saveState, saveState, saveState
 
- 
 
- 
- 
- 
Method Detail- 
sizeint size() This method returns the size of the WebSubscriptionAddress list.- Returns:
- size of the WebSubscriptionAddress list
 
 - 
getWebSubscriptionAddress get(int i) throws WebObjectsException, java.lang.IllegalArgumentException This method returns aWebSubscriptionAddressgiven an index of the address in the address list.- Parameters:
- i-
- Returns:
- Throws:
- WebObjectsException
- java.lang.IllegalArgumentException
 
 - 
getAddressWebSubscriptionAddress getAddress(java.lang.String id) throws WebObjectsException, java.lang.IllegalArgumentException This method returns aWebSubscriptionAddressgiven the address ID.- Parameters:
- id-
- Returns:
- Throws:
- WebObjectsException
- java.lang.IllegalArgumentException
 
 - 
addNewAddressWebSubscriptionAddress addNewAddress(int delMode) throws WebObjectsException This method creates a newWebSubscriptionAddresswith a given delivery mode.- Parameters:
- delMode-
- Returns:
- Throws:
- WebObjectsException
 
 - 
saveAddressvoid saveAddress(WebSubscriptionAddress address) This method adds a newly created or modifiedWebSubscriptionAddressto a list, so that all the changes can be later saved to the server.- Parameters:
- address-
 
 - 
removevoid remove(WebSubscriptionAddress address) throws WebObjectsException, java.lang.IllegalArgumentException This method removes aWebSubscriptionAddressfromWebSubscriptionUserAddressesfor a user given aWebSubscriptionAddress.- Parameters:
- address-
- Throws:
- WebObjectsException
- java.lang.IllegalArgumentException
 
 - 
removevoid remove(java.lang.String addressID) throws WebObjectsException, java.lang.IllegalArgumentExceptionThis method removes anWebSubscriptionAddressfromWebSubscriptionUserAddressesfor a user given an address ID.- Parameters:
- addressID-
- Throws:
- WebObjectsException
- java.lang.IllegalArgumentException
 
 - 
setDefaultAddressvoid setDefaultAddress(java.lang.String addressID) throws WebObjectsExceptionThis method sets the default address, making sure that only one address is set to default for the same delivery mode.- Parameters:
- addressID-
- Throws:
- WebObjectsException
 
 - 
savevoid save() throws WebObjectsException This methods saves modification of theWebSubscriptionUserAddressesand persist the changes to the server.- Throws:
- WebObjectsException
 
 
- 
 
-