| java.lang.Object org.drools.brms.server.files.FileManagerUtils
FileManagerUtils | public class FileManagerUtils (Code) | | This assists the file manager servlets.
author: Fernando Meyer |
attachFileToAsset | public void attachFileToAsset(String uuid, InputStream fileData, String fileName)(Code) | | This utility method attaches a file to an asset.
|
exportRulesRepository | public byte[] exportRulesRepository()(Code) | | |
getLastModified | public long getLastModified(String name, String version)(Code) | | This will return the last time the package was built.
|
importClassicDRL | public void importClassicDRL(InputStream drlStream) throws IOException, DroolsParserException(Code) | | This will import DRL from a drl file into a more normalised structure.
If the package does not exist, it will be created.
If it does, it will be "merged" in the sense that any new rules in the drl
will be created as new assets in the repo, everything else will stay as it was
in the repo.
|
importRulesRepository | public void importRulesRepository(byte[] data)(Code) | | |
loadBinaryPackage | public String loadBinaryPackage(String packageName, String packageVersion, boolean isLatest, OutputStream out) throws IOException(Code) | | Load up the approproate package version.
Parameters: packageName - The name of the package. Parameters: packageVersion - The version (if it is a snapshot). Parameters: isLatest - true if the latest package binary will be used (ie NOT a snapshot). The filename if its all good. |
|
|