com.atlassian.jira.util
Class AttachmentUtils

java.lang.Object
  extended bycom.atlassian.jira.util.AttachmentUtils

public class AttachmentUtils
extends java.lang.Object


Constructor Summary
AttachmentUtils()
           
 
Method Summary
static boolean deleteAttachmentFile(GenericValue attachment)
           
static java.io.File getAttachmentDirectory(GenericValue issue)
           
static java.io.File getAttachmentFile(GenericValue attachment)
           
static java.io.File getTempDirectory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentUtils

public AttachmentUtils()
Method Detail

getAttachmentDirectory

public static java.io.File getAttachmentDirectory(GenericValue issue)
                                           throws GenericEntityException
Parameters:
issue -
Returns:
The issue's attachment directory. This will create it if necessary
Throws:
GenericEntityException

getAttachmentFile

public static java.io.File getAttachmentFile(GenericValue attachment)
                                      throws GenericEntityException
Throws:
GenericEntityException

getTempDirectory

public static java.io.File getTempDirectory()
                                     throws GenericEntityException
Throws:
GenericEntityException

deleteAttachmentFile

public static boolean deleteAttachmentFile(GenericValue attachment)
                                    throws GenericEntityException
Throws:
GenericEntityException