|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.brms.server.util.FileManagerUtils
public class FileManagerUtils
This assists the file manager servlet.
Constructor Summary | |
---|---|
FileManagerUtils()
|
Method Summary | |
---|---|
void |
attachFile(FormData uploadItem,
RulesRepository repo)
This will return the file and the Asset UUID that it is to be attached to. |
void |
attachFileToAsset(RulesRepository repo,
String uuid,
InputStream fileData,
String fileName)
This utility method attaches a file to an asset. |
FormData |
getFormData(javax.servlet.http.HttpServletRequest request)
Get the form data from the inbound request. |
String |
loadBinaryPackage(String packageName,
String packageVersion,
boolean isLatest,
OutputStream out,
RulesRepository repository)
Load up the approproate package version. |
String |
loadFileAttachmentByUUID(String uuid,
OutputStream out,
RulesRepository repository)
The get returns files based on UUID of an asset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileManagerUtils()
Method Detail |
---|
public void attachFile(FormData uploadItem, RulesRepository repo) throws IOException
IOException
public void attachFileToAsset(RulesRepository repo, String uuid, InputStream fileData, String fileName)
public String loadFileAttachmentByUUID(String uuid, OutputStream out, RulesRepository repository) throws IOException
IOException
public FormData getFormData(javax.servlet.http.HttpServletRequest request)
public String loadBinaryPackage(String packageName, String packageVersion, boolean isLatest, OutputStream out, RulesRepository repository) throws IOException
packageName
- The name of the package.packageVersion
- The version (if it is a snapshot).isLatest
- true if the latest package binary will be used (ie NOT a snapshot).
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |