Package com.microstrategy.web.app
Class WebBeanInfo
- java.lang.Object
 - 
- com.microstrategy.utils.config.AbstractConfigurationElement
 - 
- com.microstrategy.web.app.WebBeanInfo
 
 
 
- 
- All Implemented Interfaces:
 ConfigurationElement,ConfigurationFile,java.lang.Cloneable
public class WebBeanInfo extends AbstractConfigurationElement
- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
AbstractConfigurationElement.FilteredList 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATT_BEAN_CLASSstatic java.lang.StringATT_BEAN_CONSTRUCTORstatic java.lang.StringATT_BEAN_TYPEstatic java.lang.StringATT_EVENT_HANDLERstatic java.lang.StringATT_FACTORY_CLASSstatic java.lang.StringATT_FACTORY_CONSTRUCTORstatic java.lang.StringATT_FEATURE_IDstatic java.lang.StringATT_NAMEstatic java.lang.StringATT_PERSIST_MODEstatic java.lang.StringATT_SESSIONstatic java.lang.StringATT_SYS_BEANstatic java.lang.StringNODE_WEB_BEAN- 
Fields inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
ATT_CONFIG_SRC, ATT_DELETED, ATT_POSITION, ATT_PROTOTYPE, ATT_USE_DEFAULT 
 - 
 
- 
Constructor Summary
Constructors Constructor Description WebBeanInfo()Class constructor.WebBeanInfo(java.lang.String name)Class constructor.WebBeanInfo(org.w3c.dom.Node root)Class constructor. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description WebComponentcreateBeanInstance()Get the WebComponent corresponding to the information available on this WebBeanInfo instance and initialize it.java.lang.StringgetBeanClass()Get the name of the bean class for the WebBeanInfo instancejava.lang.StringgetBeanConstructor()Get the name of the bean constructor for the WebBeanInfo instancestatic WebBeanInfogetBeanInfo(WebComponent component, AppContext context)WebComponentgetBeanInstance(AppContext appContext)Get the WebComponent corresponding to the information available on this WebBeanInfo instance and initialize it.WebComponentgetBeanInstance(AppContext appContext, ComponentInitializationContext initContext)Get the WebComponent corresponding to the information available on this WebBeanInfo instance and initialize it.WebBeanStyleListgetBeanStyleList()Get the collection of bean styles for the WebBeanInfo instanceWebBeanInfoListgetChildrenBeans()Get the WebBeanInfoList of WebBeans children of this beanintgetConfigType()Deprecated.With the introduction of the centralizedBeanFactoryclass, bean configuration type distinctions are no longer relevant.java.lang.StringgetEventHandler()Get the event handler for this WebBeanInfo instanceEventHandlerListgetEventHandlerList()Get the collection of bean event handlers for the WebBeanInfo instancejava.lang.StringgetFactoryClass()Get the name of the factory class for the WebBeanInfo instancejava.lang.StringgetFactoryConstructor()Get the name of the factory constructor for the WebBeanInfo instancejava.lang.StringgetFeatureId()Get the feature Id associated with this page.WebBeanPropertyListgetInitPropertyList()Get the collection of bean init-properties for the WebBeanInfo instance.protected java.lang.StringgetKeyAttribute()This method must return the attribute that uniquely identifies this element among its siblings; if no single attribute can be used, return null and override thegetKeyandsetKeymethods.java.lang.StringgetName()Get the name of the WebBeanInfo instanceintgetPersistMode()Get the persist mode of this WebBeanInfo instanceWebBeanPropertyListgetRequestPropertyList()Get the collection of bean request-properties for the WebBeanInfo instance.java.lang.StringgetSessionName()Get the session name for this WebBeanInfo instanceintgetSysBean()Deprecated.UsegetSysBeanName()instead.java.lang.StringgetSysBeanName()voidinitBeanInstance(AppContext appContext, WebComponent beanInstance, ComponentInitializationContext initContext)protected voidinitDefaultAttributes()This method can be overridden to set default values for attributes.voidsetBeanClass(java.lang.String beanClass)Set the name of the bean class for the WebBeanInfo instancevoidsetBeanConstructor(java.lang.String beanConstructor)Set the name of the bean constructor for the WebBeanInfo instancevoidsetBeanProperties(WebComponent beanInstance, WebBeanPropertyList properties, AppContext appContext)Set the properties of the bean instance given the parameters available on the RequestKeys.voidsetBeanStyles(java.lang.Object beanInstance, AppContext appContext)Set the styles of the bean instance given the parameters available on the RequestKeys.voidsetConfigType(int configType)Deprecated.With the introduction of the centralizedBeanFactoryclass, bean configuration type distinctions are no longer relevant.voidsetEventHandler(java.lang.String eventHandler)Set the event handler for this WebBeanInfo instancevoidsetFactoryClass(java.lang.String factoryClass)Set the name of the factory class for the WebBeanInfo instancevoidsetFactoryConstructor(java.lang.String factoryConstructor)Set the name of the factory constructor for the WebBeanInfo instancevoidsetFeatureId(java.lang.String featureId)Sets the name of the class for the event handler of this page.voidsetName(java.lang.String name)Set the name of the WebBeanInfo instancevoidsetPersistMode(int persistMode)Set the persist mode of this WebBeanInfo instancevoidsetSessionName(java.lang.String session)Set the session name for this WebBeanInfo instancevoidsetSysBean(int sysBean)Deprecated.UsesetSysBeanName(java.lang.String)instead.voidsetSysBeanName(java.lang.String value)- 
Methods inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
addFileSource, applyCustomization, applyCustomizations, cleanUpDeletedElements, clone, delete, deltas, deltas, equalAtts, equalElements, equalNodeValues, equals, equalsIncludingDeletedElements, exportAttributesToXML, exportElementsToXML, exportNodeValueToXML, getAttribute, getAttributes, getBoolAttribute, getChildKey, getConfigSrc, getDTDFileName, getElement, getElement, getElements, getFileLoader, getIntAttribute, getIntAttribute, getKey, getLineNumber, getList, getNextKey, getNodeName, getNodeValue, getNodeValue, getOrCreateElement, getParent, getPosition, getPrototype, getRegisteredClass, getSelfInitPath, getSource, getStrAttribute, getUseDefault, getXMLParserParameters, getXMLSerializerParameters, hashCode, hashCodeAtts, hashCodeElements, hashCodeNodeValues, hasRegisteredClass, initAttributesFromXML, initElementFromXML, initElementsFromXML, initFromFile, initFromResource, initFromXML, initFromXML, initNodeValueFromXML, initPrototype, isActive, isCustomized, isDeleted, isDirty, isInSource, isKeyAttribute, load, mergeChanges, newChildInstance, newSource, original, populate, printAttributes, printElements, printNodeValue, refreshLists, registerClass, registerElement, registerElement, registerElementList, reload, reloadPrototype, removeAttribute, removeDefaults, replaceList, restore, save, save, saveChangesAs, saveConfig, saveFlatXML, saveNode, saveSource, setAttribute, setBoolAttribute, setChildOriginals, setConfigSrc, setCustomized, setElement, setFileLoader, setIntAttribute, setKey, setLineNumber, setNodeName, setNodeValue, setPosition, setPrototype, setSelfInitPath, setStrAttribute, setUseDefault, setUseValidation, throwConfigParseException, toString, toXML, toXML, toXML, toXML, useNodeValue, useValidation 
 - 
 
 - 
 
- 
- 
Field Detail
- 
NODE_WEB_BEAN
public static final java.lang.String NODE_WEB_BEAN
- See Also:
 - Constant Field Values
 
 
- 
ATT_NAME
public static final java.lang.String ATT_NAME
- See Also:
 - Constant Field Values
 
 
- 
ATT_SYS_BEAN
public static final java.lang.String ATT_SYS_BEAN
- See Also:
 - Constant Field Values
 
 
- 
ATT_BEAN_TYPE
public static final java.lang.String ATT_BEAN_TYPE
- See Also:
 - Constant Field Values
 
 
- 
ATT_FACTORY_CLASS
public static final java.lang.String ATT_FACTORY_CLASS
- See Also:
 - Constant Field Values
 
 
- 
ATT_FACTORY_CONSTRUCTOR
public static final java.lang.String ATT_FACTORY_CONSTRUCTOR
- See Also:
 - Constant Field Values
 
 
- 
ATT_BEAN_CLASS
public static final java.lang.String ATT_BEAN_CLASS
- See Also:
 - Constant Field Values
 
 
- 
ATT_BEAN_CONSTRUCTOR
public static final java.lang.String ATT_BEAN_CONSTRUCTOR
- See Also:
 - Constant Field Values
 
 
- 
ATT_FEATURE_ID
public static final java.lang.String ATT_FEATURE_ID
- See Also:
 - Constant Field Values
 
 
- 
ATT_SESSION
public static final java.lang.String ATT_SESSION
- See Also:
 - Constant Field Values
 
 
- 
ATT_PERSIST_MODE
public static final java.lang.String ATT_PERSIST_MODE
- See Also:
 - Constant Field Values
 
 
- 
ATT_EVENT_HANDLER
public static final java.lang.String ATT_EVENT_HANDLER
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
WebBeanInfo
public WebBeanInfo()
Class constructor. Initializes a new -empty- instance of the WebBeanInfo class. 
- 
WebBeanInfo
public WebBeanInfo(java.lang.String name)
Class constructor. Initializes a new instance of the WebBeanProperty with the values passed as parameters- Parameters:
 name-Stringname of the bean.
 
- 
WebBeanInfo
public WebBeanInfo(org.w3c.dom.Node root)
Class constructor. Initializes a WebBeanInfo instance based on the information included on the XML Node- Parameters:
 root- Node instance representing the web bean information.
 
 - 
 
- 
Method Detail
- 
getKeyAttribute
protected java.lang.String getKeyAttribute()
Description copied from class:AbstractConfigurationElementThis method must return the attribute that uniquely identifies this element among its siblings; if no single attribute can be used, return null and override thegetKeyandsetKeymethods.- Specified by:
 getKeyAttributein classAbstractConfigurationElement- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
initDefaultAttributes
protected void initDefaultAttributes()
Description copied from class:AbstractConfigurationElementThis method can be overridden to set default values for attributes. Simply extend this method and callAbstractConfigurationElement.setAttribute(java.lang.String, java.lang.Object)- Overrides:
 initDefaultAttributesin classAbstractConfigurationElement- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getBeanInstance
public WebComponent getBeanInstance(AppContext appContext) throws WebAppException
Get the WebComponent corresponding to the information available on this WebBeanInfo instance and initialize it.
This method returns an instance of the bean by creating it from theBeanFactory, or from the classes specified in the config file.
This bean gets initialized its properties, session and eventHandler based again, on the properties in the config file. If values are not specified, default values are used.- Parameters:
 appContext-AppContextinstance- Returns:
 - an 
WebComponentinstance of the bean initialized - Throws:
 WebAppException- if an error is generated while initializing the bean
 
- 
getBeanInstance
public WebComponent getBeanInstance(AppContext appContext, ComponentInitializationContext initContext) throws WebAppException
Get the WebComponent corresponding to the information available on this WebBeanInfo instance and initialize it.
This method returns an instance of the bean by creating it from theBeanFactory, or from the classes specified in the config file.
This bean gets initialized its properties, session and eventHandler based again, on the properties in the config file. If values are not specified, default values are used.- Parameters:
 appContext-AppContextinstanceinitContext- theComponentInitializationContextobject with initialization information the beans will require to initialize- Returns:
 - an 
WebComponentinstance of the bean initialized - Throws:
 WebAppException- if an error is generated while initializing the bean- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
initBeanInstance
public void initBeanInstance(AppContext appContext, WebComponent beanInstance, ComponentInitializationContext initContext) throws WebAppException
- Throws:
 WebAppException- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
createBeanInstance
public WebComponent createBeanInstance()
Get the WebComponent corresponding to the information available on this WebBeanInfo instance and initialize it.
This bean gets created and the corresponding event handler is set. If values are not specified, default values are used.- Returns:
 - A bean instance with the event handler
 
 
- 
setBeanStyles
public void setBeanStyles(java.lang.Object beanInstance, AppContext appContext) throws WebAppExceptionSet the styles of the bean instance given the parameters available on the RequestKeys.- Parameters:
 beanInstance- instance of the bean to be initializedappContext-AppContextinstance- Throws:
 WebAppException- if an error is generated while initializing the bean
 
- 
setBeanProperties
public void setBeanProperties(WebComponent beanInstance, WebBeanPropertyList properties, AppContext appContext)
Set the properties of the bean instance given the parameters available on the RequestKeys.- Parameters:
 beanInstance- instance of the bean to be initializedproperties- WebBeanPropertyList object witht he information about the bean's properties to setappContext-AppContextinstance.
 
- 
setName
public void setName(java.lang.String name)
Set the name of the WebBeanInfo instance- Parameters:
 name- theStringvalue of the name property - unique identifier of the WebBeanInfo instance.
 
- 
getName
public java.lang.String getName()
Get the name of the WebBeanInfo instance- Returns:
 - the 
Stringvalue of the name property 
 
- 
setSysBeanName
public void setSysBeanName(java.lang.String value)
- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setSysBean
@Deprecated public void setSysBean(int sysBean)
Deprecated.UsesetSysBeanName(java.lang.String)instead. With the introduction of the centralizedBeanFactoryclass, the String type name is now the recommended way to refer to a bean's type.Set the sysBean property value of the WebBeanInfo instance- Parameters:
 sysBean- theintvalue of the sysBean property
 
- 
getSysBean
@Deprecated public int getSysBean()
Deprecated.UsegetSysBeanName()instead. With the introduction of the centralizedBeanFactoryclass, the String type name is now the recommended way to refer to a bean's type.Get the sysBean property value of the WebBeanInfo instance- Returns:
 - the 
intvalue of the sysBean property 
 
- 
setFactoryConstructor
public void setFactoryConstructor(java.lang.String factoryConstructor)
Set the name of the factory constructor for the WebBeanInfo instance- Parameters:
 factoryConstructor-Stringname of the factory constructor for the bean
 
- 
getFactoryConstructor
public java.lang.String getFactoryConstructor()
Get the name of the factory constructor for the WebBeanInfo instance- Returns:
 - the 
Stringname of the factory constructor for the bean 
 
- 
setFactoryClass
public void setFactoryClass(java.lang.String factoryClass)
Set the name of the factory class for the WebBeanInfo instance- Parameters:
 factoryClass-Stringname of the factory class for the bean
 
- 
getFactoryClass
public java.lang.String getFactoryClass()
Get the name of the factory class for the WebBeanInfo instance- Returns:
 - the 
Stringname of the factory class for the bean 
 
- 
setBeanConstructor
public void setBeanConstructor(java.lang.String beanConstructor)
Set the name of the bean constructor for the WebBeanInfo instance- Parameters:
 beanConstructor-Stringname of the bean constructor
 
- 
getBeanConstructor
public java.lang.String getBeanConstructor()
Get the name of the bean constructor for the WebBeanInfo instance- Returns:
 - the 
Stringname of the bean constructor 
 
- 
setBeanClass
public void setBeanClass(java.lang.String beanClass)
Set the name of the bean class for the WebBeanInfo instance- Parameters:
 beanClass-Stringname of the bean class
 
- 
getBeanClass
public java.lang.String getBeanClass()
Get the name of the bean class for the WebBeanInfo instance- Returns:
 - the 
Stringname of the bean class 
 
- 
getInitPropertyList
public WebBeanPropertyList getInitPropertyList()
Get the collection of bean init-properties for the WebBeanInfo instance. This properties are applied to a bean instance when the beans gets initialized.- Returns:
 - the 
WebBeanPropertyListassociated with this WebBeanInfo 
 
- 
getRequestPropertyList
public WebBeanPropertyList getRequestPropertyList()
Get the collection of bean request-properties for the WebBeanInfo instance. This properties are applied to a bean instance when the request is handled.- Returns:
 - the 
WebBeanPropertyListassociated with this WebBeanInfo 
 
- 
setPersistMode
public void setPersistMode(int persistMode)
Set the persist mode of this WebBeanInfo instance- Parameters:
 persistMode-booleanvalue of the persist property of this WebBeanInfo
 
- 
getPersistMode
public int getPersistMode()
Get the persist mode of this WebBeanInfo instance- Returns:
 - the 
booleanvalue of the persist property of this WebBeanInfo 
 
- 
setSessionName
public void setSessionName(java.lang.String session)
Set the session name for this WebBeanInfo instance- Parameters:
 session-Stringname of the session this bean will use when executing
 
- 
getSessionName
public java.lang.String getSessionName()
Get the session name for this WebBeanInfo instance- Returns:
 - the 
Stringname of the session this bean will use when executing 
 
- 
setEventHandler
public void setEventHandler(java.lang.String eventHandler)
Set the event handler for this WebBeanInfo instance- Parameters:
 eventHandler-Stringvalue of the event handler property of this WebBeanInfo
 
- 
getEventHandler
public java.lang.String getEventHandler()
Get the event handler for this WebBeanInfo instance- Returns:
 - the 
Stringvalue of the event handler property of this WebBeanInfo 
 
- 
getBeanStyleList
public WebBeanStyleList getBeanStyleList()
Get the collection of bean styles for the WebBeanInfo instance- Returns:
 - the 
WebBeanStyleListassociated with this WebBeanInfo 
 
- 
getEventHandlerList
public EventHandlerList getEventHandlerList()
Get the collection of bean event handlers for the WebBeanInfo instance- Returns:
 - the 
EventHandlerListassociated with this WebBeanInfo - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
setConfigType
@Deprecated public void setConfigType(int configType)
Deprecated.With the introduction of the centralizedBeanFactoryclass, bean configuration type distinctions are no longer relevant.Sets the corresponding configuration type of this bean- Parameters:
 configType- the configuration type from EnumWebConfigBeanType
 
- 
getConfigType
@Deprecated public int getConfigType()
Deprecated.With the introduction of the centralizedBeanFactoryclass, bean configuration type distinctions are no longer relevant.Get the corresponding configuration type of this bean- Returns:
 - the configuration type for this bean, a value from EnumWebConfigBeanType
 
 
- 
getFeatureId
public java.lang.String getFeatureId()
Get the feature Id associated with this page. The feature Id controls whether the page is visible or not depending on user privileges and application settings.- Returns:
 - the feature Id associated with this page.
 
 
- 
setFeatureId
public void setFeatureId(java.lang.String featureId)
Sets the name of the class for the event handler of this page.- Parameters:
 featureId- the feature Id associated with this page.
 
- 
getChildrenBeans
public WebBeanInfoList getChildrenBeans()
Get the WebBeanInfoList of WebBeans children of this bean- Returns:
 - the list of beans children of this WebBeanInfo
 
 
- 
getBeanInfo
public static WebBeanInfo getBeanInfo(WebComponent component, AppContext context)
- Parameters:
 component-WebComponentinstance to be used for searching its correspondingWebBeanInfoinstancecontext-AppContextinitialized instance- Returns:
 - the 
WebBeanInfoinstance corresponding to theWebComponentargument - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getSysBeanName
public java.lang.String getSysBeanName()
- Since:
 - MicroStrategy Web 9.0.0
 
 
 - 
 
 -