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 void
createProject()
Create a new project on the IServer with the characteristics specified by this objectjava.lang.String
getDescription()
Returns the description to be used for the new projectjava.lang.String
getName()
Returns the name to be used for the new projectWebLocaleObjectInfo
getPrimaryLocale()
Returns the primary locale set for new projectjava.lang.String
getScriptPath()
Returns the location of NEWPROJECT.PDS used to create the new projectjava.util.Set<WebLocaleObjectInfo>
getSupportedLocales()
Returns an editableSet
of locales supported by the new project.void
setCreateFlag(int flag)
Sets the create flags This value should come from the bitwise or (|) of values fromEnumDSSXMLCreateFlags
.void
setDescription(java.lang.String description)
Set the description to be used for the new project.void
setName(java.lang.String name)
Set the name to be used for the new project.void
setPrimaryLocale(WebLocaleObjectInfo primaryLocale)
Sets the primary locale of the new project.void
setScriptPath(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 WebObjectsException
Set the name to be used for the new project. The name must be set prior to callingcreateProject()
- Parameters:
name
-String
name of the new project- Throws:
WebObjectsException
-
setDescription
void setDescription(java.lang.String description) throws WebObjectsException
Set the description to be used for the new project.- Parameters:
description
-String
description 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
-WebLocaleObjectInfo
to 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
-String
location of the script
-
getName
java.lang.String getName()
Returns the name to be used for the new project- Returns:
String
name of the new project
-
getDescription
java.lang.String getDescription()
Returns the description to be used for the new project- Returns:
String
description of the new project
-
getPrimaryLocale
WebLocaleObjectInfo getPrimaryLocale()
Returns the primary locale set for new project- Returns:
WebLocaleObjectInfo
representing the primary locale for new project
-
getSupportedLocales
java.util.Set<WebLocaleObjectInfo> getSupportedLocales()
Returns an editableSet
of locales supported by the new project.- Returns:
Set
ofWebLocaleObjectInfo
objects
-
getScriptPath
java.lang.String getScriptPath()
Returns the location of NEWPROJECT.PDS used to create the new project- Returns:
String
containing the new location of NEWPROJECT.PDS
-
createProject
void createProject() throws WebObjectsException
Create 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.
-
-