public final class DocumentSecurity
extends java.lang.Object
BuiltInDocumentProperties.getSecurity() / BuiltInDocumentProperties.setSecurity(int) property. Specifies the security level of a document as a numeric value.| Modifier and Type | Field and Description |
|---|---|
static int |
length |
static int |
NONE
There are no security states specified by the property.
|
static int |
PASSWORD_PROTECTED
The document is password protected.
|
static int |
READ_ONLY_ENFORCED
The document to always be opened read-only.
|
static int |
READ_ONLY_EXCEPT_ANNOTATIONS
The document to always be opened read-only except for annotations.
|
static int |
READ_ONLY_RECOMMENDED
The document to be opened read-only if possible, but the setting can be overridden.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String documentSecurityName) |
static int |
fromNames(java.util.Set documentSecurityNames) |
static java.lang.String |
getName(int documentSecurity) |
static java.util.Set |
getNames(int documentSecurity) |
static int[] |
getValues() |
static java.lang.String |
toString(int documentSecurity) |
static java.lang.String |
toStringSet(int attr) |
public static final int NONE
public static final int PASSWORD_PROTECTED
public static final int READ_ONLY_RECOMMENDED
public static final int READ_ONLY_ENFORCED
public static final int READ_ONLY_EXCEPT_ANNOTATIONS
public static final int length
public static java.lang.String getName(int documentSecurity)
public static java.util.Set getNames(int documentSecurity)
public static java.lang.String toString(int documentSecurity)
public static java.lang.String toStringSet(int attr)
public static int fromName(java.lang.String documentSecurityName)
public static int fromNames(java.util.Set documentSecurityNames)
public static int[] getValues()