org.sejda.impl.pdfbox.component
Class PDDocumentAccessPermission

java.lang.Object
  extended by org.sejda.impl.pdfbox.component.PDDocumentAccessPermission

public class PDDocumentAccessPermission
extends Object

Wrapper around AccessPermission providing convenient methods to check permissions.

Author:
Andrea Vacondio

Method Summary
 void ensureOwnerPermissions()
          Ensures that owner permissions are available.
 void ensurePermission(PdfAccessPermission required)
          Ensures that the required permission is granted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

ensureOwnerPermissions

public void ensureOwnerPermissions()
                            throws TaskPermissionsException
Ensures that owner permissions are available.

Throws:
TaskPermissionsException - if not owner permissions are granted.

ensurePermission

public void ensurePermission(PdfAccessPermission required)
                      throws TaskPermissionsException
Ensures that the required permission is granted

Parameters:
required -
Throws:
TaskPermissionsException - if not granted.


Copyright © 2012. All Rights Reserved.