ProjectServerSaveOptions

Inheritance: java.lang.Object

public final class ProjectServerSaveOptions

Allows to specify additional options when project is saved to Project Server or Project Online.

Constructors

ConstructorDescription
ProjectServerSaveOptions()Initializes a new instance of the ProjectServerSaveOptions class.

Methods

MethodDescription
getPollingInterval()Gets interval between queue job status requests.
getProjectGuid()Gets unique identifier of a project.
getProjectName()Gets name of a project which is displayed in Project Server \ Project Online projects list.
getTimeout()Gets timeout used when waiting for processing of save project request by a Project Server’s queue processing service.
setPollingInterval(double value)Sets interval between queue job status requests.
setProjectGuid(UUID value)Sets unique identifier of a project.
setProjectName(String value)Sets name of a project which is displayed in Project Server \ Project Online projects list.
setTimeout(double value)Sets timeout used when waiting for processing of save project request by a Project Server’s queue processing service.

ProjectServerSaveOptions()

public ProjectServerSaveOptions()

Initializes a new instance of the ProjectServerSaveOptions class.

getPollingInterval()

public final double getPollingInterval()

Gets interval between queue job status requests. The default value is 2 seconds.

Returns: double - interval between queue job status requests.

getProjectGuid()

public final UUID getProjectGuid()

Gets unique identifier of a project. Should be unique within Project Server \ Project Online instance.

Returns: java.util.UUID - unique identifier of a project.

getProjectName()

public final String getProjectName()

Gets name of a project which is displayed in Project Server \ Project Online projects list. Should be unique within Project Server \ Project Online instance. Is the value is omitted, the value of Prj.Name property will be used instead.

Returns: java.lang.String - name of a project which is displayed in Project Server \ Project Online projects list.

getTimeout()

public final double getTimeout()

Gets timeout used when waiting for processing of save project request by a Project Server’s queue processing service. The default value for this property is 1 minute.


The processing time may be longer for large projects or in case when Project Server instance is too busy responding to other requests.

Returns: double - timeout used when waiting for processing of save project request by a Project Server’s queue processing service.

setPollingInterval(double value)

public final void setPollingInterval(double value)

Sets interval between queue job status requests. The default value is 2 seconds.

Parameters:

ParameterTypeDescription
valuedoubleinterval between queue job status requests.

setProjectGuid(UUID value)

public final void setProjectGuid(UUID value)

Sets unique identifier of a project. Should be unique within Project Server \ Project Online instance.

Parameters:

ParameterTypeDescription
valuejava.util.UUIDunique identifier of a project.

setProjectName(String value)

public final void setProjectName(String value)

Sets name of a project which is displayed in Project Server \ Project Online projects list. Should be unique within Project Server \ Project Online instance. Is the value is omitted, the value of Prj.Name property will be used instead.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringname of a project which is displayed in Project Server \ Project Online projects list.

setTimeout(double value)

public final void setTimeout(double value)

Sets timeout used when waiting for processing of save project request by a Project Server’s queue processing service. The default value for this property is 1 minute.


The processing time may be longer for large projects or in case when Project Server instance is too busy responding to other requests.

Parameters:

ParameterTypeDescription
valuedoubletimeout used when waiting for processing of save project request by a Project Server’s queue processing service.