Package com.microstrategy.web.beans
Class AssociatedSchedulesBeanImpl
- java.lang.Object
 - 
- com.microstrategy.utils.serialization.AbstractPersistable
 - 
- com.microstrategy.web.beans.AbstractTransformable
 - 
- com.microstrategy.web.beans.AbstractWebComponent
 - 
- com.microstrategy.web.beans.AssociatedSchedulesBeanImpl
 
 
 
 
 
- 
- All Implemented Interfaces:
 EnumWebPersistableState,Persistable,AssociatedSchedulesBean,RequestPersistable,Transformable,WebBean,WebComponent
public class AssociatedSchedulesBeanImpl extends AbstractWebComponent implements AssociatedSchedulesBean
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected boolean_hasCollectedDataA flag indicating that the XML request to collect data has been executedprotected int_statusprotected static java.lang.StringATT_BEAN_TYPEprotected static java.lang.StringATT_HOW_MUCH_STATEprotected static java.lang.StringATTRIBUTE_BEAN_HEADERprotected static java.lang.StringDATA_EXPLORER_BEAN_HEADERprotected static java.lang.StringDELIMITORprotected static java.lang.StringDOCUMENT_BEAN_HEADERprotected static java.lang.StringEXPRESSION_BEAN_HEADERprotected static java.lang.StringFILTER_BEAN_HEADERprotected static java.lang.StringFOLDER_BEAN_HEADERprotected static java.lang.StringINBOX_BEAN_HEADERprotected static java.lang.StringPERFORMANCE_MONITOR_BEAN_HEADERprotected static java.lang.StringPROMPTDEF_BEAN_HEADERprotected static java.lang.StringPROMPTS_BEAN_HEADERprotected static java.lang.StringREPORT_BEAN_HEADERprotected static java.lang.StringRW_BEAN_HEADERprotected static java.lang.StringSEPARATOR- 
Fields inherited from class com.microstrategy.web.beans.AbstractWebComponent
_features, _hasJustOpened 
- 
Fields inherited from class com.microstrategy.web.beans.AbstractTransformable
_beanContext 
- 
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 
 - 
 
- 
Constructor Summary
Constructors Constructor Description AssociatedSchedulesBeanImpl() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TransformInstanceaddTransform(Transform transform, java.lang.String key)Adds a transform to itself and all the child beans which support the transform and returns aTransformInstanceof the last child bean it was added to.protected voidcheckBeanType(AttributesXt attrs, java.lang.String expected)protected voidcheckHowMuchState(AttributesXt attrs)voidcollectData()Triggers execution to the back end no matter whether it is synchronous or asynchronous.voidcollectMinimalData()This is similar toWebComponent.collectData()except data collected is minimal.protected voiddoCollectData()Override this method in sub classes to implement the collectData method.protected voiddoCollectMinimalData()protected voiddoFlatState(FlatStateSerializer ser, int howMuchState, FlatStateTokenizer tok)MarkupOutputgenerateOutput()This is the generic method to ask the WebComponent to generate some output for the client.WebAssociatedSchedulesgetAssociatedSchedulesForObject()retrieve the associated schedules with report or RWDjava.lang.StringgetDescriptor(int key)java.lang.StringgetDescriptor(java.lang.String key)org.w3c.dom.DocumentgetDocument()Returns aorg.w3c.dom.Documentparsed from the XML representation of this bean.WebBeanErrorgetErrorInfo()Returns aWebBeanErrorobject indicating processing error during thecollectDatamethod call.WebIServerSubscriptionTriggergetISSTriger(java.lang.String id)WebAssociatedSchedulesgetProjectAssociatedSchedules()retrieve the associated schedules with project in the Preference pageWebAssociatedSchedulesgetProjectLevelSchedules()retrieve the associated schedules with project in report or RWD option pageWebSessionInfogetSessionInfo()Returns theWebSessionInfoinstance from this bean.protected AbstractHandlergetStateHandler()TransformInstancegetTransformInstance(java.lang.String key)Returns theTransformInstanceobject with the specified key.java.util.EnumerationgetTransformInstances()Retuns ajava.util.Enumerationover all theTransformInstanceobjects.intgetType()Returns the transformable type as inEnumWebTransformableType.intgetXMLStatus()This method returns theEnumRequestStatusstatus of the current Component.booleanhasTransform()Returns a boolean value indicating whether there is a defaultTransformInstanceobject.booleanhasTransform(java.lang.String key)Returns a boolean value indicating whether there is such aTransformInstanceobject with the specified key.protected voidinternalCollectData()This method internally calls the method collectData if the method collectData has not yet been called.protected voidinternalCollectData(boolean collectOnError)Overriding method should not only throwWebBeanException, but also sets error info if possible.protected voidinternalCollectData(boolean collectOnError, boolean collectOnProcessing)Overriding method should not only throwWebBeanException, but also sets error info if possible.protected voidinvalidateAllTransformCaches()booleanisStale()Returns a boolean value indicating whether the content of this bean is stale.protected booleanisTransformSuitable(Transform t)This method is called in the addTransform methods.protected BeanContextnewDefaultBeanContext()This method is called by getBeanContext() to automatically create an instance of a BeanContext if one has not been explicitly set.protected WebEventHandlernewDefaultEventHandler()protected StyleRequestContextnewStyleRequestContext()protected voidreset()protected voidsaveXMLState(XMLStateSerializer builder, int howMuchState)Saves the component stateprotected voidsetErrorInfo(WebBeanError beanErr)voidsetSessionInfo(WebSessionInfo sessionInfo)Sets a newWebSessionInfoinstance on this bean.voidsetStale(boolean stale)Sets a flag indicating whether this bean is stale or fresh.voidsetWebEventHandler(WebEventHandler handler)Associate with this component aWebEventHandlerinstance.voidsetXMLStatus(int status)- 
Methods inherited from class com.microstrategy.web.beans.AbstractWebComponent
addChild, addChildStateInfo, addChildStateInfo, addChildStateInfo, addChildStateInfo, addChildStateInfo, addStateInfo, childValues, clearChildren, clearStateCache, getCachedState, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getFeaturesManager, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBean, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, handleRequest, hasChanged, hasJustOpened, haveChildrenChanged, initBean, invalidateChildrenState, isBeanContextEmpty, isChangeComparisonFlagSet, isFeatureAvailable, prepareForReuse, removeChild, removeChild, restoreState, restoreStateFromRequest, restoreStateFromRequest, saveXMLState, saveXMLState, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setOutputFormat, setParent, setPersistMode, setRenderingFilter, setStateCache, setTargetBean, setTargetBeanPath 
- 
Methods inherited from class com.microstrategy.web.beans.AbstractTransformable
addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, createTransformInstance, createTransformInstance, getBeanContext, getDefaultTransform, getMessageString, getMyTransformInstances, getTransformInstance, invalidateTransformCache, transform, transform, transform, transform 
- 
Methods inherited from class com.microstrategy.utils.serialization.AbstractPersistable
doFlatState, isXMLStateZipped, restoreState, restoreXMLState, saveState, saveState, saveState, saveState, saveXMLState 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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.web.beans.RequestPersistable
restoreStateFromRequest, restoreStateFromRequest 
- 
Methods inherited from interface com.microstrategy.web.beans.Transformable
addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, getBeanContext, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, hasTransform, hasTransform, invalidateTransformCache, setBeanContext, transform, transform 
- 
Methods inherited from interface com.microstrategy.web.beans.WebBean
getErrorInfo, getSessionInfo, isStale, setSessionInfo, setStale 
- 
Methods inherited from interface com.microstrategy.web.beans.WebComponent
addChild, addChildStateInfo, addChildStateInfo, collectData, collectMinimalData, generateOutput, getBeanContext, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getFeaturesManager, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBean, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, handleRequest, hasChanged, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isFeatureAvailable, prepareForReuse, removeChild, removeChild, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setOutputFormat, setParent, setPersistMode, setRenderingFilter, setTargetBean, setTargetBeanPath, setWebEventHandler 
 - 
 
 - 
 
- 
- 
Field Detail
- 
FOLDER_BEAN_HEADER
protected static final java.lang.String FOLDER_BEAN_HEADER
- See Also:
 - Constant Field Values
 
 
- 
REPORT_BEAN_HEADER
protected static final java.lang.String REPORT_BEAN_HEADER
- See Also:
 - Constant Field Values
 
 
- 
PROMPTS_BEAN_HEADER
protected static final java.lang.String PROMPTS_BEAN_HEADER
- See Also:
 - Constant Field Values
 
 
- 
DOCUMENT_BEAN_HEADER
protected static final java.lang.String DOCUMENT_BEAN_HEADER
- See Also:
 - Constant Field Values
 
 
- 
INBOX_BEAN_HEADER
protected static final java.lang.String INBOX_BEAN_HEADER
- See Also:
 - Constant Field Values
 
 
- 
DATA_EXPLORER_BEAN_HEADER
protected static final java.lang.String DATA_EXPLORER_BEAN_HEADER
- See Also:
 - Constant Field Values
 
 
- 
RW_BEAN_HEADER
protected static final java.lang.String RW_BEAN_HEADER
- Since:
 - MicroStrategy Web 8.0.0
 - See Also:
 - Constant Field Values
 
 
- 
EXPRESSION_BEAN_HEADER
protected static final java.lang.String EXPRESSION_BEAN_HEADER
- Since:
 - MicroStrategy Web 8.0.0
 - See Also:
 - Constant Field Values
 
 
- 
FILTER_BEAN_HEADER
protected static final java.lang.String FILTER_BEAN_HEADER
- See Also:
 - Constant Field Values
 
 
- 
PROMPTDEF_BEAN_HEADER
protected static final java.lang.String PROMPTDEF_BEAN_HEADER
- See Also:
 - Constant Field Values
 
 
- 
ATTRIBUTE_BEAN_HEADER
protected static final java.lang.String ATTRIBUTE_BEAN_HEADER
- See Also:
 - Constant Field Values
 
 
- 
PERFORMANCE_MONITOR_BEAN_HEADER
protected static final java.lang.String PERFORMANCE_MONITOR_BEAN_HEADER
- Since:
 - MicroStrategy Web 7.5.0
 - See Also:
 - Constant Field Values
 
 
- 
DELIMITOR
protected static final java.lang.String DELIMITOR
- See Also:
 - Constant Field Values
 
 
- 
SEPARATOR
protected static final java.lang.String SEPARATOR
- See Also:
 - Constant Field Values
 
 
- 
ATT_BEAN_TYPE
protected static final java.lang.String ATT_BEAN_TYPE
- Since:
 - MicroStrategy Web 8.0.0
 - See Also:
 - Constant Field Values
 
 
- 
ATT_HOW_MUCH_STATE
protected static final java.lang.String ATT_HOW_MUCH_STATE
- Since:
 - MicroStrategy Web 8.0.0
 - See Also:
 - Constant Field Values
 
 
- 
_status
protected int _status
 
- 
_hasCollectedData
protected boolean _hasCollectedData
A flag indicating that the XML request to collect data has been executed 
 - 
 
- 
Method Detail
- 
newDefaultEventHandler
protected WebEventHandler newDefaultEventHandler()
- Overrides:
 newDefaultEventHandlerin classAbstractWebComponent
 
- 
doCollectData
protected void doCollectData() throws WebBeanExceptionOverride this method in sub classes to implement the collectData method.- Throws:
 WebBeanException
 
- 
doFlatState
protected void doFlatState(FlatStateSerializer ser, int howMuchState, FlatStateTokenizer tok)
 
- 
getStateHandler
protected AbstractHandler getStateHandler()
 
- 
getType
public int getType()
Description copied from interface:TransformableReturns the transformable type as inEnumWebTransformableType.- Specified by:
 getTypein interfaceTransformable- Returns:
 - the transformable type.
 
 
- 
saveXMLState
protected void saveXMLState(XMLStateSerializer builder, int howMuchState)
Description copied from class:AbstractWebComponentSaves the component state- Parameters:
 builder- aXMLStateSerializerobjecthowMuchState- how much state to save (EnumWebPersistableState)
 
- 
setXMLStatus
public void setXMLStatus(int status)
- Specified by:
 setXMLStatusin interfaceAssociatedSchedulesBean
 
- 
getXMLStatus
public int getXMLStatus()
Description copied from interface:WebComponentThis method returns theEnumRequestStatusstatus of the current Component.- Specified by:
 getXMLStatusin interfaceWebComponent- Returns:
 - the 
EnumRequestStatusof the current page. 
 
- 
getProjectAssociatedSchedules
public WebAssociatedSchedules getProjectAssociatedSchedules()
Description copied from interface:AssociatedSchedulesBeanretrieve the associated schedules with project in the Preference page- Specified by:
 getProjectAssociatedSchedulesin interfaceAssociatedSchedulesBean- Returns:
 - WebAssociatedSchedules representing the associated schedule
 
 
- 
getAssociatedSchedulesForObject
public WebAssociatedSchedules getAssociatedSchedulesForObject()
Description copied from interface:AssociatedSchedulesBeanretrieve the associated schedules with report or RWD- Specified by:
 getAssociatedSchedulesForObjectin interfaceAssociatedSchedulesBean- Returns:
 - WebAssociatedSchedules representing the associated schedule
 
 
- 
getProjectLevelSchedules
public WebAssociatedSchedules getProjectLevelSchedules()
Description copied from interface:AssociatedSchedulesBeanretrieve the associated schedules with project in report or RWD option page- Specified by:
 getProjectLevelSchedulesin interfaceAssociatedSchedulesBean- Returns:
 - WebAssociatedSchedules representing the associated schedule
 
 
- 
getISSTriger
public WebIServerSubscriptionTrigger getISSTriger(java.lang.String id) throws WebObjectsException, java.lang.IllegalArgumentException
- Throws:
 WebObjectsExceptionjava.lang.IllegalArgumentException
 
- 
getDocument
public org.w3c.dom.Document getDocument() throws WebBeanExceptionDescription copied from interface:WebBeanReturns aorg.w3c.dom.Documentparsed from the XML representation of this bean.- Specified by:
 getDocumentin interfaceWebBean- Returns:
 - the XML representation of this bean.
 - Throws:
 WebBeanException- thrown if there is error when collecting data for this bean.
 
- 
getErrorInfo
public WebBeanError getErrorInfo()
Description copied from interface:WebBeanReturns aWebBeanErrorobject indicating processing error during thecollectDatamethod call. Null is returned if there is no error.- Specified by:
 getErrorInfoin interfaceWebBean- Returns:
 - a 
WebBeanErrorobject; null if there is no error. 
 
- 
setErrorInfo
protected void setErrorInfo(WebBeanError beanErr)
 
- 
getSessionInfo
public WebSessionInfo getSessionInfo()
Description copied from interface:WebBeanReturns theWebSessionInfoinstance from this bean. AWebSessionInfoobject is where you can get or set the session ID to the intelligence server, user credentials and localization, etc.- Specified by:
 getSessionInfoin interfaceWebBean- Returns:
 - a 
WebSessionInfoinstance. 
 
- 
setSessionInfo
public void setSessionInfo(WebSessionInfo sessionInfo) throws java.lang.IllegalArgumentException
Description copied from interface:WebBeanSets a newWebSessionInfoinstance on this bean. AWebSessionInfoobject is where you can get or set the session ID to the intelligence server, user credentials and localization, etc.- Specified by:
 setSessionInfoin interfaceWebBean- Parameters:
 sessionInfo- aWebSessionInfoinstance.- Throws:
 java.lang.IllegalArgumentException
 
- 
isStale
public boolean isStale()
Description copied from interface:WebBeanReturns a boolean value indicating whether the content of this bean is stale. 
- 
setStale
public void setStale(boolean stale)
Description copied from interface:WebBeanSets a flag indicating whether this bean is stale or fresh. 
- 
reset
protected void reset()
 
- 
invalidateAllTransformCaches
protected void invalidateAllTransformCaches()
 
- 
generateOutput
public MarkupOutput generateOutput()
Description copied from interface:WebComponentThis is the generic method to ask the WebComponent to generate some output for the client. The type of output should be determined by the OutputFormat property (WebComponent.setOutputFormat(int)).- Specified by:
 generateOutputin interfaceWebComponent- Returns:
 - a 
MarkupOutputobject. 
 
- 
internalCollectData
protected void internalCollectData() throws WebBeanExceptionThis method internally calls the method collectData if the method collectData has not yet been called. Otherwise it does nothing.- Overrides:
 internalCollectDatain classAbstractTransformable- Throws:
 WebBeanException- thrown if there is severe errors when collecting data- See Also:
 AbstractTransformable.internalCollectData(boolean)
 
- 
internalCollectData
protected void internalCollectData(boolean collectOnError) throws WebBeanExceptionDescription copied from class:AbstractTransformableOverriding method should not only throwWebBeanException, but also sets error info if possible.- Overrides:
 internalCollectDatain classAbstractTransformable- Parameters:
 collectOnError- will attempt to collect data even if object in in error.- Throws:
 WebBeanException- thrown if there is severe errors when collecting data
 
- 
internalCollectData
protected void internalCollectData(boolean collectOnError, boolean collectOnProcessing) throws WebBeanExceptionDescription copied from class:AbstractTransformableOverriding method should not only throwWebBeanException, but also sets error info if possible.- Overrides:
 internalCollectDatain classAbstractTransformable- Parameters:
 collectOnError- will attempt to collect data even if object in in error.collectOnProcessing- will attempt to collect data even if object is in processing.- Throws:
 WebBeanException- thrown if there is severe errors when collecting data
 
- 
collectData
public void collectData() throws WebBeanExceptionDescription copied from class:AbstractWebComponentTriggers execution to the back end no matter whether it is synchronous or asynchronous. If this method fails to collect data, an exception is raised and saved in a WebBeanError instance.- Specified by:
 collectDatain interfaceWebComponent- Overrides:
 collectDatain classAbstractWebComponent- Throws:
 WebBeanException- thrown if there is any exception
 
- 
doCollectMinimalData
protected void doCollectMinimalData() throws WebBeanException- Throws:
 WebBeanException
 
- 
collectMinimalData
public void collectMinimalData() throws WebBeanExceptionDescription copied from interface:WebComponentThis is similar toWebComponent.collectData()except data collected is minimal. This is essentially a check to ensure everything is ok, but that we don't need any data. After invoking this operation, seeWebComponent.getXMLStatus()andWebBean.getErrorInfo()for details.- Specified by:
 collectMinimalDatain interfaceWebComponent- Overrides:
 collectMinimalDatain classAbstractWebComponent- Throws:
 WebBeanException- thrown if an error occurs during this operation.
 
- 
getDescriptor
public java.lang.String getDescriptor(int key)
 
- 
getDescriptor
public java.lang.String getDescriptor(java.lang.String key)
 
- 
isTransformSuitable
protected boolean isTransformSuitable(Transform t)
Description copied from class:AbstractTransformableThis method is called in the addTransform methods. It verifies that the passed transform is suitable for this object. Default implementation simply calls transform's supports method.- Overrides:
 isTransformSuitablein classAbstractTransformable
 
- 
checkBeanType
protected void checkBeanType(AttributesXt attrs, java.lang.String expected) throws java.lang.IllegalArgumentException
- Throws:
 java.lang.IllegalArgumentException- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
checkHowMuchState
protected void checkHowMuchState(AttributesXt attrs) throws java.lang.IllegalArgumentException, SAXSupportException
- Throws:
 java.lang.IllegalArgumentExceptionSAXSupportException- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
newDefaultBeanContext
protected BeanContext newDefaultBeanContext()
Description copied from class:AbstractTransformableThis method is called by getBeanContext() to automatically create an instance of a BeanContext if one has not been explicitly set.- Overrides:
 newDefaultBeanContextin classAbstractTransformable
 
- 
addTransform
protected TransformInstance addTransform(Transform transform, java.lang.String key)
Adds a transform to itself and all the child beans which support the transform and returns aTransformInstanceof the last child bean it was added to.- Overrides:
 addTransformin classAbstractTransformable
 
- 
hasTransform
public boolean hasTransform()
Description copied from interface:TransformableReturns a boolean value indicating whether there is a defaultTransformInstanceobject.- Specified by:
 hasTransformin interfaceTransformable- Overrides:
 hasTransformin classAbstractTransformable- Returns:
 - true if there is a default transform.
 
 
- 
hasTransform
public boolean hasTransform(java.lang.String key)
Description copied from interface:TransformableReturns a boolean value indicating whether there is such aTransformInstanceobject with the specified key.- Specified by:
 hasTransformin interfaceTransformable- Overrides:
 hasTransformin classAbstractTransformable- Parameters:
 key- the key of aTransform- Returns:
 - true if there is such a 
TransformInstancewith the specified key. 
 
- 
getTransformInstance
public TransformInstance getTransformInstance(java.lang.String key) throws KeyDoesNotExistException
Description copied from interface:TransformableReturns theTransformInstanceobject with the specified key.- Specified by:
 getTransformInstancein interfaceTransformable- Overrides:
 getTransformInstancein classAbstractTransformable- Parameters:
 key- the key of aTransformInstance.- Returns:
 - the 
TransformInstanceobject with the specified key. - Throws:
 KeyDoesNotExistException- thrown if the key is not found.
 
- 
getTransformInstances
public java.util.Enumeration getTransformInstances()
Description copied from interface:TransformableRetuns ajava.util.Enumerationover all theTransformInstanceobjects.- Specified by:
 getTransformInstancesin interfaceTransformable- Overrides:
 getTransformInstancesin classAbstractTransformable- Returns:
 - a 
java.util.Enumerationover all theTransformInstanceobjects. 
 
- 
setWebEventHandler
public void setWebEventHandler(WebEventHandler handler)
Description copied from class:AbstractWebComponentAssociate with this component aWebEventHandlerinstance.A WebComponent has one to one relationship with a WebEventHandler instance. This method first removes any existing handler associated with this component, and then sets the new one on it.
This method calls the method
WebEventHandler.setWebComponent(com.microstrategy.web.beans.WebComponent). Therefore, the WebEventHandler implementator should be careful to avoid cyclic reference to each other between this component and the event handler.- Specified by:
 setWebEventHandlerin interfaceWebComponent- Overrides:
 setWebEventHandlerin classAbstractWebComponent- Parameters:
 handler- the WebEventHandler instance to set.- See Also:
 WebComponent.setWebEventHandler(com.microstrategy.web.beans.WebEventHandler)
 
- 
newStyleRequestContext
protected StyleRequestContext newStyleRequestContext()
- Overrides:
 newStyleRequestContextin classAbstractWebComponent
 
 - 
 
 -