Package com.microstrategy.web.objects
Interface WebProjectCreator
- 
public interface WebProjectCreator- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateProject()Creates a new project on the IServer with the characteristics specified by this object.voidcreateProject(int flag)Creates a new project on the IServer with the characteristics specified by this object.java.lang.StringgetDescription()Returns the description to be used for the new project.java.lang.StringgetId()Gets the project ID for the newly created project.java.lang.StringgetName()Returns the name to be used for the new project.WebLocaleObjectInfogetPrimaryLocale()Returns the primary locale set for new project.java.lang.StringgetScriptPath()Returns the location of NEWPROJECT.PDS used to create the new projectjava.util.Set<WebLocaleObjectInfo>getSupportedLocales()Returns an editableSetof locales supported by the new project.voidsetCreateFlag(int flag)Sets the project creation flags.voidsetDescription(java.lang.String description)Sets the description to be used for the new project.voidsetName(java.lang.String name)Sets the name to be used for the new project.voidsetPrimaryLocale(WebLocaleObjectInfo primaryLocale)Sets the primary locale of the new project.voidsetScriptPath(java.lang.String scriptPath)Sets the path to the location of the NEWPROJECT.PDS script. 
 - 
 
- 
- 
Method Detail
- 
setName
void setName(java.lang.String name) throws WebObjectsExceptionSets the name to be used for the new project. The name must be set prior to callingcreateProject().- Parameters:
 name-Stringname of the new project- Throws:
 WebObjectsException
 
- 
setDescription
void setDescription(java.lang.String description) throws WebObjectsExceptionSets the description to be used for the new project.- Parameters:
 description-Stringdescription of the new project- Throws:
 WebObjectsException
 
- 
setPrimaryLocale
void setPrimaryLocale(WebLocaleObjectInfo primaryLocale)
Sets the primary locale of the new project. As the primary locale is only supported in MDI enabled metadata, ensure that the IServer is using an MDI enabled metadata before calling this method.- Parameters:
 primaryLocale-WebLocaleObjectInfoto be used as primary locale for new project
 
- 
setScriptPath
void setScriptPath(java.lang.String scriptPath)
Sets the path to the location of the NEWPROJECT.PDS script.- Parameters:
 scriptPath-Stringlocation of the script
 
- 
getId
java.lang.String getId()
Gets the project ID for the newly created project.- Returns:
 - Project ID
 
 
- 
getName
java.lang.String getName()
Returns the name to be used for the new project.- Returns:
 Stringname of the new project
 
- 
getDescription
java.lang.String getDescription()
Returns the description to be used for the new project.- Returns:
 Stringdescription of the new project
 
- 
getPrimaryLocale
WebLocaleObjectInfo getPrimaryLocale()
Returns the primary locale set for new project.- Returns:
 WebLocaleObjectInforepresenting the primary locale for new project
 
- 
getSupportedLocales
java.util.Set<WebLocaleObjectInfo> getSupportedLocales()
Returns an editableSetof locales supported by the new project.- Returns:
 SetofWebLocaleObjectInfoobjects
 
- 
getScriptPath
java.lang.String getScriptPath()
Returns the location of NEWPROJECT.PDS used to create the new project- Returns:
 Stringcontaining the new location of NEWPROJECT.PDS
 
- 
createProject
void createProject() throws WebObjectsExceptionCreates a new project on the IServer with the characteristics specified by this object.- Throws:
 WebObjectsException
 
- 
createProject
void createProject(int flag) throws WebObjectsExceptionCreates a new project on the IServer with the characteristics specified by this object.- Parameters:
 flag- The project creation flag.- Throws:
 WebObjectsException
 
- 
setCreateFlag
void setCreateFlag(int flag)
Sets the project creation flags. This value should come from the bitwise or (|) of values fromEnumDSSXMLCreateFlags.- Parameters:
 flag- The project creation flag value.
 
 - 
 
 -