Package com.aspose.tasks
Class MPPSaveOptions
- java.lang.Object
-
- com.aspose.tasks.MPPSaveOptions
-
public class MPPSaveOptions extends Object
Allows to specify additional options when saving project data to MPP.
-
-
Constructor Summary
Constructors Constructor Description MPPSaveOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getProtectionPassword()
Gets a password which is used to protect a resulting MPP file.boolean
getRemoveInvalidAssignments()
Gets a value indicating whether to remove invalid resource assignments when saving to MPP.boolean
getWriteViewData()
Gets a value indicating whether to write view data when saving to MPP.void
setProtectionPassword(String value)
Sets a password which is used to protect a resulting MPP file.void
setRemoveInvalidAssignments(boolean value)
Sets a value indicating whether to remove invalid resource assignments when saving to MPP.void
setWriteViewData(boolean value)
Sets a value indicating whether to write view data when saving to MPP.
-
-
-
Method Detail
-
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:
- a password which is used to protect a resulting MPP file.
-
setProtectionPassword
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:
value
- 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:
- a value indicating whether to remove invalid resource assignments when saving to MPP.
-
setRemoveInvalidAssignments
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:
value
- a value indicating whether to remove invalid resource assignments 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:
- a value indicating whether to write view data when saving to MPP.
-
setWriteViewData
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:
value
- a value indicating whether to write view data when saving to MPP.
-
-