org.itracker.web.util
Class AttachmentUtilities

java.lang.Object
  extended by org.itracker.web.util.AttachmentUtilities

public class AttachmentUtilities
extends Object


Constructor Summary
AttachmentUtilities()
           
 
Method Summary
static Issue addAttachment(Issue issue, Project project, User user, IssueForm form, ITrackerServices services, org.apache.struts.action.ActionMessages messages)
          Adds an attachment to issue.
static boolean checkFile(org.apache.struts.upload.FormFile file, ITrackerServices services)
          Deprecated. use validate(FormFile, ITrackerServices) instead for more detailed messages
static String getCHAR_ENCODING()
           
static String getCONTENT_TYPE()
           
static org.apache.struts.action.ActionMessages validate(org.apache.struts.upload.FormFile file, ITrackerServices services)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentUtilities

public AttachmentUtilities()
Method Detail

checkFile

public static boolean checkFile(org.apache.struts.upload.FormFile file,
                                ITrackerServices services)
Deprecated. use validate(FormFile, ITrackerServices) instead for more detailed messages

Parameters:
file -
services -
Returns:

addAttachment

public static Issue addAttachment(Issue issue,
                                  Project project,
                                  User user,
                                  IssueForm form,
                                  ITrackerServices services,
                                  org.apache.struts.action.ActionMessages messages)
Adds an attachment to issue.

Parameters:
issue -
project -
user -
form -
services -
messages -
Returns:
updated issue
Throws:
Exception

validate

public static org.apache.struts.action.ActionMessages validate(org.apache.struts.upload.FormFile file,
                                                               ITrackerServices services)

getCONTENT_TYPE

public static String getCONTENT_TYPE()

getCHAR_ENCODING

public static String getCHAR_ENCODING()


Copyright © 2002-2012 itracker. All Rights Reserved.