Package com.microstrategy.web.objects
Class WebObjectsFactory
- java.lang.Object
 - 
- com.microstrategy.web.objects.WebObjectsFactory
 
 
- 
public final class WebObjectsFactory extends java.lang.ObjectWebObjectsFactory is the factory class for the Web Objects API. This is the entry point for any operation which uses the Web Objects. When creating a new factory instance, it should be initialized withsetMessagesManager(MessagesManager)to ensure underlying messages may be correctly localized. Since 9.0.2, if users need to get the proper css for a specific browser, they should set the browser type throughsetBrowserType(int). If they want to use proper locale, they should set the message throughsetMessagesManager(MessagesManager);- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckUserPrivilege(int privilegeType)Checks if the user has the particular privelege typeprotected booleancheckUserPrivilege(int privilegeType, WebIServerSession session)WebAssociatedScheduleSourcegetAssociatedScheduleSource()intgetBrowserType()WebClusterAdmingetClusterAdmin()Returns theWebClusterAdminobjectWebClusterSourcegetClusterSource()Returns aWebClusterSourceobject, which can be used for retrievingWebClusterMembership.java.lang.StringgetDescriptor(java.lang.String key, java.lang.String defaultValue)WebDocumentSourcegetDocumentSource()Returns aWebDocumentSourceobject, which can be used for document-related operations.WebElementSourcegetElementSourceObject()Returns aWebElementSourceobject, which can be used for element browsing.WebEncryptionKeysSourcegetEncryptionKeysSource()Returns aWebEncryptionKeysSourceobject, which can be used to re-encrypt the mstr envjava.lang.StringgetFlexSettingsXml()WebInboxSourcegetInboxSource()Returns aWebInboxSourceobject, which can be used for inbox-related operations.static WebObjectsFactorygetInstance()Returns an instance of the WebObjectsFactory object.WebIServerSessiongetIServerSession()Returns aWebIServerSessionobject, which can be used to create and set the session ID on the factory and all objects created from it.WebIServerSessionListgetIServerSessionList()LicenseSourcegetLicenseSource()Returns aLicenseSourceobject, which can be used for retrieving licensing information.WebMDUpdateSourcegetMDUpdateSource()Returns aWebMDUpdateSourceobject, which can be used to update all or portions of the metadataMonitorSourcegetMonitorSource(int type)Returns a type specificMonitorSourceobject, which can be used for retrieving monitoring information.ObjectLockSourcegetObjectLockSource()WebObjectSourcegetObjectSource()Returns aWebObjectSourceobject, which can be used for object-related operations.WebProjectSourcegetProjectSource()Returns aWebProjectSourceobject, which can be used for retrieving project information.WebReportSourcegetReportSource()Returns aWebReportSourceobject, which can be used for report-related operations.intgetResolvedAnalysisQuota()RWSourcegetRWSource()Returns aRWSourceobject, which can be used for RW-related operations.WebScheduleSourcegetScheduleSource()Returns aWebScheduleSourceobject, which can be used for scheduling-related operations.WebSubscriptionsSourcegetSubscriptionsSource()Returns theWebSubscriptionsSourceobject that can be used to access all other objects needed for supporting Narrowcast functionalityjava.lang.StringgetUserPrivilegeXml()voidsetBrowserType(int brwType)Set the browser type (@linkEnumBrowserType)voidsetMessagesManager(MessagesManager msgs) 
 - 
 
- 
- 
Method Detail
- 
getInstance
public static WebObjectsFactory getInstance()
Returns an instance of the WebObjectsFactory object. This is the only way to obtain the factory object.- Returns:
 - A WebObjectsFactory instance, which can be used to construct the other Web Objects.
 
 
- 
getObjectSource
public WebObjectSource getObjectSource()
Returns aWebObjectSourceobject, which can be used for object-related operations.- Returns:
 - A 
WebObjectSourceobject. 
 
- 
getScheduleSource
public WebScheduleSource getScheduleSource()
Returns aWebScheduleSourceobject, which can be used for scheduling-related operations.- Returns:
 - A 
WebScheduleSourceobject. 
 
- 
getAssociatedScheduleSource
public WebAssociatedScheduleSource getAssociatedScheduleSource()
 
- 
getReportSource
public WebReportSource getReportSource()
Returns aWebReportSourceobject, which can be used for report-related operations.- Returns:
 - A 
WebReportSourceobject. 
 
- 
getElementSourceObject
public WebElementSource getElementSourceObject()
Returns aWebElementSourceobject, which can be used for element browsing.- Returns:
 - A new 
WebElementSourceobject. 
 
- 
getIServerSession
public WebIServerSession getIServerSession()
Returns aWebIServerSessionobject, which can be used to create and set the session ID on the factory and all objects created from it.- Returns:
 - The 
WebIServerSessionobject which represents the session information which all objects derived from the factory will use. 
 
- 
getDocumentSource
public WebDocumentSource getDocumentSource()
Returns aWebDocumentSourceobject, which can be used for document-related operations.- Returns:
 - A 
WebDocumentSourceobject. 
 
- 
getInboxSource
public WebInboxSource getInboxSource()
Returns aWebInboxSourceobject, which can be used for inbox-related operations.- Returns:
 - A 
WebInboxSourceobject. 
 
- 
getSubscriptionsSource
public WebSubscriptionsSource getSubscriptionsSource()
Returns theWebSubscriptionsSourceobject that can be used to access all other objects needed for supporting Narrowcast functionality- Returns:
 - the 
WebSubscriptionsSourceobject 
 
- 
getProjectSource
public WebProjectSource getProjectSource()
Returns aWebProjectSourceobject, which can be used for retrieving project information.- Returns:
 - A new 
WebProjectSourceobject. 
 
- 
getClusterSource
public WebClusterSource getClusterSource()
Returns aWebClusterSourceobject, which can be used for retrievingWebClusterMembership.- Returns:
 - the WebClusterSource object
 - Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getMDUpdateSource
public WebMDUpdateSource getMDUpdateSource()
Returns aWebMDUpdateSourceobject, which can be used to update all or portions of the metadata- Returns:
 - the WebClusterSource object
 - Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getEncryptionKeysSource
public WebEncryptionKeysSource getEncryptionKeysSource()
Returns aWebEncryptionKeysSourceobject, which can be used to re-encrypt the mstr env- Returns:
 - the WebEncryptionKeysSource object
 - Since:
 - MicroStrategy Web 10.2
 
 
- 
getClusterAdmin
public WebClusterAdmin getClusterAdmin()
Returns theWebClusterAdminobject- Returns:
 - the 
WebClusterAdminobject 
 
- 
checkUserPrivilege
public boolean checkUserPrivilege(int privilegeType) throws WebObjectsExceptionChecks if the user has the particular privelege type- Parameters:
 privilegeType- integer value specifying the type of privilege that is to be checked This is a value from the enumerationEnumDSSXMLPrivilegeTypes- Returns:
 - boolean value indicating if the specific privilege is available
 - Throws:
 WebObjectsException
 
- 
checkUserPrivilege
protected boolean checkUserPrivilege(int privilegeType, WebIServerSession session) throws WebObjectsException- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getUserPrivilegeXml
public java.lang.String getUserPrivilegeXml() throws WebObjectsException- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 8.1.1
 
 
- 
getFlexSettingsXml
public java.lang.String getFlexSettingsXml() throws WebObjectsException- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 8.1.1
 
 
- 
getLicenseSource
public LicenseSource getLicenseSource()
Returns aLicenseSourceobject, which can be used for retrieving licensing information.- Returns:
 - A new LicenseSource object.
 - Since:
 - MicroStrategy Web 7.5.2
 
 
- 
getRWSource
public RWSource getRWSource()
Returns aRWSourceobject, which can be used for RW-related operations.- Returns:
 - A RWSource object.
 - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getIServerSessionList
public WebIServerSessionList getIServerSessionList()
- Since:
 - MicroStrategy Web 8.0.1
 
 
- 
getMonitorSource
public MonitorSource getMonitorSource(int type)
Returns a type specificMonitorSourceobject, which can be used for retrieving monitoring information.- Parameters:
 type- the monitoring type, a value fromEnumWebMonitorType- Returns:
 - A 
MonitorSourceobject. - Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getObjectLockSource
public ObjectLockSource getObjectLockSource()
- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setMessagesManager
public void setMessagesManager(MessagesManager msgs)
 
- 
setBrowserType
public void setBrowserType(int brwType)
Set the browser type (@linkEnumBrowserType)- Parameters:
 brwType-
 
- 
getBrowserType
public int getBrowserType()
 
- 
getDescriptor
public java.lang.String getDescriptor(java.lang.String key, java.lang.String defaultValue) 
- 
getResolvedAnalysisQuota
public int getResolvedAnalysisQuota() throws WebObjectsException- Throws:
 WebObjectsException
 
 - 
 
 -