org.kuali.rice.kew.notes.service.impl
Class AttachmentServiceImpl

java.lang.Object
  extended by org.kuali.rice.kew.notes.service.impl.AttachmentServiceImpl
All Implemented Interfaces:
AttachmentService

public class AttachmentServiceImpl
extends Object
implements AttachmentService

Implementation of the AttachmentService.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
private static String ATTACHMENT_PREPEND
           
private  String attachmentDir
           
protected  org.apache.log4j.Logger LOG
           
 
Constructor Summary
AttachmentServiceImpl()
           
 
Method Summary
private  void createStorageDirIfNecessary()
           
 void deleteAttachedFile(Attachment attachment)
           
 File findAttachedFile(Attachment attachment)
           
 String getAttachmentDir()
           
 void persistAttachedFileAndSetAttachmentBusinessObjectValue(Attachment attachment)
           
 void setAttachmentDir(String attachmentDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected final org.apache.log4j.Logger LOG

ATTACHMENT_PREPEND

private static final String ATTACHMENT_PREPEND
See Also:
Constant Field Values

attachmentDir

private String attachmentDir
Constructor Detail

AttachmentServiceImpl

public AttachmentServiceImpl()
Method Detail

persistAttachedFileAndSetAttachmentBusinessObjectValue

public void persistAttachedFileAndSetAttachmentBusinessObjectValue(Attachment attachment)
                                                            throws Exception
Specified by:
persistAttachedFileAndSetAttachmentBusinessObjectValue in interface AttachmentService
Throws:
Exception

findAttachedFile

public File findAttachedFile(Attachment attachment)
                      throws Exception
Specified by:
findAttachedFile in interface AttachmentService
Throws:
Exception

deleteAttachedFile

public void deleteAttachedFile(Attachment attachment)
                        throws Exception
Specified by:
deleteAttachedFile in interface AttachmentService
Throws:
Exception

createStorageDirIfNecessary

private void createStorageDirIfNecessary()

getAttachmentDir

public String getAttachmentDir()

setAttachmentDir

public void setAttachmentDir(String attachmentDir)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.