mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-12 17:52:13 +02:00
boolean to Boolean
This commit is contained in:
parent
5312227586
commit
c07908d4ed
@ -63,14 +63,16 @@ public class PasswordController {
|
|||||||
String ownerPassword = request.getOwnerPassword();
|
String ownerPassword = request.getOwnerPassword();
|
||||||
String password = request.getPassword();
|
String password = request.getPassword();
|
||||||
int keyLength = request.getKeyLength();
|
int keyLength = request.getKeyLength();
|
||||||
boolean preventAssembly = request.isPreventAssembly();
|
boolean preventAssembly = Boolean.TRUE.equals(request.getPreventAssembly());
|
||||||
boolean preventExtractContent = request.isPreventExtractContent();
|
boolean preventExtractContent = Boolean.TRUE.equals(request.getPreventExtractContent());
|
||||||
boolean preventExtractForAccessibility = request.isPreventExtractForAccessibility();
|
boolean preventExtractForAccessibility =
|
||||||
boolean preventFillInForm = request.isPreventFillInForm();
|
Boolean.TRUE.equals(request.getPreventExtractForAccessibility());
|
||||||
boolean preventModify = request.isPreventModify();
|
boolean preventFillInForm = Boolean.TRUE.equals(request.getPreventFillInForm());
|
||||||
boolean preventModifyAnnotations = request.isPreventModifyAnnotations();
|
boolean preventModify = Boolean.TRUE.equals(request.getPreventModify());
|
||||||
boolean preventPrinting = request.isPreventPrinting();
|
boolean preventModifyAnnotations =
|
||||||
boolean preventPrintingFaithful = request.isPreventPrintingFaithful();
|
Boolean.TRUE.equals(request.getPreventModifyAnnotations());
|
||||||
|
boolean preventPrinting = Boolean.TRUE.equals(request.getPreventPrinting());
|
||||||
|
boolean preventPrintingFaithful = Boolean.TRUE.equals(request.getPreventPrintingFaithful());
|
||||||
|
|
||||||
PDDocument document = pdfDocumentFactory.load(fileInput);
|
PDDocument document = pdfDocumentFactory.load(fileInput);
|
||||||
AccessPermission ap = new AccessPermission();
|
AccessPermission ap = new AccessPermission();
|
||||||
|
@ -32,29 +32,31 @@ public class AddPasswordRequest extends PDFFile {
|
|||||||
requiredMode = Schema.RequiredMode.REQUIRED)
|
requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private int keyLength = 256;
|
private int keyLength = 256;
|
||||||
|
|
||||||
@Schema(description = "Whether document assembly is prevented", example = "false")
|
@Schema(description = "Whether document assembly is prevented", defaultValue = "false")
|
||||||
private boolean preventAssembly;
|
private Boolean preventAssembly;
|
||||||
|
|
||||||
@Schema(description = "Whether content extraction is prevented", example = "false")
|
@Schema(description = "Whether content extraction is prevented", defaultValue = "false")
|
||||||
private boolean preventExtractContent;
|
private Boolean preventExtractContent;
|
||||||
|
|
||||||
@Schema(
|
@Schema(
|
||||||
description = "Whether content extraction for accessibility is prevented",
|
description = "Whether content extraction for accessibility is prevented",
|
||||||
example = "false")
|
defaultValue = "false")
|
||||||
private boolean preventExtractForAccessibility;
|
private Boolean preventExtractForAccessibility;
|
||||||
|
|
||||||
@Schema(description = "Whether form filling is prevented", example = "false")
|
@Schema(description = "Whether form filling is prevented", defaultValue = "false")
|
||||||
private boolean preventFillInForm;
|
private Boolean preventFillInForm;
|
||||||
|
|
||||||
@Schema(description = "Whether document modification is prevented", example = "false")
|
@Schema(description = "Whether document modification is prevented", defaultValue = "false")
|
||||||
private boolean preventModify;
|
private Boolean preventModify;
|
||||||
|
|
||||||
@Schema(description = "Whether modification of annotations is prevented", example = "false")
|
@Schema(
|
||||||
private boolean preventModifyAnnotations;
|
description = "Whether modification of annotations is prevented",
|
||||||
|
defaultValue = "false")
|
||||||
|
private Boolean preventModifyAnnotations;
|
||||||
|
|
||||||
@Schema(description = "Whether printing of the document is prevented", example = "false")
|
@Schema(description = "Whether printing of the document is prevented", defaultValue = "false")
|
||||||
private boolean preventPrinting;
|
private Boolean preventPrinting;
|
||||||
|
|
||||||
@Schema(description = "Whether faithful printing is prevented", example = "false")
|
@Schema(description = "Whether faithful printing is prevented", defaultValue = "false")
|
||||||
private boolean preventPrintingFaithful;
|
private Boolean preventPrintingFaithful;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user