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 AttachmentcreateAttachment(UserContext uc, Mandant man, Benutzer ben, Vorgang vorgang, String fileName, EAttachmentSource attachmentSource, InputStream is) Deprecated.static AttachmentcreateAttachment(UserContext uc, Mandant man, Benutzer ben, Vorgang vorgang, org.apache.commons.fileupload.FileItem item, EAttachmentSource attachmentSource) Deprecated.static AttachmentcreateAttachment(UserContext uc, Mandant man, IUser user, Vorgang vorgang, String fileName, EAttachmentSource attachmentSource, InputStream is) static AttachmentcreateAttachmentBody(byte[] daten, String userName, String filename, Mandant mandant, Vorgang vorgang, EAttachmentSource attachmentSource) static AttachmentcreateAttachmentBody(byte[] daten, String userName, org.apache.commons.fileupload.FileItem item, Mandant mandant, Vorgang vorgang, EAttachmentSource attachmentSource) static StringgetAjaxUUIDFieldName(String fieldName) static StringgetFileName(org.apache.commons.fileupload.FileItem item) static StringgetUUIDFieldName(String orgFieldName) static booleanhanldeFormUploads(IFormRequestContext requestCtx, IXForm xform, Vorgang vorgang) Deprecated.static AttachmentupdateAttachmentBody(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.