public class PermissionProviderStandard extends Object implements PermissionProvider, BitwiseOperandEvaluator
Constructor and Description |
---|
PermissionProviderStandard(int perms)
constructor for PermissionProviderStandard.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(String operandVar)
This is the callback from the BitwiseExpressionEvaluator which is called for each
Pemission Param.
|
int |
getPermissionBits()
This method returns an integer whose bits represent different permissions allowed
or disallowed.
|
boolean |
isPermitted(ObjectOperations objOpr)
Determines whether the given object operation combination is permitted on a given document.
|
static PermissionProviderStandard |
newInstance(PermissionProvider provider)
Constructs a new instance of
PermissionProviderStandard with the same permissions
allowed in passed provider here. |
public PermissionProviderStandard(int perms)
public static PermissionProviderStandard newInstance(PermissionProvider provider) throws PDFUnableToCompleteOperationException
PermissionProviderStandard
with the same permissions
allowed in passed provider here.public int getPermissionBits()
public boolean isPermitted(ObjectOperations objOpr)
isPermitted
in interface PermissionProvider
objOpr
- a valid combination of object/operations
available in Acrobat 7.0 Professional.public boolean evaluate(String operandVar) throws InvalidOperandException
evaluate
in interface BitwiseOperandEvaluator
InvalidOperandException
BitwiseOperandEvaluator.evaluate(java.lang.String)
Copyright © 2010 - 2020 Adobe. All Rights Reserved