com.qoppa.pdf.permissions
Class Restrictions

java.lang.Object
  extended by com.qoppa.pdf.permissions.Restrictions

public class Restrictions
extends Object

The Restrictions class contains information about the type of Permission that is restricting an operation. Document permissions may be restricted by Password permissions, DocMDP permissions, and/or Usage Rights permissions.


Constructor Summary
Restrictions(boolean password, boolean docMDP, boolean usageRights)
           
 
Method Summary
 boolean isRestricted()
          Returns true if one or more permission types have restrictions.
 boolean isRestrictedByDocMDPPermissions()
          Returns true if DocMDPPermissions have restrictions.
 boolean isRestrictedByPasswordPermissions()
          Returns true if PasswordPermissions have restrictions.
 boolean isRestrictedByUsageRightsPermissions()
          Returns true if UsageRightsPermissions have restrictions.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Restrictions

public Restrictions(boolean password,
                    boolean docMDP,
                    boolean usageRights)
Method Detail

isRestricted

public boolean isRestricted()
Returns true if one or more permission types have restrictions.

Returns:
true if one or more permission types have restrictions.

isRestrictedByPasswordPermissions

public boolean isRestrictedByPasswordPermissions()
Returns true if PasswordPermissions have restrictions.

Returns:
true if PasswordPermissions have restrictions.

isRestrictedByDocMDPPermissions

public boolean isRestrictedByDocMDPPermissions()
Returns true if DocMDPPermissions have restrictions.

Returns:
true if DocMDPPermissions have restrictions.

isRestrictedByUsageRightsPermissions

public boolean isRestrictedByUsageRightsPermissions()
Returns true if UsageRightsPermissions have restrictions.

Returns:
true if UsageRightsPermissions have restrictions.