org.pentaho.platform.util.client
Class PublisherUtil
java.lang.Object
org.pentaho.platform.util.client.PublisherUtil
public class PublisherUtil
- extends Object
Method Summary |
static String |
getPasswordKey(String passWord)
Utility for getting the MD5 hash from the provided key for sending the publishPassword. |
static int |
publish(String publishURL,
String publishPath,
File[] publishFiles,
String publishPassword,
String serverUserid,
String serverPassword,
boolean overwrite)
Publishes a list of files and a datasource to the server with basic authentication to the server |
FILE_EXISTS
public static final int FILE_EXISTS
- See Also:
- Constant Field Values
FILE_ADD_FAILED
public static final int FILE_ADD_FAILED
- See Also:
- Constant Field Values
FILE_ADD_SUCCESSFUL
public static final int FILE_ADD_SUCCESSFUL
- See Also:
- Constant Field Values
FILE_ADD_INVALID_PUBLISH_PASSWORD
public static final int FILE_ADD_INVALID_PUBLISH_PASSWORD
- See Also:
- Constant Field Values
FILE_ADD_INVALID_USER_CREDENTIALS
public static final int FILE_ADD_INVALID_USER_CREDENTIALS
- See Also:
- Constant Field Values
PublisherUtil
public PublisherUtil()
publish
public static int publish(String publishURL,
String publishPath,
File[] publishFiles,
String publishPassword,
String serverUserid,
String serverPassword,
boolean overwrite)
- Publishes a list of files and a datasource to the server with basic authentication to the server
- Parameters:
publishURL
- The URL of the Pentaho serverpublishPath
- The path in the solution to place the filespublishFiles
- Array of File objects to post to the serverdataSource
- The datasource to publish to the serverpublishPassword
- The publishing password for the serverserverUserid
- The userid to authenticate to the serverserverPassword
- The password to authenticate with the server
- Returns:
- Server response as a string
getPasswordKey
public static final String getPasswordKey(String passWord)
- Utility for getting the MD5 hash from the provided key for sending the publishPassword.
- Parameters:
passWord
- The password to get an MD5 hash of
- Returns:
- zero-padded MD5 hash of the password