Package de.xima.fc.form.helper
Class AttachmentHelper
java.lang.Object
de.xima.fc.form.helper.AttachmentHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Attachment
createAttachment
(UserContext uc, Mandant man, Benutzer ben, Vorgang vorgang, String fileName, EAttachmentSource attachmentSource, InputStream is) Deprecated.static Attachment
createAttachment
(UserContext uc, Mandant man, Benutzer ben, Vorgang vorgang, org.apache.commons.fileupload.FileItem item, EAttachmentSource attachmentSource) Deprecated.static Attachment
createAttachment
(UserContext uc, Mandant man, IUser user, Vorgang vorgang, String fileName, EAttachmentSource attachmentSource, InputStream is) 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)
-
Constructor Details
-
AttachmentHelper
public AttachmentHelper()
-
-
Method Details
-
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
-
getUUIDFieldName
-
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, IUser user, Vorgang vorgang, String fileName, EAttachmentSource attachmentSource, InputStream is) throws IOException - Throws:
IOException
-
getAjaxUUIDFieldName
-
createAttachment
@Deprecated public static Attachment createAttachment(UserContext uc, Mandant man, Benutzer ben, Vorgang vorgang, String fileName, EAttachmentSource attachmentSource, InputStream is) throws IOException Deprecated.- Throws:
IOException
-
createAttachment
@Deprecated public static Attachment createAttachment(UserContext uc, Mandant man, Benutzer ben, Vorgang vorgang, org.apache.commons.fileupload.FileItem item, EAttachmentSource attachmentSource) throws IOException Deprecated.- Throws:
IOException
-
createAttachment(UserContext, Mandant, IUser, Vorgang, String, EAttachmentSource, InputStream)
instead.