Package com.microstrategy.web.objects
Class WebSubscriptionDeliveryModeEmailPropertiesImpl
- java.lang.Object
-
- com.microstrategy.web.objects.WebSubscriptionDeliveryModeEmailPropertiesImpl
-
- All Implemented Interfaces:
EnumWebPersistableState,Persistable,EnumWebSubscriptionDeliveryMode,WebSubscriptionDeliveryModeEmailProperties,WebSubscriptionDeliveryModeProperties
public class WebSubscriptionDeliveryModeEmailPropertiesImpl extends java.lang.Object implements WebSubscriptionDeliveryModeEmailProperties
- Since:
- MicroStrategy Web 7.5.1
-
-
Field Summary
-
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.web.objects.EnumWebSubscriptionDeliveryMode
SUBSCRIPTION_DELIVERY_MODE_EMAIL, SUBSCRIPTION_DELIVERY_MODE_FILE, SUBSCRIPTION_DELIVERY_MODE_INBOX, SUBSCRIPTION_DELIVERY_MODE_PRINT
-
-
Constructor Summary
Constructors Constructor Description WebSubscriptionDeliveryModeEmailPropertiesImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()java.lang.StringgetContactSecurity()Returns whether use Contact Security for each contact group memberjava.lang.StringgetEmailMessage()java.lang.StringgetEmailSubject()intgetExecutionFlags()Gets the execution flags that have been set to be used when the history list subscription is run.java.lang.StringgetExpiration()Returns the expiration date of the subscriptionjava.lang.StringgetExpirationTimeZone()Returns the expiration date timezone of the subscriptionjava.lang.StringgetFileName()Returns the name of the file that will be delivered when the subscription is executedintgetMode()java.lang.StringgetSpaceDelimiter()Returns the space delimiterjava.lang.StringgetZipFileName()Sets the name of the compressed file associated with this subscriptionjava.lang.StringgetZipFilePassword()Returns the password of the compressed file.booleanisCompressed()Returns whether the content that is delivered is compressed or notbooleanisDataIncluded()Returns whether the subscription is configured to include 'data'booleanisLinkIncluded()Returns whether the subscription is configured to return a link to the message in the history listbooleanisOverwriteOlderVersion()Returns whether the current subscription will overwrite earlier versions of the same report or document in the history listbooleanisSendToInbox()Returns whether the subscription is configured to add the delivered message to history list as well.booleanisZipFileProtected()Returns whether the compressed file is password protectedbooleanrestoreState(SAXSupport parser, java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs)Restores a component from an embedded XML during a SAX parsing.booleanrestoreState(java.lang.String state)Restores a component based on its saved state.java.lang.StringsaveState()Returns ajava.lang.Stringrepresentation of a component.java.lang.StringsaveState(int howMuchState)Returns ajava.lang.Stringrepresentation of a component.voidsaveState(java.lang.StringBuffer buf, int howMuchState)Saves and stores a component's state into aStringBuffer.voidsaveState(java.lang.StringBuffer buf, int howMuchState, int stateFlag)Saves and stores a component's state into aStringBuffer.voidsetCompression(boolean isCompressed)Sets whether the content that is delivered is compressed or notvoidsetContactSecurity(java.lang.String useContSec)Sets whether use Contact Security for each contact group membervoidsetEmailMessage(java.lang.String message)Sets the email message associated with this subscriptionvoidsetEmailSubject(java.lang.String subject)Sets the email subject associated with this subscriptionvoidsetExecutionFlags(int execFlags)Sets the execution flags to be used when the history list subscription is run.voidsetExpiration(java.lang.String expiration)Sets the expiration date of the subscriptionvoidsetExpirationTimeZone(java.lang.String expirationTimeZone, java.lang.String offset)Sets the expiration date timezone of the subscriptionvoidsetFileName(java.lang.String fileName)Sets the name of the file that will be delivered when the subscription is executedvoidsetHistoryLinkURL(java.lang.String url)Sets the URL for the link to history list.voidsetHistoryLinkWebServer(java.lang.String webserver)This property stores the default web-server location when the user creates a subscription.voidsetIncludeData(boolean value)Configures whether the subscription should include data in the delivered email.voidsetIncludeLink(boolean value)Configures whether a link to the history list is included in the delivered subscriptionvoidsetOverwriteOlderVersion(boolean overwrite)Sets whether the subscription will overwrite earlier versions of the same report or document in the history listvoidsetProtectZipFile(boolean isProtected)Sets whether the compressed file is password protected.voidsetSendToInbox(boolean value)Configures whether the subscription adds the message to history list when it is executedvoidsetSpaceDelimiter(java.lang.String spaceDelimiter)Sets the space delimitervoidsetZipFileName(java.lang.String fileName)Returns the name of the compressed file saved in the subscrriptionvoidsetZipFilePassword(java.lang.String p)Sets the password of the compressed file.
-
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceWebSubscriptionDeliveryModeProperties- Overrides:
clonein classjava.lang.Object
-
getEmailSubject
public java.lang.String getEmailSubject()
- Specified by:
getEmailSubjectin interfaceWebSubscriptionDeliveryModeEmailProperties- Returns:
- the email subject associated with this subscription
-
setEmailSubject
public void setEmailSubject(java.lang.String subject)
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesSets the email subject associated with this subscription- Specified by:
setEmailSubjectin interfaceWebSubscriptionDeliveryModeEmailProperties- Parameters:
subject- The string that should be used as the subject
-
getEmailMessage
public java.lang.String getEmailMessage()
- Specified by:
getEmailMessagein interfaceWebSubscriptionDeliveryModeEmailProperties- Returns:
- the email subject associated with this subscription
-
setEmailMessage
public void setEmailMessage(java.lang.String message)
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesSets the email message associated with this subscription- Specified by:
setEmailMessagein interfaceWebSubscriptionDeliveryModeEmailProperties- Parameters:
message- The string that should be used as the subject
-
getMode
public int getMode()
- Specified by:
getModein interfaceWebSubscriptionDeliveryModeProperties- Returns:
- the associated enumeration from
EnumWebSubscriptionDeliveryMode
-
saveState
public java.lang.String saveState(int howMuchState)
Description copied from interface:PersistableReturns ajava.lang.Stringrepresentation of a component. The returned state should be HTML friendly. This method call is equivalent to callsaveState(new StringBuffer(), howMuchState).- Specified by:
saveStatein interfacePersistable- Parameters:
howMuchState- how much state information to save (EnumWebPersistableState).- Returns:
- the serialized state of a component.
-
saveState
public java.lang.String saveState()
Description copied from interface:PersistableReturns ajava.lang.Stringrepresentation of a component. The returned state should be HTML friendly. This method call is equivalent to callsaveState(EnumWebPersistableState.TYPICAL_STATE_INFO).- Specified by:
saveStatein interfacePersistable- Returns:
- the serialized state of a component.
-
restoreState
public boolean restoreState(java.lang.String state)
Description copied from interface:PersistableRestores a component based on its saved state.- Specified by:
restoreStatein interfacePersistable- Parameters:
state- the state of a component- Returns:
- true if restoration succeeds.
-
saveState
public void saveState(java.lang.StringBuffer buf, int howMuchState, int stateFlag) throws java.lang.UnsupportedOperationExceptionDescription copied from interface:PersistableSaves and stores a component's state into aStringBuffer. The returned state should be HTML friendly.There are generally two formats of the saved state: flat state and XML representation. The minimum state is saved in flat state format, while the typical and maximum states are saved in XML string representation.
- Specified by:
saveStatein interfacePersistable- Parameters:
buf- a StringBuffer to store the saved state.howMuchState- how much state information to save (EnumWebPersistableState).stateFlag- bit-wise flag to indicate additional information about the state (EnumWebStateFlags).- Throws:
java.lang.UnsupportedOperationException- thrown if the component does not support this method, or does not support certainhowMuchStatelevel.- Since:
- MicroStrategy Web 9.0.0
-
saveState
public void saveState(java.lang.StringBuffer buf, int howMuchState) throws java.lang.UnsupportedOperationExceptionDescription copied from interface:PersistableSaves and stores a component's state into aStringBuffer. The returned state should be HTML friendly.There are generally two formats of the saved state: flat state and XML representation. The minimum state is saved in flat state format, while the typical and maximum states are saved in XML string representation.
- Specified by:
saveStatein interfacePersistable- Parameters:
buf- a StringBuffer to store the saved state.howMuchState- how much state information to save (EnumWebPersistableState).- Throws:
java.lang.UnsupportedOperationException- thrown if the component does not support this method, or does not support certainhowMuchStatelevel.
-
restoreState
public boolean restoreState(SAXSupport parser, java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs)
Description copied from interface:PersistableRestores a component from an embedded XML during a SAX parsing.- Specified by:
restoreStatein interfacePersistable- Parameters:
parser- a SAX parser processing the XML representation of a stateuri- The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performedlocalName- The local name (without prefix), or the empty string if Namespace processing is not being performedqName- The qualified name (with prefix), or the empty string if qualified names are not availableattrs- The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object- Returns:
trueto indicate a successful restoration. Otherwise,falsewill be returned.
-
isLinkIncluded
public boolean isLinkIncluded()
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesReturns whether the subscription is configured to return a link to the message in the history list- Specified by:
isLinkIncludedin interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
setIncludeLink
public void setIncludeLink(boolean value)
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesConfigures whether a link to the history list is included in the delivered subscription- Specified by:
setIncludeLinkin interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
isDataIncluded
public boolean isDataIncluded()
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesReturns whether the subscription is configured to include 'data'- Specified by:
isDataIncludedin interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
setIncludeData
public void setIncludeData(boolean value)
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesConfigures whether the subscription should include data in the delivered email.- Specified by:
setIncludeDatain interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
isSendToInbox
public boolean isSendToInbox()
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesReturns whether the subscription is configured to add the delivered message to history list as well.- Specified by:
isSendToInboxin interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
setSendToInbox
public void setSendToInbox(boolean value)
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesConfigures whether the subscription adds the message to history list when it is executed- Specified by:
setSendToInboxin interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
getExpiration
public java.lang.String getExpiration()
Description copied from interface:WebSubscriptionDeliveryModePropertiesReturns the expiration date of the subscription- Specified by:
getExpirationin interfaceWebSubscriptionDeliveryModeProperties- Since:
- MicroStrategy Web 9.0.0
-
getZipFileName
public java.lang.String getZipFileName()
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesSets the name of the compressed file associated with this subscription- Specified by:
getZipFileNamein interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
setZipFileName
public void setZipFileName(java.lang.String fileName)
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesReturns the name of the compressed file saved in the subscrription- Specified by:
setZipFileNamein interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
getFileName
public java.lang.String getFileName()
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesReturns the name of the file that will be delivered when the subscription is executed- Specified by:
getFileNamein interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
setFileName
public void setFileName(java.lang.String fileName)
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesSets the name of the file that will be delivered when the subscription is executed- Specified by:
setFileNamein interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
setExpiration
public void setExpiration(java.lang.String expiration)
Description copied from interface:WebSubscriptionDeliveryModePropertiesSets the expiration date of the subscription- Specified by:
setExpirationin interfaceWebSubscriptionDeliveryModeProperties- Since:
- MicroStrategy Web 9.0.0
-
getExpirationTimeZone
public java.lang.String getExpirationTimeZone()
Description copied from interface:WebSubscriptionDeliveryModePropertiesReturns the expiration date timezone of the subscription- Specified by:
getExpirationTimeZonein interfaceWebSubscriptionDeliveryModeProperties
-
setExpirationTimeZone
public void setExpirationTimeZone(java.lang.String expirationTimeZone, java.lang.String offset)Description copied from interface:WebSubscriptionDeliveryModePropertiesSets the expiration date timezone of the subscription- Specified by:
setExpirationTimeZonein interfaceWebSubscriptionDeliveryModeProperties
-
isCompressed
public boolean isCompressed()
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesReturns whether the content that is delivered is compressed or not- Specified by:
isCompressedin interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
setCompression
public void setCompression(boolean isCompressed)
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesSets whether the content that is delivered is compressed or not- Specified by:
setCompressionin interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
setZipFilePassword
public void setZipFilePassword(java.lang.String p)
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesSets the password of the compressed file.- Specified by:
setZipFilePasswordin interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
getZipFilePassword
public java.lang.String getZipFilePassword()
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesReturns the password of the compressed file.- Specified by:
getZipFilePasswordin interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
setHistoryLinkURL
public void setHistoryLinkURL(java.lang.String url)
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesSets the URL for the link to history list. This URL should contain macros like {&WEBSERVER}, {&SERVERNAME} etc which are replaced at run-time when the subscription or the delivery notification is sent to the recipient.- Specified by:
setHistoryLinkURLin interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
setHistoryLinkWebServer
public void setHistoryLinkWebServer(java.lang.String webserver)
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesThis property stores the default web-server location when the user creates a subscription. In a normal execution flow, the web-server location is obtained from a property in the DefaultProjectProperties property set. However if this property is not set, then the default web-server location that is saved along with each subscription is used.- Specified by:
setHistoryLinkWebServerin interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
getExecutionFlags
public int getExecutionFlags()
Description copied from interface:WebSubscriptionDeliveryModePropertiesGets the execution flags that have been set to be used when the history list subscription is run. Please seeWebSubscriptionDeliveryModeProperties.setExecutionFlags(int)for mode details.- Specified by:
getExecutionFlagsin interfaceWebSubscriptionDeliveryModeProperties- Returns:
- Execution flags
- Since:
- MicroStrategy Web 9.0.0
-
setExecutionFlags
public void setExecutionFlags(int execFlags)
Description copied from interface:WebSubscriptionDeliveryModePropertiesSets the execution flags to be used when the history list subscription is run. If the subscription is to a report object, then use the execution flags fromEnumDSSXMLExecutionFlags. If the subscription is to a document, then use the execution flags fromEnumDSSXMLDocExecutionFlags.- Specified by:
setExecutionFlagsin interfaceWebSubscriptionDeliveryModeProperties- Since:
- MicroStrategy Web 9.0.0
-
isZipFileProtected
public boolean isZipFileProtected()
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesReturns whether the compressed file is password protected- Specified by:
isZipFileProtectedin interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
setProtectZipFile
public void setProtectZipFile(boolean isProtected)
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesSets whether the compressed file is password protected.- Specified by:
setProtectZipFilein interfaceWebSubscriptionDeliveryModeEmailProperties- Since:
- MicroStrategy Web 9.0.0
-
isOverwriteOlderVersion
public boolean isOverwriteOlderVersion()
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesReturns whether the current subscription will overwrite earlier versions of the same report or document in the history list- Specified by:
isOverwriteOlderVersionin interfaceWebSubscriptionDeliveryModeEmailProperties
-
setOverwriteOlderVersion
public void setOverwriteOlderVersion(boolean overwrite)
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesSets whether the subscription will overwrite earlier versions of the same report or document in the history list- Specified by:
setOverwriteOlderVersionin interfaceWebSubscriptionDeliveryModeEmailProperties
-
getContactSecurity
public java.lang.String getContactSecurity()
Description copied from interface:WebSubscriptionDeliveryModePropertiesReturns whether use Contact Security for each contact group member- Specified by:
getContactSecurityin interfaceWebSubscriptionDeliveryModeProperties
-
setContactSecurity
public void setContactSecurity(java.lang.String useContSec)
Description copied from interface:WebSubscriptionDeliveryModePropertiesSets whether use Contact Security for each contact group member- Specified by:
setContactSecurityin interfaceWebSubscriptionDeliveryModeProperties
-
getSpaceDelimiter
public java.lang.String getSpaceDelimiter()
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesReturns the space delimiter- Specified by:
getSpaceDelimiterin interfaceWebSubscriptionDeliveryModeEmailProperties
-
setSpaceDelimiter
public void setSpaceDelimiter(java.lang.String spaceDelimiter)
Description copied from interface:WebSubscriptionDeliveryModeEmailPropertiesSets the space delimiter- Specified by:
setSpaceDelimiterin interfaceWebSubscriptionDeliveryModeEmailProperties
-
-