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()Create a new project on the IServer with the characteristics specified by this objectjava.lang.StringgetDescription()Returns the description to be used for the new projectjava.lang.StringgetName()Returns the name to be used for the new projectWebLocaleObjectInfogetPrimaryLocale()Returns the primary locale set for new projectjava.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 create flags This value should come from the bitwise or (|) of values fromEnumDSSXMLCreateFlags.voidsetDescription(java.lang.String description)Set the description to be used for the new project.voidsetName(java.lang.String name)Set 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 WebObjectsExceptionSet 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 WebObjectsExceptionSet 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
-
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 WebObjectsExceptionCreate a new project on the IServer with the characteristics specified by this object- Throws:
WebObjectsException
-
setCreateFlag
void setCreateFlag(int flag)
Sets the create flags This value should come from the bitwise or (|) of values fromEnumDSSXMLCreateFlags.- Parameters:
flags- The create flag value.
-
-