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 variousWebBean
or otherTransformable
compliant objects in thecom.microstrategy.web.beans
package. Note that most methods on this class are deprecated; we now provide theBeanFactory
class for programmatic bean creation. Please create beans using theBeanFactory
instead 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 protected
WebBeanFactory()
Constructs aWebBeanFactory
with 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 aWebEventHandler
with 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
FolderBean
instance.
-
newGraphBean
public GraphBean newGraphBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)
instead.Instantiates aFolderBean
.- Returns:
- A new
GraphBean
instance. - Since:
- MicroStrategy Web 8.0.0
-
newReportBean
public ReportBean newReportBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)
instead.Instantiates aReportBean
.- Returns:
- A new
ReportBean
instance.
-
newDataExplorerBean
public DataExplorerBean newDataExplorerBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)
instead.Instantiates aDataExplorerBean
.- Returns:
- A new
DataExplorerBean
instance. - 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
PromptsBean
instance.
-
newDocumentBean
public DocumentBean newDocumentBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)
instead.Instantiates aDocumentBean
.- Returns:
- A new
DocumentBean
instance.
-
newMarkupOutput
public MarkupOutput newMarkupOutput()
Instantiates aMarkupOutput
.- Returns:
- A new
MarkupOutput
instance.
-
newMarkupOutput
public MarkupOutput newMarkupOutput(boolean encode)
Instantiates aMarkupOutput
.- Parameters:
encode
- a boolean indicating whether encoding is needed for the makrupOutput implementation.- Returns:
- A new
MarkupOutput
instance.
-
newInboxBean
public InboxBean newInboxBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)
instead.Instantiates aInboxBean
.- Returns:
- A new
InboxBean
instance.
-
newAddressListBean
public AddressListBean newAddressListBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)
instead.Instantiates aAddressListBean
.- Returns:
- A new
AddressListBean
instance.
-
newSubscriptionBean
public SubscriptionBean newSubscriptionBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)
instead.Instantiates aSubscriptionBean
.- Returns:
- A new
SubscriptionBean
instance.
-
newSubscriptionFolderBean
public SubscriptionFolderBean newSubscriptionFolderBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)
instead.Instantiates aSubscriptionFolderBean
.- Returns:
- A new
SubscriptionFolderBean
instance.
-
newScheduleBean
public ScheduleBean newScheduleBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)
instead.Instantiates aScheduleBean
.- Returns:
- A new
ScheduleBean
instance.
-
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 variousWebBean
and otherTransformable
compliant objects.- Returns:
- the singleton of this
WebBeanFactory
.
-
newWebBean
public WebBean newWebBean(int webBeanType)
Deprecated.UseBeanFactory.newBean(java.lang.String)
instead.Instantiates a type specificWebBean
with the specified bean type.- Parameters:
webBeanType
- the bean type fromEnumWebTransformableType
- Returns:
- A type specific
WebBean
instance.
-
newBeanContext
public BeanContext newBeanContext()
Instantiates aBeanContext
.- Returns:
- A new
BeanContext
instance.
-
newExpressionObject
public ExpressionObject newExpressionObject(WebExpression pExpression, BeanContext pContext)
Instantiates aExpressionObject
.- Parameters:
pExpression
- an instance ofWebExpression
from where thisExpressionObject
originates.pContext
- an instance ofBeanContext
.- Returns:
- A new
ExpressionObject
instance.
-
newExpressionObject
public ExpressionObject newExpressionObject(WebExpression pExpression, BeanContext pContext, WebWorkingSet pWorkingSet)
nstantiates aExpressionObject
.- Parameters:
pExpression
- an instance ofWebExpression
from where thisExpressionObject
originates.pContext
- an instance ofBeanContext
.pWorkingSet
- an instance ofWebWorkingSet
.- Returns:
- A new
ExpressionObject
instance.
-
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 theReflectionHelper
class.Returns thejava.lang.Class
object associated with each type specificWebBean
.- Parameters:
beanType
- the bean type ofEnumWebTransformableType
- Returns:
- the
java.lang.Class
associated 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:AbstractLocalBeanFactory
Returns the full name of the package associated with this factory (ex: "com.microstrategy.web.beans").- Specified by:
getBeanPackage
in 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
-
-