[ https://issues.apache.org/jira/browse/OFBIZ-7459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rohit Koushal updated OFBIZ-7459: --------------------------------- Attachment: OFBIZ-7459.patch Thanks [~arunpati] and [~rishisolankii] for the details. Here is the patch for the issue > ApacheFopWorker Class > --------------------- > > Key: OFBIZ-7459 > URL: https://issues.apache.org/jira/browse/OFBIZ-7459 > Project: OFBiz > Issue Type: Sub-task > Components: framework > Reporter: Arun Patidar > Assignee: Rohit Koushal > Priority: Minor > Attachments: OFBIZ-7459.patch > > > - Make class as final. > - Add a private constructor. > - Make the following protected variable as private > {code} > protected static FopFactory fopFactory = null; > {code} > - Make the following public variable as private > {code} > public static final String tempFilePrefix = "org.ofbiz.webapp.view.ApacheFopWorker-"; > public static final int encryptionLengthBitsDefault = 128; > > public static final String encryptionLengthDefault = UtilProperties.getPropertyValue("fop", "fop.encryption-length.default", String.valueOf(encryptionLengthBitsDefault)); > public static final String userPasswordDefault = UtilProperties.getPropertyValue("fop", "fop.userPassword.default"); > public static final String ownerPasswordDefault = UtilProperties.getPropertyValue("fop", "fop.ownerPassword.default"); > public static final String allowPrintDefault = UtilProperties.getPropertyValue("fop", "fop.allowPrint.default", "true"); > public static final String allowCopyContentDefault = UtilProperties.getPropertyValue("fop", "fop.allowCopyContent.default", "true"); > public static final String allowEditContentDefault = UtilProperties.getPropertyValue("fop", "fop.allowEditContent.default", "true"); > public static final String allowEditAnnotationsDefault = UtilProperties.getPropertyValue("fop", "fop.allowEditAnnotations.default", "true"); > public static final String allowFillInFormsDefault = UtilProperties.getPropertyValue("fop", "fop.allowFillInForms.default", "true"); > public static final String allowAccessContentDefault = UtilProperties.getPropertyValue("fop", "fop.allowAccessContent.default", "true"); > public static final String allowAssembleDocumentDefault = UtilProperties.getPropertyValue("fop", "fop.allowAssembleDocument.default", "true"); > public static final String allowPrintHqDefault = UtilProperties.getPropertyValue("fop", "fop.allowPrintHq.default", "true"); > public static final String encryptMetadataDefault = UtilProperties.getPropertyValue("fop", "fop.encrypt-metadata.default", "true"); > > public static final String fopPath = UtilProperties.getPropertyValue("fop", "fop.path", "/framework/webapp/config"); > > public static final String fopFontBaseProperty = UtilProperties.getPropertyValue("fop", "fop.font.base.url", "/framework/webapp/config/"); > {code} > - Make getter methods for all above converted private variables. -- This message was sent by Atlassian JIRA (v6.3.4#6332) |
Free forum by Nabble | Edit this page |