public class PublishUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
reservedChars |
protected static String |
reservedCharsDisplay |
static String |
SERVER_VERSION |
static int |
SERVER_VERSION_LEGACY |
static int |
SERVER_VERSION_SUGAR |
Modifier and Type | Method and 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(AuthenticationData loginData) |
static org.apache.commons.vfs2.FileObject |
createVFSConnection(org.apache.commons.vfs2.FileSystemManager fileSystemManager,
AuthenticationData loginData) |
static Pattern |
getPattern() |
static String |
getReservedCharsDisplay() |
static int |
getTimeout(AuthenticationData loginData) |
static void |
launchReportOnServer(String baseUrl,
String path) |
static String |
normalizeURL(String baseURL,
int version) |
static ReportRenderContext |
openReport(ReportDesignerContext context,
AuthenticationData loginData,
String path) |
static int |
publish(byte[] data,
String path,
AuthenticationData loginData)
Deprecated.
|
static int |
publish(byte[] data,
String path,
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.
|
public static final String SERVER_VERSION
public static final int SERVER_VERSION_SUGAR
public static final int SERVER_VERSION_LEGACY
protected static String reservedChars
protected static String reservedCharsDisplay
public static ReportRenderContext openReport(ReportDesignerContext context, AuthenticationData loginData, String path) throws IOException, org.pentaho.reporting.engine.classic.core.ReportDataFactoryException, org.pentaho.reporting.libraries.resourceloader.ResourceException
IOException
org.pentaho.reporting.engine.classic.core.ReportDataFactoryException
org.pentaho.reporting.libraries.resourceloader.ResourceException
public static void launchReportOnServer(String baseUrl, String path) throws IOException
IOException
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
PublishException
org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException
public static int publish(byte[] data, String path, AuthenticationData loginData, Properties fileProperties) throws IOException
IOException
@Deprecated public static int publish(byte[] data, String path, AuthenticationData loginData) throws IOException
publish(byte[], String, AuthenticationData, Properties)
We keep the method for backward compatibilityIOException
public static org.apache.commons.vfs2.FileObject createVFSConnection(AuthenticationData loginData) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException
public static org.apache.commons.vfs2.FileObject createVFSConnection(org.apache.commons.vfs2.FileSystemManager fileSystemManager, AuthenticationData loginData) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException
public static int getTimeout(AuthenticationData loginData)
public static boolean validateName(String name)
public static void setReservedChars(String reservedChars)
public static Pattern getPattern()
public static String getReservedCharsDisplay()
public static void setReservedCharsDisplay(String reservedCharsDisplay)
Copyright © 2019 Hitachi Vantara. All rights reserved.