Package com.microstrategy.web.app
Class ProjectInformation
- java.lang.Object
-
- com.microstrategy.web.app.ProjectInformation
-
public class ProjectInformation extends java.lang.Object
This 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 int
getErrorCode()
Get the error code generated while trying to connect to the serverjava.util.Locale
getLocale()
int
getPortNumber()
Get the port that needs to be accessed on the server to get the projectWebProjectInstance
getProjectDetails()
Get the project information on the instancejava.lang.String
getProjectName()
Utility method for retrieving the name of the project represented by this instance.int
getProjectStatus()
Utility method for retrieving the status of the project represented by this instance.java.lang.String
getServerAlias()
Get the alias of the server where the project is locatedjava.lang.String
getServerName()
Get the name of the server where the project is locatedjava.lang.String
getUser()
Get the name of user that generated the error codevoid
setErrorCode(int errorCode)
Set the error code generated while trying to connect to the servervoid
setPortNumber(int portNumber)
Set the port that needs to be accessed on the server to get the projectvoid
setProjectDetails(WebProjectInstance projectDetails)
Set the project information on the instancevoid
setServerAlias(java.lang.String serverAlias)
Set the alias of the server where the project is locatedvoid
setServerName(java.lang.String serverName)
Set the name of the server where the project is locatedvoid
setUser(java.lang.String user)
Set the name of the user that generated the error code
-
-
-
Constructor Detail
-
ProjectInformation
@Deprecated public ProjectInformation()
Deprecated.seeProjectInformation(WebProjectInstance, String, String, int, int, String, Locale)
Class Constructor
-
ProjectInformation
@Deprecated public ProjectInformation(WebProjectInstance projectDetails, java.lang.String serverName, int portNumber)
Class constructor- Parameters:
projectDetails
- aWebProjectInstance
instance 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
- aWebProjectInstance
instance 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
- aWebProjectInstance
instance 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 theWebProjectInstance
instance available with thegetProjectDetails
method.- Returns:
- String with the name of the project. It will return
null
if 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 theWebProjectInstance
instance available with thegetProjectDetails
method.- Returns:
- int value with the status of the project. It will return
EnumDSSXMLProjectStatus.DssXmlProjectStatusOffline
if it cannot be retrieved. - Since:
- MicroStrategy Web 8.0.0
-
getProjectDetails
public WebProjectInstance getProjectDetails()
Get the project information on the instance- Returns:
- a
WebProjectInstance
instance 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()
-
-