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)
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 ParsedFieldName
getAjaxUUIDFieldName(ParsedFieldName fieldName)
Derives the AJAX UUID field name for the given base field name.static String
getAjaxUUIDFieldName(String fieldName)
Derives the AJAX UUID field name for the given base field name.static String
getFileName(org.apache.commons.fileupload.FileItem item)
static ParsedFieldName
getUUIDFieldName(ParsedFieldName orgFieldName)
Derives the UUID field name for the given base field name.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)
-
getUUIDFieldName
public static ParsedFieldName getUUIDFieldName(ParsedFieldName orgFieldName)
Derives the UUID field name for the given base field name.- Parameters:
orgFieldName
- The base field name, e.g. "upl1" or "upl1_dyn_upl1_3".- Returns:
- The UUID field name, e.g. "upl1.uuid" or "upl1.uuid_dyn_upl1_3_ajax".
-
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
public static String getAjaxUUIDFieldName(String fieldName)
Derives the AJAX UUID field name for the given base field name.- Parameters:
fieldName
- The base field name, e.g. "upl1" or "upl1_dyn_upl1_3".- Returns:
- The AJAX UUID field name, e.g. "upl1.ajaxuuid" or "upl1.ajaxuuid_dyn_upl1_3_ajax".
-
getAjaxUUIDFieldName
public static ParsedFieldName getAjaxUUIDFieldName(ParsedFieldName fieldName)
Derives the AJAX UUID field name for the given base field name.- Parameters:
fieldName
- The base field name, e.g. "upl1" or "upl1_dyn_upl1_3".- Returns:
- The AJAX UUID field name, e.g. "upl1.ajaxuuid" or "upl1.ajaxuuid_dyn_upl1_3_ajax".
-
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
-
-