DocumentSecurity
Overview
DocumentSecurity is an enum in Aspose.Words FOSS for Java.
Used as a value for the BuiltInDocumentProperties.getSecurity() property.
Edition status of its 13 listed members (a property and its accessor methods are listed separately, overloads once): 13 not yet exercised by a verified example.
This enum declares 7 methods for DocumentSecurity objects in Java programs.
Available methods include: fromName, fromNames, getName, getNames, getValues, toString, toStringSet.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: values.
Values
| Value | Description |
|---|---|
NONE | There are no security states specified by the property. |
PASSWORD_PROTECTED | The document is password protected. |
READ_ONLY_RECOMMENDED | The document to be opened read-only if possible, but the setting can be overridden. |
READ_ONLY_ENFORCED | The document to always be opened read-only. |
READ_ONLY_EXCEPT_ANNOTATIONS | The document to always be opened read-only except for annotations. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
values | int[] | Read | Returns array of DocumentSecurity values. |
Methods
| Signature | Description |
|---|---|
getName(documentSecurity: int) → String | Returns JAVA_STYLE string representation of integer DocumentSecurity value. |
getNames(documentSecurity: int) → Set<String> | Returns string representation of integer DocumentSecurity value. |
toString(documentSecurity: int) → String | Returns DotNetStyle string representation of integer DocumentSecurity value. |
toStringSet(attr: int) → String | Returns DotNetStyle string representation of integer DocumentSecurity value. |
fromName(documentSecurityName: String) → int | Returns integer representation by DocumentSecurity name. |
fromNames(documentSecurityNames: Set<String>) → int | Returns flags integer representation by DocumentSecurity names. |
getValues() → int[] | Returns array of DocumentSecurity values. |