public class AttachmentHelper extends Object
Constructor and Description |
---|
AttachmentHelper() |
Modifier and Type | Method and Description |
---|---|
static Attachment |
createAttachment(UserContext uc,
Mandant man,
Benutzer ben,
Vorgang vorgang,
org.apache.commons.fileupload.FileItem item,
EAttachmentSource attachmentSource) |
static Attachment |
createAttachment(UserContext uc,
Mandant man,
Benutzer ben,
Vorgang vorgang,
String fileName,
EAttachmentSource attachmentSource,
InputStream is) |
static Attachment |
createAttachmentBody(byte[] daten,
String userName,
org.apache.commons.fileupload.FileItem item,
Mandant mandant,
Vorgang vorgang,
EAttachmentSource attachmentSource) |
static Attachment |
createAttachmentBody(byte[] daten,
String userName,
String filename,
Mandant mandant,
Vorgang vorgang,
EAttachmentSource attachmentSource) |
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) |
@Deprecated public static boolean hanldeFormUploads(IFormRequestContext requestCtx, IXForm xform, Vorgang vorgang)
AttachmentPersisterBuilder
public static Attachment updateAttachmentBody(UserContext uc, Attachment at, byte[] daten, String userName, org.apache.commons.fileupload.FileItem item, Vorgang vorgang)
public static Attachment createAttachmentBody(byte[] daten, String userName, String filename, Mandant mandant, Vorgang vorgang, EAttachmentSource attachmentSource)
public static String getFileName(org.apache.commons.fileupload.FileItem item)
public static Attachment createAttachmentBody(byte[] daten, String userName, org.apache.commons.fileupload.FileItem item, Mandant mandant, Vorgang vorgang, EAttachmentSource attachmentSource)
public static Attachment createAttachment(UserContext uc, Mandant man, Benutzer ben, Vorgang vorgang, org.apache.commons.fileupload.FileItem item, EAttachmentSource attachmentSource) throws IOException
IOException
public static Attachment createAttachment(UserContext uc, Mandant man, Benutzer ben, Vorgang vorgang, String fileName, EAttachmentSource attachmentSource, InputStream is) throws IOException
IOException
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.