com.atlassian.jira.web.util
Class DefaultWebAttachmentManager
java.lang.Object
com.atlassian.jira.web.util.DefaultWebAttachmentManager
- All Implemented Interfaces:
- WebAttachmentManager
- public class DefaultWebAttachmentManager
- extends java.lang.Object
- implements WebAttachmentManager
Method Summary |
ChangeItemBean |
createAttachment(webwork.multipart.MultiPartRequestWrapper requestWrapper,
com.opensymphony.user.User remoteUser,
org.ofbiz.core.entity.GenericValue issue,
java.lang.String fileParamName)
|
boolean |
validateAttachmentIfExists(java.io.File file,
java.lang.String fileName)
|
boolean |
validateAttachmentIfExists(webwork.multipart.MultiPartRequestWrapper requestWrapper,
java.lang.String fileParamName,
boolean required)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultWebAttachmentManager
public DefaultWebAttachmentManager(AttachmentManager attachmentManager)
createAttachment
public ChangeItemBean createAttachment(webwork.multipart.MultiPartRequestWrapper requestWrapper,
com.opensymphony.user.User remoteUser,
org.ofbiz.core.entity.GenericValue issue,
java.lang.String fileParamName)
throws AttachmentException,
org.ofbiz.core.entity.GenericEntityException
- Specified by:
createAttachment
in interface WebAttachmentManager
- Throws:
AttachmentException
org.ofbiz.core.entity.GenericEntityException
validateAttachmentIfExists
public boolean validateAttachmentIfExists(webwork.multipart.MultiPartRequestWrapper requestWrapper,
java.lang.String fileParamName,
boolean required)
throws AttachmentException
- Specified by:
validateAttachmentIfExists
in interface WebAttachmentManager
- Throws:
AttachmentException
validateAttachmentIfExists
public boolean validateAttachmentIfExists(java.io.File file,
java.lang.String fileName)
throws AttachmentException
- Specified by:
validateAttachmentIfExists
in interface WebAttachmentManager
- Returns:
- true if the file exists, false if it doesn't.
- Throws:
AttachmentException
- If the file exists and is not valid.
Copyright © 2002-2005 Atlassian. All Rights Reserved.