Package com.microstrategy.web.beans
Class WebBeanFactory
- java.lang.Object
- 
- com.microstrategy.web.beans.AbstractLocalBeanFactory
- 
- com.microstrategy.web.beans.WebBeanFactory
 
 
- 
- All Implemented Interfaces:
- EnumEventHandlerTypes,- EnumWebTransformableType,- LocalBeanFactory
 
 public class WebBeanFactory extends AbstractLocalBeanFactory implements EnumWebTransformableType, EnumEventHandlerTypes This class is a factory for instantiating variousWebBeanor otherTransformablecompliant objects in thecom.microstrategy.web.beanspackage. Note that most methods on this class are deprecated; we now provide theBeanFactoryclass for programmatic bean creation. Please create beans using theBeanFactoryinstead of using this class directly.- Since:
- MicroStrategy Web 7.3.1 or earlier
 
- 
- 
Field Summary- 
Fields inherited from interface com.microstrategy.web.beans.EnumEventHandlerTypesHANDLER_ANNOTATION_BEAN, HANDLER_PROMPT_ANSWER, HANDLER_TYPE_ADDRESS_LIST, HANDLER_TYPE_ASSOCIATED_SCHEDULES, HANDLER_TYPE_ATTRIBUTE, HANDLER_TYPE_CONSTANT_PROMPT, HANDLER_TYPE_CUSTOMGROUP, HANDLER_TYPE_DATA_EXPLORER, HANDLER_TYPE_DIMTY_PROMPT, HANDLER_TYPE_DOCUMENT, HANDLER_TYPE_EDITABLE_OBJECT, HANDLER_TYPE_ELEMENT_PROMPT, HANDLER_TYPE_EXPRESSION, HANDLER_TYPE_EXPRESSION_PROMPT, HANDLER_TYPE_FOLDER, HANDLER_TYPE_GENERIC, HANDLER_TYPE_GROUP, HANDLER_TYPE_IMPORT_WIZARD, HANDLER_TYPE_INBOX, HANDLER_TYPE_OBJECT, HANDLER_TYPE_OBJECT_PROMPT, HANDLER_TYPE_PROMPT, HANDLER_TYPE_PROMPT_DEFINITION, HANDLER_TYPE_PROMPTS, HANDLER_TYPE_REPORT, HANDLER_TYPE_RW, HANDLER_TYPE_SCHEDULE, HANDLER_TYPE_SECURITY_FILTER, HANDLER_TYPE_SECURITY_ROLE, HANDLER_TYPE_SUBSCRIPTION, HANDLER_TYPE_SUBSCRIPTION_FOLDER, HANDLER_TYPE_THRESHOLD, HANDLER_TYPE_THRESHOLD_BEAN, HANDLER_TYPE_USER, HANDLER_TYPE_USER_ENTITIES, HANDLER_TYPE_USER_ENTITY, HANDLER_TYPE_USER_SEARCH, HANDLER_TYPE_VIEW
 - 
Fields inherited from interface com.microstrategy.web.beans.EnumWebTransformableTypeWEB_BEAN_ACCOUNTCOLLECTION, WEB_BEAN_ADDRESS_LIST, WEB_BEAN_ANY, WEB_BEAN_ATTRIBUTE, WEB_BEAN_CUSTOMGROUP, WEB_BEAN_DATA_EXPLORER, WEB_BEAN_DERIVED_ELEMENT, WEB_BEAN_DOCUMENT, WEB_BEAN_EXPRESSION, WEB_BEAN_FILTER, WEB_BEAN_FILTER_EXPRESSION, WEB_BEAN_FOLDER, WEB_BEAN_GRAPH, WEB_BEAN_GROUP, WEB_BEAN_INBOX, WEB_BEAN_PERFORMANCE_MONITOR, WEB_BEAN_PROMPT, WEB_BEAN_PROMPT_DEFINITION, WEB_BEAN_PROMPTS, WEB_BEAN_REPORT, WEB_BEAN_RW, WEB_BEAN_SCHEDULE, WEB_BEAN_SECURITY_FILTER, WEB_BEAN_SECURITY_ROLE, WEB_BEAN_SUBSCRIPTION, WEB_BEAN_SUBSCRIPTION_FOLDER, WEB_BEAN_USER, WEB_BEAN_USER_SEARCH, WEB_BEAN_VIEW, WEB_NOT_TRANSFORMABLE
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedWebBeanFactory()Constructs aWebBeanFactorywith no parameter.
 - 
Method Summary- 
Methods inherited from class com.microstrategy.web.beans.AbstractLocalBeanFactorycanCreateBean, createBeanInstance, getBeanClassName, newBean
 
- 
 
- 
- 
- 
Method Detail- 
getEventHandlerprotected WebEventHandler getEventHandler(int type) Deprecated.To get the default event-handler associated with a bean, create a new instance of that bean and callgetWebEventHandler.Instantiates aWebEventHandlerwith the specified type.- Parameters:
- type- an event handler type
- Returns:
- an instance of event handler with the specified type
 
 - 
newFolderBeanpublic FolderBean newFolderBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aFolderBean.- Returns:
- A new FolderBeaninstance.
 
 - 
newGraphBeanpublic GraphBean newGraphBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aFolderBean.- Returns:
- A new GraphBeaninstance.
- Since:
- MicroStrategy Web 8.0.0
 
 - 
newReportBeanpublic ReportBean newReportBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aReportBean.- Returns:
- A new ReportBeaninstance.
 
 - 
newDataExplorerBeanpublic DataExplorerBean newDataExplorerBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aDataExplorerBean.- Returns:
- A new DataExplorerBeaninstance.
- Since:
- MicroStrategy Web 9.0.0
 
 - 
newRWBeanpublic RWBean newRWBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Returns a newRWBean.- Returns:
- a new RWBean.
- Since:
- MicroStrategy Web 8.0.0
 
 - 
newPromptsBeanpublic PromptsBean newPromptsBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aPromptsBean.- Returns:
- A new PromptsBeaninstance.
 
 - 
newDocumentBeanpublic DocumentBean newDocumentBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aDocumentBean.- Returns:
- A new DocumentBeaninstance.
 
 - 
newMarkupOutputpublic MarkupOutput newMarkupOutput() Instantiates aMarkupOutput.- Returns:
- A new MarkupOutputinstance.
 
 - 
newMarkupOutputpublic MarkupOutput newMarkupOutput(boolean encode) Instantiates aMarkupOutput.- Parameters:
- encode- a boolean indicating whether encoding is needed for the makrupOutput implementation.
- Returns:
- A new MarkupOutputinstance.
 
 - 
newInboxBeanpublic InboxBean newInboxBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aInboxBean.- Returns:
- A new InboxBeaninstance.
 
 - 
newAddressListBeanpublic AddressListBean newAddressListBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aAddressListBean.- Returns:
- A new AddressListBeaninstance.
 
 - 
newSubscriptionBeanpublic SubscriptionBean newSubscriptionBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aSubscriptionBean.- Returns:
- A new SubscriptionBeaninstance.
 
 - 
newSubscriptionFolderBeanpublic SubscriptionFolderBean newSubscriptionFolderBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aSubscriptionFolderBean.- Returns:
- A new SubscriptionFolderBeaninstance.
 
 - 
newScheduleBeanpublic ScheduleBean newScheduleBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aScheduleBean.- Returns:
- A new ScheduleBeaninstance.
 
 - 
newAttributeBeanpublic AttributeBean newAttributeBean() - Since:
- MicroStrategy Web 9.0.0
 
 - 
getInstancepublic static WebBeanFactory getInstance() Returns a singleton of theWebBeanFactory. This is the only entry point to gain access to variousWebBeanand otherTransformablecompliant objects.- Returns:
- the singleton of this WebBeanFactory.
 
 - 
newWebBeanpublic WebBean newWebBean(int webBeanType) Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates a type specificWebBeanwith the specified bean type.- Parameters:
- webBeanType- the bean type from- EnumWebTransformableType
- Returns:
- A type specific WebBeaninstance.
 
 - 
newBeanContextpublic BeanContext newBeanContext() Instantiates aBeanContext.- Returns:
- A new BeanContextinstance.
 
 - 
newExpressionObjectpublic ExpressionObject newExpressionObject(WebExpression pExpression, BeanContext pContext) Instantiates aExpressionObject.- Parameters:
- pExpression- an instance of- WebExpressionfrom where this- ExpressionObjectoriginates.
- pContext- an instance of- BeanContext.
- Returns:
- A new ExpressionObjectinstance.
 
 - 
newExpressionObjectpublic ExpressionObject newExpressionObject(WebExpression pExpression, BeanContext pContext, WebWorkingSet pWorkingSet) nstantiates aExpressionObject.- Parameters:
- pExpression- an instance of- WebExpressionfrom where this- ExpressionObjectoriginates.
- pContext- an instance of- BeanContext.
- pWorkingSet- an instance of- WebWorkingSet.
- Returns:
- A new ExpressionObjectinstance.
 
 - 
getBeanInterfacepublic static java.lang.Class getBeanInterface(int beanType) Deprecated.Reference bean interface classes directly rather than calling this method. If you need to use reflection to get/set properties on a bean, consider using theReflectionHelperclass.Returns thejava.lang.Classobject associated with each type specificWebBean.- Parameters:
- beanType- the bean type of- EnumWebTransformableType
- Returns:
- the java.lang.Classassociated with each type specificWebBean.
 
 - 
newUserGroupBeanpublic UserGroupBean newUserGroupBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Returns a newUserGroupBean.- Returns:
- a new UserGroupBean.
- Since:
- MicroStrategy Web 8.0.0
 
 - 
newUserEntitiesBeanpublic UserEntitiesBean newUserEntitiesBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Returns a newUserEntitiesBean.- Returns:
- a new UserEntitiesBean.
- Since:
- MicroStrategy Web 8.0.0
 
 - 
newUserSearchBeanpublic UserSearchBean newUserSearchBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Returns a newUserSearchBean.- Returns:
- a new UserSearchBean.
- Since:
- MicroStrategy Web 8.0.0
 
 - 
newUserBeanpublic UserBean newUserBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Returns a newUserBean.- Returns:
- a new UserBean.
- Since:
- MicroStrategy Web 7.5.2
 
 - 
newSecurityFilterBeanpublic SecurityFilterBean newSecurityFilterBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.- Since:
- MicroStrategy Web 8.0.1
 
 - 
createNewSecurityFilterpublic SecurityFilterBean createNewSecurityFilter() Deprecated.CallBeanFactory.newBean(java.lang.String)to create a newSecurityFilterBean, then callEditableBean.InitAsNew()on the new bean instance.- Since:
- MicroStrategy Web 8.0.1
 
 - 
newPromptDefinitionBeanpublic PromptDefinitionBean newPromptDefinitionBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.- Since:
- MicroStrategy Web 9.0.0
 
 - 
newSecurityRoleBeanpublic SecurityRoleBean newSecurityRoleBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.- Since:
- MicroStrategy Web 9.0.0
 
 - 
getBeanPackageprotected java.lang.String getBeanPackage() Description copied from class:AbstractLocalBeanFactoryReturns the full name of the package associated with this factory (ex: "com.microstrategy.web.beans").- Specified by:
- getBeanPackagein class- AbstractLocalBeanFactory
- Returns:
- The name of the package associated with this factory.
- Since:
- MicroStrategy Web 9.0.0
 
 - 
newExpressionDisplayBeanpublic ExpressionDisplayBean newExpressionDisplayBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.- Since:
- MicroStrategy Web 9.0.0
 
 - 
newThresholdExpressionBeanpublic ThresholdExpressionBean newThresholdExpressionBean() Deprecated.UseBeanFactory.newBean(java.lang.String)instead.- Since:
- MicroStrategy Web 9.0.0
 
 
- 
 
-