Class PublishUtil


  • public class PublishUtil
    extends Object
    • Method Detail

      • openReport

        public static org.pentaho.reporting.designer.core.editor.ReportRenderContext openReport​(org.pentaho.reporting.designer.core.ReportDesignerContext context,
                                                                                                org.pentaho.reporting.designer.core.auth.AuthenticationData loginData,
                                                                                                String path)
                                                                                         throws IOException,
                                                                                                org.pentaho.reporting.engine.classic.core.ReportDataFactoryException,
                                                                                                org.pentaho.reporting.libraries.resourceloader.ResourceException
        Throws:
        IOException
        org.pentaho.reporting.engine.classic.core.ReportDataFactoryException
        org.pentaho.reporting.libraries.resourceloader.ResourceException
      • createBundleData

        public static byte[] createBundleData​(org.pentaho.reporting.engine.classic.core.MasterReport report)
                                       throws PublishException,
                                              org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException
        Throws:
        PublishException
        org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException
      • publish

        public static int publish​(byte[] data,
                                  String path,
                                  org.pentaho.reporting.designer.core.auth.AuthenticationData loginData,
                                  Properties fileProperties)
                           throws IOException
        Throws:
        IOException
      • acceptFilter

        public static boolean acceptFilter​(String[] filters,
                                           String name)
      • createVFSConnection

        public static org.apache.commons.vfs2.FileObject createVFSConnection​(org.pentaho.reporting.designer.core.auth.AuthenticationData loginData)
                                                                      throws org.apache.commons.vfs2.FileSystemException
        Throws:
        org.apache.commons.vfs2.FileSystemException
      • createVFSConnection

        public static org.apache.commons.vfs2.FileObject createVFSConnection​(org.apache.commons.vfs2.FileSystemManager fileSystemManager,
                                                                             org.pentaho.reporting.designer.core.auth.AuthenticationData loginData)
                                                                      throws org.apache.commons.vfs2.FileSystemException
        Throws:
        org.apache.commons.vfs2.FileSystemException
      • getTimeout

        public static int getTimeout​(org.pentaho.reporting.designer.core.auth.AuthenticationData loginData)
      • normalizeURL

        public static String normalizeURL​(String baseURL,
                                          int version)
      • validateName

        public static boolean validateName​(String name)
        Checks for presence of black listed chars as well as illegal permutations of legal chars.
      • setReservedChars

        public static void setReservedChars​(String reservedChars)
      • getPattern

        public static Pattern getPattern()
      • getReservedCharsDisplay

        public static String getReservedCharsDisplay()
      • setReservedCharsDisplay

        public static void setReservedCharsDisplay​(String reservedCharsDisplay)