Package com.microstrategy.web.objects
Interface WebMDUpdateSource
- 
public interface WebMDUpdateSourceObject used to perform update manipulations on the MetaData- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetCurrentVersion()Return the current version of the MD connected to by the IServer.java.lang.StringgetLogPath()Return the path where a log will be stored upon updatebooleanneedMDXUpdate(boolean quickCheck)Check to see if the current MD needs to update its MDX componentsbooleanneedUpdate()Returns whether the current MD needs to be updated to work optimally with the current version of the MSTR product.voidsetLogPath(java.lang.String logPath)Set the path where a log of the update can be storedjava.lang.Stringupdate(int command)Send a custom update commandjava.lang.Stringupdate(int command, int fg)Send a custom update commandvoidupdateDocDefns()Deprecated.useupdate(int)insteadvoidupdateHistoryListSchedules()Update the MD History List schedulesvoidupdateIncrementalPrivileges(int privTypes)Update privileges as specifiedvoidupdateMD()Updates the entire MD to a version that will work with the current version of the MSTR product.voidupdateProject()Updates the project currently associated with the IServer session.voidupdateSecurityModel()Update the MD security modelvoidupdateTranslations()Update the translations stored in MD 
 - 
 
- 
- 
Method Detail
- 
getCurrentVersion
java.lang.String getCurrentVersion() throws WebObjectsExceptionReturn the current version of the MD connected to by the IServer. Not optimized: Each call will result in a call to IServer- Returns:
 Stringcontaining the current version of the MD- Throws:
 WebObjectsException
 
- 
needUpdate
boolean needUpdate() throws WebObjectsExceptionReturns whether the current MD needs to be updated to work optimally with the current version of the MSTR product. Not optimized: Each call will result in a call to IServer- Returns:
 - boolean stating whether an update is needed (true if yes, false if no)
 - Throws:
 WebObjectsException
 
- 
updateMD
void updateMD() throws WebObjectsExceptionUpdates the entire MD to a version that will work with the current version of the MSTR product.- Throws:
 WebObjectsException
 
- 
updateProject
void updateProject() throws WebObjectsExceptionUpdates the project currently associated with the IServer session. Exception is thrown if this method is called with a configuration session- Throws:
 WebObjectsException
 
- 
updateSecurityModel
void updateSecurityModel() throws WebObjectsExceptionUpdate the MD security model- Throws:
 WebObjectsException
 
- 
updateDocDefns
void updateDocDefns() throws WebObjectsExceptionDeprecated.useupdate(int)insteadUpdate the MD document definitions- Throws:
 WebObjectsException
 
- 
updateHistoryListSchedules
void updateHistoryListSchedules() throws WebObjectsExceptionUpdate the MD History List schedules- Throws:
 WebObjectsException
 
- 
updateTranslations
void updateTranslations() throws WebObjectsExceptionUpdate the translations stored in MD- Throws:
 WebObjectsException
 
- 
setLogPath
void setLogPath(java.lang.String logPath)
Set the path where a log of the update can be stored- Parameters:
 logPath-Stringcontaining the path information
 
- 
getLogPath
java.lang.String getLogPath()
Return the path where a log will be stored upon update- Returns:
 Stringcontaining path information
 
- 
update
java.lang.String update(int command) throws WebObjectsExceptionSend a custom update command- Parameters:
 command- int fromEnumDSSXMLMDUpdateCommandsspecifiying which command to send to the IServer- Returns:
 - String containing results of the command
 - Throws:
 WebObjectsException
 
- 
update
java.lang.String update(int command, int fg) throws WebObjectsExceptionSend a custom update command- Parameters:
 command- int fromEnumDSSXMLMDUpdateCommandsspecifiying which command to send to the IServercommand- int fromEnumDSSXMLMDUpdateCommandsspecifiying an IServer flag- Returns:
 - String containing results of the command
 - Throws:
 WebObjectsException
 
- 
needMDXUpdate
boolean needMDXUpdate(boolean quickCheck) throws WebObjectsExceptionCheck to see if the current MD needs to update its MDX components- Returns:
 - boolean true if update is required and false if update is not required or no MDX components exist
 - Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.1
 
 
- 
updateIncrementalPrivileges
void updateIncrementalPrivileges(int privTypes) throws WebObjectsExceptionUpdate privileges as specified- Parameters:
 privTypes- int binary OR ofEnumDSSXMLPrivilegeUpdateTypes- Throws:
 WebObjectsException
 
 - 
 
 -