WordProcessingProtection
Leave feedback
On this page
Inheritance: java.lang.Object
public final class WordProcessingProtection
Encapsulates document protection options for the WordProcessing document, which is generated from HTML
| Constructor | Description |
|---|---|
| WordProcessingProtection() | Parameterless constructor - all parameters have default values |
| WordProcessingProtection(int protectionType, String password) | Allows to set all parameters during class instantiation |
| Method | Description |
|---|---|
| getProtectionType() | Allows to set a protection type of the document. |
| setProtectionType(int value) | Allows to set a protection type of the document. |
| getPassword() | The password to protect the document with. |
| setPassword(String value) | The password to protect the document with. |
| convertToAsposeWords(int protectionType) |
public WordProcessingProtection()
Parameterless constructor - all parameters have default values
public WordProcessingProtection(int protectionType, String password)
Allows to set all parameters during class instantiation
Parameters:
| Parameter | Type | Description |
|---|---|---|
| protectionType | int | Set the protection type of the document |
| password | java.lang.String | Set the protection password |
public final int getProtectionType()
Allows to set a protection type of the document. By default is set to not protect the document at all.
Returns: int
public final void setProtectionType(int value)
Allows to set a protection type of the document. By default is set to not protect the document at all.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final String getPassword()
The password to protect the document with. If null or empty string - the protection will not be applied to the document.
Returns: java.lang.String
public final void setPassword(String value)
The password to protect the document with. If null or empty string - the protection will not be applied to the document.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public static int convertToAsposeWords(int protectionType)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| protectionType | int |
Returns: int
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.