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.EnumWebPersistableState
BARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
-
-
Method Summary
All 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.Persistable
restoreState, restoreState, saveState, saveState, saveState, saveState
-
-
-
-
Method Detail
-
size
int size()
This method returns the size of the WebSubscriptionAddress list.- Returns:
- size of the WebSubscriptionAddress list
-
get
WebSubscriptionAddress 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:
WebObjectsExceptionjava.lang.IllegalArgumentException
-
getAddress
WebSubscriptionAddress getAddress(java.lang.String id) throws WebObjectsException, java.lang.IllegalArgumentException
This method returns aWebSubscriptionAddressgiven the address ID.- Parameters:
id-- Returns:
- Throws:
WebObjectsExceptionjava.lang.IllegalArgumentException
-
addNewAddress
WebSubscriptionAddress addNewAddress(int delMode) throws WebObjectsException
This method creates a newWebSubscriptionAddresswith a given delivery mode.- Parameters:
delMode-- Returns:
- Throws:
WebObjectsException
-
saveAddress
void 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-
-
remove
void remove(WebSubscriptionAddress address) throws WebObjectsException, java.lang.IllegalArgumentException
This method removes aWebSubscriptionAddressfromWebSubscriptionUserAddressesfor a user given aWebSubscriptionAddress.- Parameters:
address-- Throws:
WebObjectsExceptionjava.lang.IllegalArgumentException
-
remove
void remove(java.lang.String addressID) throws WebObjectsException, java.lang.IllegalArgumentExceptionThis method removes anWebSubscriptionAddressfromWebSubscriptionUserAddressesfor a user given an address ID.- Parameters:
addressID-- Throws:
WebObjectsExceptionjava.lang.IllegalArgumentException
-
setDefaultAddress
void 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
-
save
void save() throws WebObjectsException
This methods saves modification of theWebSubscriptionUserAddressesand persist the changes to the server.- Throws:
WebObjectsException
-
-