You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Arun Patidar (JIRA)" <ji...@apache.org> on 2016/06/18 13:07:05 UTC

[jira] [Created] (OFBIZ-7459) ApacheFopWorker Class

Arun Patidar created OFBIZ-7459:
-----------------------------------

             Summary: 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
            Priority: Minor


- 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)