gran.app.adapter.kernel.attachment
Interface AttachmentAdapter

All Superinterfaces:
Adapter, KernelAdapter
All Known Implementing Classes:
BaseAttachmentAdapter

public interface AttachmentAdapter
extends KernelAdapter

This adapter used for attachment management.


Method Summary
 boolean buttonClickedImpl(java.lang.String name, com.oreilly.servlet.MultipartRequest multipartRequest, boolean result)
          Check that button clicked.
 void deleteAllAttachmentsImpl(java.lang.String taskid)
          Delete attachment
 void deleteAttachmentsImpl(java.lang.String taskid, com.oreilly.servlet.MultipartRequest multipartRequest)
          Delete attachment
 java.util.Collection getAttachmentsImpl(java.lang.String taskid, java.util.Collection result)
          Get attachment list for task
 void saveAttachmentImpl(java.lang.String taskid, com.oreilly.servlet.MultipartRequest multipartRequest)
          Save attachment
 void saveAttachmentsFromMessageImpl(java.util.Map attaches, java.lang.String userId, java.lang.String taskId)
           
 
Methods inherited from interface gran.app.adapter.Adapter
getDescription, init
 

Method Detail

getAttachmentsImpl

public java.util.Collection getAttachmentsImpl(java.lang.String taskid,
                                               java.util.Collection result)
                                        throws gran.exception.GranException
Get attachment list for task

Throws:
gran.exception.GranException

buttonClickedImpl

public boolean buttonClickedImpl(java.lang.String name,
                                 com.oreilly.servlet.MultipartRequest multipartRequest,
                                 boolean result)
                          throws gran.exception.GranException
Check that button clicked. This method does not relate to attachments, but useful for proccesing of MultipartRequest forms

Parameters:
name - - button name
Throws:
gran.exception.GranException

deleteAttachmentsImpl

public void deleteAttachmentsImpl(java.lang.String taskid,
                                  com.oreilly.servlet.MultipartRequest multipartRequest)
                           throws gran.exception.GranException
Delete attachment

Parameters:
taskid - - task
multipartRequest - - contains info about deleted attachments
Throws:
gran.exception.GranException

saveAttachmentImpl

public void saveAttachmentImpl(java.lang.String taskid,
                               com.oreilly.servlet.MultipartRequest multipartRequest)
                        throws gran.exception.GranException
Save attachment

Parameters:
taskid - - task
multipartRequest -
Throws:
gran.exception.GranException

deleteAllAttachmentsImpl

public void deleteAllAttachmentsImpl(java.lang.String taskid)
                              throws gran.exception.GranException
Delete attachment

Parameters:
taskid - - task
Throws:
gran.exception.GranException

saveAttachmentsFromMessageImpl

public void saveAttachmentsFromMessageImpl(java.util.Map attaches,
                                           java.lang.String userId,
                                           java.lang.String taskId)
                                    throws gran.exception.GranException
Throws:
gran.exception.GranException


Copyright © 2002-2003 TrackStudio, Ltd. All Rights Reserved.