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 String
reservedChars
protected static String
reservedCharsDisplay
static String
SERVER_VERSION
static int
SERVER_VERSION_LEGACY
static int
SERVER_VERSION_SUGAR
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
acceptFilter(String[] filters, String name)
static byte[]
createBundleData(org.pentaho.reporting.engine.classic.core.MasterReport report)
static org.apache.commons.vfs2.FileObject
createVFSConnection(org.apache.commons.vfs2.FileSystemManager fileSystemManager, org.pentaho.reporting.designer.core.auth.AuthenticationData loginData)
static org.apache.commons.vfs2.FileObject
createVFSConnection(org.pentaho.reporting.designer.core.auth.AuthenticationData loginData)
static Pattern
getPattern()
static String
getReservedCharsDisplay()
static int
getTimeout(org.pentaho.reporting.designer.core.auth.AuthenticationData loginData)
static void
launchReportOnServer(String baseUrl, String path)
static String
normalizeURL(String baseURL, int version)
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)
static int
publish(byte[] data, String path, org.pentaho.reporting.designer.core.auth.AuthenticationData loginData)
Deprecated.static int
publish(byte[] data, String path, org.pentaho.reporting.designer.core.auth.AuthenticationData loginData, Properties fileProperties)
static void
setReservedChars(String reservedChars)
static void
setReservedCharsDisplay(String reservedCharsDisplay)
static boolean
validateName(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:
IOException
org.pentaho.reporting.engine.classic.core.ReportDataFactoryException
org.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:
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
-
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)
-
-