Class PublishUtil
- java.lang.Object
-
- org.pentaho.reporting.designer.extensions.pentaho.repository.util.PublishUtil
-
public class PublishUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringreservedCharsprotected static StringreservedCharsDisplaystatic StringSERVER_VERSIONstatic intSERVER_VERSION_LEGACYstatic intSERVER_VERSION_SUGAR
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanacceptFilter(String[] filters, String name)static byte[]createBundleData(org.pentaho.reporting.engine.classic.core.MasterReport report)static org.apache.commons.vfs2.FileObjectcreateVFSConnection(org.apache.commons.vfs2.FileSystemManager fileSystemManager, org.pentaho.reporting.designer.core.auth.AuthenticationData loginData)static org.apache.commons.vfs2.FileObjectcreateVFSConnection(org.pentaho.reporting.designer.core.auth.AuthenticationData loginData)static PatterngetPattern()static StringgetReservedCharsDisplay()static intgetTimeout(org.pentaho.reporting.designer.core.auth.AuthenticationData loginData)static voidlaunchReportOnServer(String baseUrl, String path)static StringnormalizeURL(String baseURL, int version)static org.pentaho.reporting.designer.core.editor.ReportRenderContextopenReport(org.pentaho.reporting.designer.core.ReportDesignerContext context, org.pentaho.reporting.designer.core.auth.AuthenticationData loginData, String path)static intpublish(byte[] data, String path, org.pentaho.reporting.designer.core.auth.AuthenticationData loginData)Deprecated.static intpublish(byte[] data, String path, org.pentaho.reporting.designer.core.auth.AuthenticationData loginData, Properties fileProperties)static voidsetReservedChars(String reservedChars)static voidsetReservedCharsDisplay(String reservedCharsDisplay)static booleanvalidateName(String name)Checks for presence of black listed chars as well as illegal permutations of legal chars.
-
-
-
Field Detail
-
SERVER_VERSION
public static final String SERVER_VERSION
- See Also:
- Constant Field Values
-
SERVER_VERSION_SUGAR
public static final int SERVER_VERSION_SUGAR
- See Also:
- Constant Field Values
-
SERVER_VERSION_LEGACY
public static final int SERVER_VERSION_LEGACY
- See Also:
- Constant Field Values
-
reservedChars
protected static String reservedChars
-
reservedCharsDisplay
protected static String reservedCharsDisplay
-
-
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:
IOExceptionorg.pentaho.reporting.engine.classic.core.ReportDataFactoryExceptionorg.pentaho.reporting.libraries.resourceloader.ResourceException
-
launchReportOnServer
public static void launchReportOnServer(String baseUrl, String path) throws IOException
- Throws:
IOException
-
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:
PublishExceptionorg.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
-
publish
@Deprecated public static int publish(byte[] data, String path, org.pentaho.reporting.designer.core.auth.AuthenticationData loginData) throws IOException
Deprecated.We need to keep the options of report. please usepublish(byte[], String, AuthenticationData, Properties)We keep the method for backward compatibility- Throws:
IOException- Since:
- pentaho 8.1
-
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)
-
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)
-
-