Package com.microstrategy.web.objects
Interface WebProjectReference
-
public interface WebProjectReferenceThis interface represents a project reference which is registered with aWebServerDefobject. WebProjectReference objects can only exist within the context of aWebProjectReferencescollection.- Since:
- MicroStrategy Web 7.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebProjectSettingsgetConfigurationSettings(int type)Returns aWebProjectSettingsobject containing all the configuration settings for the specified type of configuration fromEnumDSSXMLProjectConfigurationSettingType.WebProjectSettingsgetConfigurationSettingsFromModule(int type, int module)Returns aWebProjectSettingsobject containing all the configuration settings for the specified type of configuration fromEnumDSSXMLProjectConfigurationSettingTypeand the specified module within that type (EnumDSSXMLNotificationModuleIDorEnumDSSXMLStatisticModuleID).intgetID()Returns the internal ID of the project reference.intgetLoadFlag()Returns the load flag setting for the project reference, fromEnumDSSXMLProjectLoadOption.intgetMetadataVersion()Returns the metadata version of the project.java.lang.StringgetName()This method returns the name of the project reference.java.lang.StringgetProjectDSSID()Returns the DSS ID of the project.WebObjectInfogetProjectInfo()Returns theWebObjectInfoobject corresponding to the project that the reference refers to.WebProjectSettingsgetProjectSettings()Returns a collection of settings pertaining to this project.WebDBRolegetStatisticsDBRole()Returns aWebDBRoleobject which is the statistic database for this project.voidsetLoadFlag(int loadFlag)Sets the load flag setting for the project reference.voidsetStatisticsDBRole(WebDBRole wdr)Sets the statistic database for this project.
-
-
-
Method Detail
-
getName
java.lang.String getName()
This method returns the name of the project reference.- Returns:
- The name of the project reference.
-
getProjectDSSID
java.lang.String getProjectDSSID()
Returns the DSS ID of the project.- Returns:
- The DSS ID of the project
-
getLoadFlag
int getLoadFlag()
Returns the load flag setting for the project reference, fromEnumDSSXMLProjectLoadOption.- Returns:
- The current load flag setting for the reference.
-
setLoadFlag
void setLoadFlag(int loadFlag) throws java.lang.UnsupportedOperationExceptionSets the load flag setting for the project reference. This should be a value fromEnumDSSXMLProjectLoadOption.- Parameters:
loadFlag- The load flag to use for the project reference.- Throws:
java.lang.UnsupportedOperationException
-
getProjectInfo
WebObjectInfo getProjectInfo() throws WebObjectsException
Returns theWebObjectInfoobject corresponding to the project that the reference refers to.- Returns:
- A
WebObjectInfoobject corresponding to the project reference. This object will not be populated. - Throws:
WebObjectsException- Thrown if an error occurs when obtaining the object.
-
getID
int getID()
Returns the internal ID of the project reference.- Returns:
- The internal ID of the project reference.
-
getProjectSettings
WebProjectSettings getProjectSettings()
Returns a collection of settings pertaining to this project.- Returns:
- A
WebProjectSettingscollection, containing all settings for this project. - Since:
- MicroStrategy Web 7.5.2
-
getMetadataVersion
int getMetadataVersion()
Returns the metadata version of the project.- Returns:
- The metadata version of the project.
- Since:
- MicroStrategy Web 7.5.2
-
getConfigurationSettingsFromModule
WebProjectSettings getConfigurationSettingsFromModule(int type, int module)
Returns aWebProjectSettingsobject containing all the configuration settings for the specified type of configuration fromEnumDSSXMLProjectConfigurationSettingTypeand the specified module within that type (EnumDSSXMLNotificationModuleIDorEnumDSSXMLStatisticModuleID).- Parameters:
type- int fromEnumDSSXMLProjectConfigurationSettingTypemodule- int specifying the module within the specified setting type- Returns:
WebProjectSettings- Since:
- MicroStrategy Web 9.0.0
-
getConfigurationSettings
WebProjectSettings getConfigurationSettings(int type)
Returns aWebProjectSettingsobject containing all the configuration settings for the specified type of configuration fromEnumDSSXMLProjectConfigurationSettingType. This method assumes there are no modules for the specified settings type. If modules are found the settings for the first module are returned.- Parameters:
type- int fromEnumDSSXMLProjectConfigurationSettingType- Returns:
WebProjectSettings- Since:
- MicroStrategy Web 9.0.0
-
getStatisticsDBRole
WebDBRole getStatisticsDBRole()
Returns aWebDBRoleobject which is the statistic database for this project. If there is no statistic database for this project, it will return null. This object will not be populated.- Returns:
WebDBRole- Since:
- MicroStrategy Web 9.0.0
-
setStatisticsDBRole
void setStatisticsDBRole(WebDBRole wdr) throws WebObjectsException
Sets the statistic database for this project.- Parameters:
wdr- The database to use for statistic purpose. If it is null, the existing statistics DB Role will be removed.- Throws:
WebObjectsException- Since:
- MicroStrategy Web 9.0.0
-
-