Interface PermissionProvider
-
- All Known Implementing Classes:
PermissionProviderStandard
public interface PermissionProviderThis interface must be implemented by each permission provider. This class specifies the available permission providers.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDOC_MDPPermission provider for DocMDP author signatures.static java.lang.StringSECURITYPermission provider for the security (encryption) handlers.static java.lang.StringUPPermission provider for user permissions.static java.lang.StringURPermission provider for usage rights.static java.lang.StringXFAPermission provider for XFA usage.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisPermitted(ObjectOperations objOpr)Every permission provider must implement this method to query a particular object-operation combination.
-
-
-
Field Detail
-
SECURITY
static final java.lang.String SECURITY
Permission provider for the security (encryption) handlers. The security handlers include Standard, PubSec, APS, eBook.
-
DOC_MDP
static final java.lang.String DOC_MDP
Permission provider for DocMDP author signatures. An author may specify what changes are allowed to a document before the signature becomes invalid.- See Also:
- Constant Field Values
-
UR
static final java.lang.String UR
Permission provider for usage rights. It enables features in Acrobar Reader.- See Also:
- Constant Field Values
-
UP
static final java.lang.String UP
Permission provider for user permissions. This allows lightweight setting and clearing of document permissions. These permissions are not protected by signatures or encryption. Therefore, they can be set and cleared by any user.- See Also:
- Constant Field Values
-
XFA
static final java.lang.String XFA
Permission provider for XFA usage. This applies to static and dynamic XFA.- See Also:
- Constant Field Values
-
-
Method Detail
-
isPermitted
boolean isPermitted(ObjectOperations objOpr) throws PDFUnableToCompleteOperationException
Every permission provider must implement this method to query a particular object-operation combination. Subsequent calls to this method will refer to the document specified by thedocparameter.- Parameters:
objOpr- a valid combination of object/operations available in Acrobat 7.0 Professional.- Returns:
- boolean
trueif the specified operation is permitted;falseotherwise. - Throws:
PDFUnableToCompleteOperationException- if the specified operation cannot be completed.
-
-