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.EnumEventHandlerTypes
HANDLER_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.EnumWebTransformableType
WEB_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 Summary
Constructors Modifier Constructor Description protectedWebBeanFactory()Constructs aWebBeanFactorywith no parameter.
-
Method Summary
-
Methods inherited from class com.microstrategy.web.beans.AbstractLocalBeanFactory
canCreateBean, createBeanInstance, getBeanClassName, newBean
-
-
-
-
Method Detail
-
getEventHandler
protected 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
-
newFolderBean
public FolderBean newFolderBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aFolderBean.- Returns:
- A new
FolderBeaninstance.
-
newGraphBean
public GraphBean newGraphBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aFolderBean.- Returns:
- A new
GraphBeaninstance. - Since:
- MicroStrategy Web 8.0.0
-
newReportBean
public ReportBean newReportBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aReportBean.- Returns:
- A new
ReportBeaninstance.
-
newDataExplorerBean
public DataExplorerBean newDataExplorerBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aDataExplorerBean.- Returns:
- A new
DataExplorerBeaninstance. - Since:
- MicroStrategy Web 9.0.0
-
newRWBean
public RWBean newRWBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Returns a newRWBean.- Returns:
- a new
RWBean. - Since:
- MicroStrategy Web 8.0.0
-
newPromptsBean
public PromptsBean newPromptsBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aPromptsBean.- Returns:
- A new
PromptsBeaninstance.
-
newDocumentBean
public DocumentBean newDocumentBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aDocumentBean.- Returns:
- A new
DocumentBeaninstance.
-
newMarkupOutput
public MarkupOutput newMarkupOutput()
Instantiates aMarkupOutput.- Returns:
- A new
MarkupOutputinstance.
-
newMarkupOutput
public MarkupOutput newMarkupOutput(boolean encode)
Instantiates aMarkupOutput.- Parameters:
encode- a boolean indicating whether encoding is needed for the makrupOutput implementation.- Returns:
- A new
MarkupOutputinstance.
-
newInboxBean
public InboxBean newInboxBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aInboxBean.- Returns:
- A new
InboxBeaninstance.
-
newAddressListBean
public AddressListBean newAddressListBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aAddressListBean.- Returns:
- A new
AddressListBeaninstance.
-
newSubscriptionBean
public SubscriptionBean newSubscriptionBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aSubscriptionBean.- Returns:
- A new
SubscriptionBeaninstance.
-
newSubscriptionFolderBean
public SubscriptionFolderBean newSubscriptionFolderBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aSubscriptionFolderBean.- Returns:
- A new
SubscriptionFolderBeaninstance.
-
newScheduleBean
public ScheduleBean newScheduleBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates aScheduleBean.- Returns:
- A new
ScheduleBeaninstance.
-
newAttributeBean
public AttributeBean newAttributeBean()
- Since:
- MicroStrategy Web 9.0.0
-
getInstance
public 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.
-
newWebBean
public WebBean newWebBean(int webBeanType)
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Instantiates a type specificWebBeanwith the specified bean type.- Parameters:
webBeanType- the bean type fromEnumWebTransformableType- Returns:
- A type specific
WebBeaninstance.
-
newBeanContext
public BeanContext newBeanContext()
Instantiates aBeanContext.- Returns:
- A new
BeanContextinstance.
-
newExpressionObject
public ExpressionObject newExpressionObject(WebExpression pExpression, BeanContext pContext)
Instantiates aExpressionObject.- Parameters:
pExpression- an instance ofWebExpressionfrom where thisExpressionObjectoriginates.pContext- an instance ofBeanContext.- Returns:
- A new
ExpressionObjectinstance.
-
newExpressionObject
public ExpressionObject newExpressionObject(WebExpression pExpression, BeanContext pContext, WebWorkingSet pWorkingSet)
nstantiates aExpressionObject.- Parameters:
pExpression- an instance ofWebExpressionfrom where thisExpressionObjectoriginates.pContext- an instance ofBeanContext.pWorkingSet- an instance ofWebWorkingSet.- Returns:
- A new
ExpressionObjectinstance.
-
getBeanInterface
public 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 ofEnumWebTransformableType- Returns:
- the
java.lang.Classassociated with each type specificWebBean.
-
newUserGroupBean
public UserGroupBean newUserGroupBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Returns a newUserGroupBean.- Returns:
- a new
UserGroupBean. - Since:
- MicroStrategy Web 8.0.0
-
newUserEntitiesBean
public UserEntitiesBean newUserEntitiesBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Returns a newUserEntitiesBean.- Returns:
- a new
UserEntitiesBean. - Since:
- MicroStrategy Web 8.0.0
-
newUserSearchBean
public UserSearchBean newUserSearchBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Returns a newUserSearchBean.- Returns:
- a new
UserSearchBean. - Since:
- MicroStrategy Web 8.0.0
-
newUserBean
public UserBean newUserBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.Returns a newUserBean.- Returns:
- a new
UserBean. - Since:
- MicroStrategy Web 7.5.2
-
newSecurityFilterBean
public SecurityFilterBean newSecurityFilterBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.- Since:
- MicroStrategy Web 8.0.1
-
createNewSecurityFilter
public 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
-
newPromptDefinitionBean
public PromptDefinitionBean newPromptDefinitionBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.- Since:
- MicroStrategy Web 9.0.0
-
newSecurityRoleBean
public SecurityRoleBean newSecurityRoleBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.- Since:
- MicroStrategy Web 9.0.0
-
getBeanPackage
protected 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 classAbstractLocalBeanFactory- Returns:
- The name of the package associated with this factory.
- Since:
- MicroStrategy Web 9.0.0
-
newExpressionDisplayBean
public ExpressionDisplayBean newExpressionDisplayBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.- Since:
- MicroStrategy Web 9.0.0
-
newThresholdExpressionBean
public ThresholdExpressionBean newThresholdExpressionBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)instead.- Since:
- MicroStrategy Web 9.0.0
-
-