站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

FileManagerUtils (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.brms.server.util
Class FileManagerUtils

java.lang.Object
  extended by org.drools.brms.server.util.FileManagerUtils

public class FileManagerUtils
extends Object

This assists the file manager servlet.

Author:
Fernando Meyer

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

FileManagerUtils

public FileManagerUtils()
Method Detail

attachFile

public void attachFile(FormData uploadItem,
                       RulesRepository repo)
                throws IOException
This will return the file and the Asset UUID that it is to be attached to.

Throws:
IOException

attachFileToAsset

public void attachFileToAsset(RulesRepository repo,
                              String uuid,
                              InputStream fileData,
                              String fileName)
This utility method attaches a file to an asset.


loadFileAttachmentByUUID

public String loadFileAttachmentByUUID(String uuid,
                                       OutputStream out,
                                       RulesRepository repository)
                                throws IOException
The get returns files based on UUID of an asset.

Throws:
IOException

getFormData

public FormData getFormData(javax.servlet.http.HttpServletRequest request)
Get the form data from the inbound request.


loadBinaryPackage

public String loadBinaryPackage(String packageName,
                                String packageVersion,
                                boolean isLatest,
                                OutputStream out,
                                RulesRepository repository)
                         throws IOException
Load up the approproate package version.

Parameters:
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).
Returns:
The filename if its all good.
Throws:
IOException


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.