MPPSaveOptions

Inheritance: java.lang.Object, com.aspose.tasks.SimpleSaveOptions

public class MPPSaveOptions extends SimpleSaveOptions

Allows to specify additional options when saving project data to MPP.

Constructors

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

Methods

MethodDescription
getProtectionPassword()Gets a password which is used to protect a resulting MPP file.
getRemoveInvalidAssignments()Gets a value indicating whether to remove invalid resource assignments when saving to MPP.
getWriteFilters()Gets a value indicating whether to write filter data when saving to MPP.
getWriteViewData()Gets a value indicating whether to write view data when saving to MPP.
setProtectionPassword(String value)Sets a password which is used to protect a resulting MPP file.
setRemoveInvalidAssignments(boolean value)Sets a value indicating whether to remove invalid resource assignments when saving to MPP.
setWriteFilters(boolean value)Sets a value indicating whether to write filter data when saving to MPP.
setWriteViewData(boolean value)Sets a value indicating whether to write view data when saving to MPP.

MPPSaveOptions()

public MPPSaveOptions()

Initializes a new instance of the MPPSaveOptions class.

getProtectionPassword()

public final String getProtectionPassword()

Gets a password which is used to protect a resulting MPP file. Currently is supported for MS Project 2010 and newer formats.


Null value indicates that the project file is not protected.

Returns: java.lang.String - a password which is used to protect a resulting MPP file.

getRemoveInvalidAssignments()

public final boolean getRemoveInvalidAssignments()

Gets a value indicating whether to remove invalid resource assignments when saving to MPP.


MS Project creates an empty resource assignment for each task. Set this flag to true to remove them on save.

Returns: boolean - a value indicating whether to remove invalid resource assignments when saving to MPP.

getWriteFilters()

public final boolean getWriteFilters()

Gets a value indicating whether to write filter data when saving to MPP.


Filter data includes Project.TaskFilters and Project.ResourceFilters collections.


Currently supported for MSP 2010 or newer formats.

Returns: boolean - a value indicating whether to write filter data when saving to MPP.

getWriteViewData()

public final boolean getWriteViewData()

Gets a value indicating whether to write view data when saving to MPP.


View data includes Project.Views, Filters and Tables collections.

Returns: boolean - a value indicating whether to write view data when saving to MPP.

setProtectionPassword(String value)

public final void setProtectionPassword(String value)

Sets a password which is used to protect a resulting MPP file. Currently is supported for MS Project 2010 and newer formats.


Null value indicates that the project file is not protected.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa password which is used to protect a resulting MPP file.

setRemoveInvalidAssignments(boolean value)

public final void setRemoveInvalidAssignments(boolean value)

Sets a value indicating whether to remove invalid resource assignments when saving to MPP.


MS Project creates an empty resource assignment for each task. Set this flag to true to remove them on save.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether to remove invalid resource assignments when saving to MPP.

setWriteFilters(boolean value)

public final void setWriteFilters(boolean value)

Sets a value indicating whether to write filter data when saving to MPP.


Filter data includes Project.TaskFilters and Project.ResourceFilters collections.


Currently supported for MSP 2010 or newer formats.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether to write filter data when saving to MPP.

setWriteViewData(boolean value)

public final void setWriteViewData(boolean value)

Sets a value indicating whether to write view data when saving to MPP.


View data includes Project.Views, Filters and Tables collections.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether to write view data when saving to MPP.