Package com.microstrategy.web.app.beans
Class ProjectBrowserBeanImpl
- java.lang.Object
-
- All Implemented Interfaces:
EnumWebPersistableState,Persistable,AppComponent,FrameElement,ProjectBrowser,ReportFrameElement,ViewBeanParserBean,RequestPersistable,Transformable,WebComponent
public class ProjectBrowserBeanImpl extends AbstractViewBeanParserBean implements ProjectBrowser
Title:
Description:
Copyright: Copyright (c) 2002
Company: Microstrategy, Inc.
- Since:
- MicroStrategy Web 9.0.0
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.beans.AbstractPersistableAppComponent
STATE_DELIMITOR, STATE_ITEM_SEPARATOR
-
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.web.app.beans.AppComponent
COMPONENT_POSITION_NOT_INITIALIZED
-
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.app.beans.ProjectBrowser
LIST_DISPLAY_FORMAT, REQUEST_FROM_DATA_EXPLORER, TREE_DISPLAY_FORMAT
-
-
Constructor Summary
Constructors Constructor Description ProjectBrowserBeanImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollectData()Triggers execution to the back end no matter whether it is synchronous or asynchronous.protected voiddoFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)Speciefies which bean's properties are persisted.intgetMaximumStateLevel()Returns the maximum state level that is supported by the WebComponent.intgetXMLStatus()Returns theEnumRequestStatusstatus of the component.booleanhasChanged()Verifies the state of the component has changedbooleanisDataExplorerOpen()booleanisEnabled()Checks if a bean is enabledbooleanisTargetingFilter()booleanisTargetingTemplate()protected WebEventHandlernewDefaultEventHandler()voidsetDataExplorerStatus(boolean isOpen)voidsetDesignModeStage(int designModeStage)Holds the stage of the design mode (EnumReportDesignMode) .voidsetReportDesignMode(int reportDesignMode)Holds the stage of the report design mode (EnumReportViewModes) .-
Methods inherited from class com.microstrategy.web.app.beans.AbstractViewBeanParserBean
getActiveElementIndex, getActiveViewKey, getTemplateElementList, getViewBean, getViewBean, setActiveElementIndex, setActiveViewKey
-
Methods inherited from class com.microstrategy.web.app.beans.AbstractPersistableFrameElement
doCollectData, getDocumentFrameBean, getFeaturesManager, getFrameBean, getReportFrameBean, getRWFrameBean, getUseIFrame, isEditor, isGridDataNecessary, isIFrameEnabled, isOpen, setIsOpen, setUseIFrame
-
Methods inherited from class com.microstrategy.web.app.beans.AbstractPersistableAppComponent
addChildStateInfo, isCookieOpen, isSaveStateEnabled, saveState, saveState, saveState, saveState
-
Methods inherited from class com.microstrategy.web.app.beans.AbstractAppComponent
addChildStateInfo, collectMinimalData, compareChildsTargetWithCurrent, createTransformInstance, doCollectMinimalData, generateOutput, getAppContext, getContactInfo, getContainerServices, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getLeft, getObjectSource, getResultFilterMode, getSession, getTargetBean, getTop, getType, getWebObjectsFactory, getWebObjectsFactory, hasTargetBeanChanged, haveChildrenChanged, initComponent, internalCollectData, isDialog, isForcedChildrenStateSaving, isIFrameRequest, isModal, isModalOpen, newDefaultBeanContext, newHiddenInputBuilder, newNamespaceEncoder, newStyleRequestContext, newURIBuilder, setExtraInput, setExtraUrl, setForcedChildrenStateSaving, setHasJustOpened, setIsDialog, setIsModal, setLeft, setOutputFormat, setTop
-
Methods inherited from class com.microstrategy.web.beans.AbstractWebComponent
addChild, addChildStateInfo, addChildStateInfo, addChildStateInfo, addStateInfo, childValues, clearChildren, clearStateCache, getCachedState, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, handleRequest, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isChangeComparisonFlagSet, isFeatureAvailable, prepareForReuse, removeChild, removeChild, restoreState, restoreStateFromRequest, restoreStateFromRequest, saveXMLState, saveXMLState, saveXMLState, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setParent, setPersistMode, setRenderingFilter, setStateCache, setTargetBean, setTargetBeanPath, setWebEventHandler
-
Methods inherited from class com.microstrategy.web.beans.AbstractTransformable
addTransform, addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, createTransformInstance, getBeanContext, getDefaultTransform, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, hasTransform, hasTransform, internalCollectData, internalCollectData, invalidateTransformCache, isTransformSuitable, transform, transform, transform, transform
-
Methods inherited from class com.microstrategy.utils.serialization.AbstractPersistable
doFlatState, getStateHandler, isXMLStateZipped, restoreState, restoreXMLState, 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.web.app.beans.AppComponent
getAppContext, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getLeft, getResultFilterMode, getTop, isDialog, isForcedChildrenStateSaving, isModal, isModalOpen, isOpen, setExtraInput, setExtraUrl, setForcedChildrenStateSaving, setHasJustOpened, setIsDialog, setIsModal, setIsOpen, setLeft, setTop
-
Methods inherited from interface com.microstrategy.web.app.beans.FrameElement
getFrameBean, getTargetBean, getTargetBeanPath, getUseIFrame, isEditor, setTargetBean, setTargetBeanPath, setUseIFrame
-
Methods inherited from interface com.microstrategy.utils.serialization.Persistable
restoreState, restoreState, saveState, saveState, saveState, saveState
-
Methods inherited from interface com.microstrategy.web.app.beans.ReportFrameElement
getReportFrameBean, isGridDataNecessary
-
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, getType, hasTransform, hasTransform, invalidateTransformCache, setBeanContext, transform, transform
-
Methods inherited from interface com.microstrategy.web.app.beans.ViewBeanParserBean
getActiveElementIndex, getActiveViewKey, getTemplateElementList, getViewBean, getViewBean, setActiveElementIndex, setActiveViewKey
-
Methods inherited from interface com.microstrategy.web.beans.WebComponent
addChild, addChildStateInfo, addChildStateInfo, collectMinimalData, generateOutput, getBeanContext, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getFeaturesManager, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getWebEvent, getWebEvent, getWebEventHandler, handleRequest, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isFeatureAvailable, prepareForReuse, removeChild, removeChild, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setOutputFormat, setParent, setPersistMode, setRenderingFilter, setWebEventHandler
-
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Checks if a bean is enabled- Specified by:
isEnabledin interfaceFrameElement- Returns:
- true if the bean is enabled.
-
setDesignModeStage
public void setDesignModeStage(int designModeStage)
Holds the stage of the design mode (EnumReportDesignMode) . The report frame bean will be responsible for setting this property of the objectbrowser tab beans.- Specified by:
setDesignModeStagein interfaceProjectBrowser- Parameters:
designModeStage-
-
setReportDesignMode
public void setReportDesignMode(int reportDesignMode)
Holds the stage of the report design mode (EnumReportViewModes) . The report frame bean will be responsible for setting this property of the objectbrowser beans.- Specified by:
setReportDesignModein interfaceProjectBrowser- Parameters:
reportDesignMode-
-
isTargetingFilter
public boolean isTargetingFilter()
- Specified by:
isTargetingFilterin interfaceProjectBrowser- See Also:
ObjectBrowserTabBean.isTargetingFilter()
-
isTargetingTemplate
public boolean isTargetingTemplate()
- Specified by:
isTargetingTemplatein interfaceProjectBrowser
-
getMaximumStateLevel
public int getMaximumStateLevel()
Returns the maximum state level that is supported by the WebComponent. This value will come fromEnumWebPersistableState.- Specified by:
getMaximumStateLevelin interfaceWebComponent- Overrides:
getMaximumStateLevelin classAbstractWebComponent- Returns:
- A value from
EnumWebPersistableStatewhich indicates the maximum state level supported.
-
isDataExplorerOpen
public boolean isDataExplorerOpen()
- Specified by:
isDataExplorerOpenin interfaceProjectBrowser
-
setDataExplorerStatus
public void setDataExplorerStatus(boolean isOpen)
- Specified by:
setDataExplorerStatusin interfaceProjectBrowser
-
getXMLStatus
public int getXMLStatus()
Description copied from class:AbstractAppComponentReturns theEnumRequestStatusstatus of the component. The status determined by by the status of its children with the following precedence.EnumRequestStatus.WebBeanRequestEndsInErrorEnumRequestStatus.WebBeanRequestCanceledEnumRequestStatus.WebBeanRequestProcessingEnumRequestStatus.WebBeanRequestNotInitiatedEnumRequestStatus.WebBeanRequestWaitingForUserInputEnumRequestStatus.WebBeanRequestSuccessful- Specified by:
getXMLStatusin interfaceWebComponent- Overrides:
getXMLStatusin classAbstractAppComponent- Returns:
- an
EnumRequestStatusenumeration value for the component.
-
collectData
public void collectData() throws WebBeanExceptionDescription copied from class:AbstractAppComponentTriggers 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. IfAbstractAppComponent.isOpen(), this method will first perform aAbstractAppComponent.doCollectData(), then proceeds to callAbstractAppComponent.collectData()on all child componentsAbstractWebComponent.getChild(int).- Specified by:
collectDatain interfaceWebComponent- Overrides:
collectDatain classAbstractAppComponent- Throws:
WebBeanException- thrown if there is any exception
-
newDefaultEventHandler
protected WebEventHandler newDefaultEventHandler()
- Overrides:
newDefaultEventHandlerin classAbstractWebComponent
-
doFlatState
protected void doFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)
Description copied from class:AbstractViewBeanParserBeanSpeciefies which bean's properties are persisted.- Overrides:
doFlatStatein classAbstractViewBeanParserBean- Parameters:
serializer-FlatStateSerializerinitialized instance where the state of the instance is handledhowMuchState-intvalue fromEnumWebPersistableStateindicating how much state should be handled by this instancetokenizer-FlatStateTokenizerinitialized instance where the state of the instance is handled.
-
hasChanged
public boolean hasChanged()
Description copied from class:AbstractWebComponentVerifies the state of the component has changed- Specified by:
hasChangedin interfaceWebComponent- Overrides:
hasChangedin classAbstractAppComponent- Returns:
booleanvalue indicating if the current instance or its base bean (if any defined) has been marked as changed.
-
-