Skip to main content

DocumentSecurityType Class

Lists document security levels.

Declaration

public final class DocumentSecurityType extends IntEnum<DocumentSecurityType>

Remarks

Call the DocumentProperties.getSecurity() method to get the security level of a presentation. The security level can combine multiple DocumentSecurityType flags.

Inherited Members

com.devexpress.java.enums.IntEnum.clone()
com.devexpress.java.enums.IntEnum.compareTo(T)
com.devexpress.java.enums.IntEnum.equals(java.lang.Object)
com.devexpress.java.enums.IntEnum.getName()
com.devexpress.java.enums.IntEnum.getValue()
com.devexpress.java.enums.IntEnum.hasFlag(T)
com.devexpress.java.enums.IntEnum.hasFlag(int)
com.devexpress.java.enums.IntEnum.hashCode()
com.devexpress.java.enums.IntEnum.readResolve()
com.devexpress.java.enums.IntEnum.resolve(int)
com.devexpress.java.enums.IntEnum.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
com.devexpress.java.enums.IntEnum
DocumentSecurityType
See Also

Fields

_LOCKED Field

Users cannot modify the document.

Declaration

public static final int _LOCKED

Field Value

Type Description
int

The integer value of the LOCKED constant, 8.

_NONE Field

Users can open, edit, copy, and save the document without restrictions.

Declaration

public static final int _NONE

Field Value

Type Description
int

The integer value of the NONE constant, 0.

_PASSWORD Field

Users need a password to open the document.

Declaration

public static final int _PASSWORD

Field Value

Type Description
int

The integer value of the PASSWORD constant, 1.

_READONLY_ENFORCED Field

The application opens the document in read-only mode.

Declaration

public static final int _READONLY_ENFORCED

Field Value

Type Description
int

The integer value of the READONLY_ENFORCED constant, 4.

The application suggests that users open the document in read-only mode.

public static final int _READONLY_RECOMMENDED
Type Description
int

The integer value of the READONLY_RECOMMENDED constant, 2.

LOCKED Field

Users cannot modify the document.

Declaration

public static final DocumentSecurityType LOCKED

Field Value

Type Description
DocumentSecurityType

Users cannot modify the document.

NONE Field

Users can open, edit, copy, and save the document without restrictions.

Declaration

public static final DocumentSecurityType NONE

Field Value

Type Description
DocumentSecurityType

Users can open, edit, copy, and save the document without restrictions.

PASSWORD Field

Users need a password to open the document.

Declaration

public static final DocumentSecurityType PASSWORD

Field Value

Type Description
DocumentSecurityType

Users need a password to open the document.

READONLY_ENFORCED Field

The application opens the document in read-only mode.

Declaration

public static final DocumentSecurityType READONLY_ENFORCED

Field Value

Type Description
DocumentSecurityType

The application opens the document in read-only mode.

The application suggests that users open the document in read-only mode.

public static final DocumentSecurityType READONLY_RECOMMENDED
Type Description
DocumentSecurityType

The application suggests that users open the document in read-only mode.

Methods

fromValue(int value) Method

Returns the DocumentSecurityType enumeration constant with the specified integer value.

Declaration

public static DocumentSecurityType fromValue(int value)

Parameters

Name Type Description
value int

The integer value of the enumeration constant.

Returns

Type Description
DocumentSecurityType

The DocumentSecurityType enumeration constant with the specified value.

values() Method

Returns an array of all DocumentSecurityType enumeration constants.

Declaration

public static DocumentSecurityType[] values()

Returns

Type Description
DocumentSecurityType[]

An array of all DocumentSecurityType enumeration constants.