Package com.microstrategy.web.app
Class ProjectInformation
- java.lang.Object
 - 
- com.microstrategy.web.app.ProjectInformation
 
 
- 
public class ProjectInformation extends java.lang.ObjectThis class contains the basic information regarding a project that can exist on a server- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ProjectInformation()Deprecated.seeProjectInformation(WebProjectInstance, String, String, int, int, String, Locale)Class ConstructorProjectInformation(WebProjectInstance projectDetails, java.lang.String serverName, int portNumber)ProjectInformation(WebProjectInstance projectDetails, java.lang.String serverName, java.lang.String serverAlias, int portNumber, int errorCode, java.lang.String user, java.util.Locale locale)Class constructor 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()Get the error code generated while trying to connect to the serverjava.util.LocalegetLocale()intgetPortNumber()Get the port that needs to be accessed on the server to get the projectWebProjectInstancegetProjectDetails()Get the project information on the instancejava.lang.StringgetProjectName()Utility method for retrieving the name of the project represented by this instance.intgetProjectStatus()Utility method for retrieving the status of the project represented by this instance.java.lang.StringgetServerAlias()Get the alias of the server where the project is locatedjava.lang.StringgetServerName()Get the name of the server where the project is locatedjava.lang.StringgetUser()Get the name of user that generated the error codevoidsetErrorCode(int errorCode)Set the error code generated while trying to connect to the servervoidsetPortNumber(int portNumber)Set the port that needs to be accessed on the server to get the projectvoidsetProjectDetails(WebProjectInstance projectDetails)Set the project information on the instancevoidsetServerAlias(java.lang.String serverAlias)Set the alias of the server where the project is locatedvoidsetServerName(java.lang.String serverName)Set the name of the server where the project is locatedvoidsetUser(java.lang.String user)Set the name of the user that generated the error code 
 - 
 
- 
- 
Constructor Detail
- 
ProjectInformation
public ProjectInformation()
Deprecated.seeProjectInformation(WebProjectInstance, String, String, int, int, String, Locale)Class Constructor 
- 
ProjectInformation
public ProjectInformation(WebProjectInstance projectDetails, java.lang.String serverName, int portNumber)
Class constructor- Parameters:
 projectDetails- aWebProjectInstanceinstance holding the project informationserverName- where the server is registeredportNumber- the prot that should be accessed to get the server
 
- 
ProjectInformation
public ProjectInformation(WebProjectInstance projectDetails, java.lang.String serverName, java.lang.String serverAlias, int portNumber, int errorCode, java.lang.String user, java.util.Locale locale)
Class constructor- Parameters:
 projectDetails- aWebProjectInstanceinstance holding the project informationserverName- where the server is registeredserverAlias- the alias of the serverportNumber- the port that should be accessed to get the servererrorCode- error code that happened while trying to connect to this serveruser- user that generated the error code
 
 - 
 
- 
Method Detail
- 
setProjectDetails
public void setProjectDetails(WebProjectInstance projectDetails)
Set the project information on the instance- Parameters:
 projectDetails- aWebProjectInstanceinstance holding the project information
 
- 
getProjectName
public java.lang.String getProjectName()
Utility method for retrieving the name of the project represented by this instance. The complete project information can be retrieved from theWebProjectInstanceinstance available with thegetProjectDetailsmethod.- Returns:
 - String with the name of the project. It will return 
nullif it cannot be retrieved. - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getProjectStatus
public int getProjectStatus()
Utility method for retrieving the status of the project represented by this instance. The complete project information can be retrieved from theWebProjectInstanceinstance available with thegetProjectDetailsmethod.- Returns:
 - int value with the status of the project. It will return
 
EnumDSSXMLProjectStatus.DssXmlProjectStatusOfflineif it cannot be retrieved. - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getProjectDetails
public WebProjectInstance getProjectDetails()
Get the project information on the instance- Returns:
 - a 
WebProjectInstanceinstance holding the project information 
 
- 
setServerName
public void setServerName(java.lang.String serverName)
Set the name of the server where the project is located- Parameters:
 serverName- a String with a valid server name
 
- 
getServerName
public java.lang.String getServerName()
Get the name of the server where the project is located- Returns:
 - a String with the name of the server
 
 
- 
setServerAlias
public void setServerAlias(java.lang.String serverAlias)
Set the alias of the server where the project is located- Parameters:
 serverAlias- a String with a valid server alias
 
- 
getServerAlias
public java.lang.String getServerAlias()
Get the alias of the server where the project is located- Returns:
 - a String with the alias of the server
 
 
- 
setUser
public void setUser(java.lang.String user)
Set the name of the user that generated the error code- Parameters:
 user- user that generated the error code
 
- 
getUser
public java.lang.String getUser()
Get the name of user that generated the error code- Returns:
 - a String with the name of the user
 
 
- 
setPortNumber
public void setPortNumber(int portNumber)
Set the port that needs to be accessed on the server to get the project- Parameters:
 portNumber- valid port number
 
- 
getPortNumber
public int getPortNumber()
Get the port that needs to be accessed on the server to get the project- Returns:
 - port number where the project can be found
 
 
- 
setErrorCode
public void setErrorCode(int errorCode)
Set the error code generated while trying to connect to the server- Parameters:
 errorCode- id of the error if any found
 
- 
getErrorCode
public int getErrorCode()
Get the error code generated while trying to connect to the server- Returns:
 - id of the error if any found
 
 
- 
getLocale
public java.util.Locale getLocale()
 
 - 
 
 -