Package de.xima.fc.form.helper
Class AttachmentHelper
- java.lang.Object
-
- de.xima.fc.form.helper.AttachmentHelper
-
public class AttachmentHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description AttachmentHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Attachment
createAttachment(UserContext uc, Mandant man, Benutzer ben, Vorgang vorgang, String fileName, EAttachmentSource attachmentSource, InputStream is)
static Attachment
createAttachment(UserContext uc, Mandant man, Benutzer ben, Vorgang vorgang, org.apache.commons.fileupload.FileItem item, EAttachmentSource attachmentSource)
static Attachment
createAttachmentBody(byte[] daten, String userName, String filename, Mandant mandant, Vorgang vorgang, EAttachmentSource attachmentSource)
static Attachment
createAttachmentBody(byte[] daten, String userName, org.apache.commons.fileupload.FileItem item, Mandant mandant, Vorgang vorgang, EAttachmentSource attachmentSource)
static String
getAjaxUUIDFieldName(String fieldName)
static String
getFileName(org.apache.commons.fileupload.FileItem item)
static String
getUUIDFieldName(String orgFieldName)
static boolean
hanldeFormUploads(IFormRequestContext requestCtx, IXForm xform, Vorgang vorgang)
Deprecated.static Attachment
updateAttachmentBody(UserContext uc, Attachment at, byte[] daten, String userName, org.apache.commons.fileupload.FileItem item, Vorgang vorgang)
-
-
-
Method Detail
-
hanldeFormUploads
@Deprecated public static boolean hanldeFormUploads(IFormRequestContext requestCtx, IXForm xform, Vorgang vorgang)
Deprecated.
-
updateAttachmentBody
public static Attachment updateAttachmentBody(UserContext uc, Attachment at, byte[] daten, String userName, org.apache.commons.fileupload.FileItem item, Vorgang vorgang)
-
createAttachmentBody
public static Attachment createAttachmentBody(byte[] daten, String userName, String filename, Mandant mandant, Vorgang vorgang, EAttachmentSource attachmentSource)
-
getFileName
public static String getFileName(org.apache.commons.fileupload.FileItem item)
-
createAttachmentBody
public static Attachment createAttachmentBody(byte[] daten, String userName, org.apache.commons.fileupload.FileItem item, Mandant mandant, Vorgang vorgang, EAttachmentSource attachmentSource)
-
createAttachment
public static Attachment createAttachment(UserContext uc, Mandant man, Benutzer ben, Vorgang vorgang, org.apache.commons.fileupload.FileItem item, EAttachmentSource attachmentSource) throws IOException
- Throws:
IOException
-
createAttachment
public static Attachment createAttachment(UserContext uc, Mandant man, Benutzer ben, Vorgang vorgang, String fileName, EAttachmentSource attachmentSource, InputStream is) throws IOException
- Throws:
IOException
-
-