gran.app.adapter.external
Interface SecuredAttachmentAdapter

All Superinterfaces:
Adapter, SecuredAdapter
All Known Implementing Classes:
BaseSecuredAttachmentAdapter

public interface SecuredAttachmentAdapter
extends SecuredAdapter

This adapter used for attachment management.


Method Summary
 java.lang.String createAttachmentImpl(SessionContext sc, java.lang.String taskId, java.lang.String name, java.lang.String description, javax.activation.DataHandler data, boolean sendMail)
          Creates attachment.
 java.lang.String createAttachmentImpl(SessionContext sc, java.lang.String taskId, java.lang.String name, java.lang.String description, org.apache.struts.upload.FormFile formFile)
           
 void deleteAttachmentImpl(SessionContext sc, java.lang.String attachmentId)
          Deletes attachments.
 javax.activation.DataHandler getAttachmentImpl(SessionContext sc, java.lang.String taskId, java.lang.String fileName, javax.activation.DataHandler result)
           
 
Methods inherited from interface gran.app.adapter.Adapter
getDescription, init
 

Method Detail

deleteAttachmentImpl

public void deleteAttachmentImpl(SessionContext sc,
                                 java.lang.String attachmentId)
                          throws GranException
Deletes attachments. Available via SOAP.

Parameters:
sc -
Throws:
GranException

createAttachmentImpl

public java.lang.String createAttachmentImpl(SessionContext sc,
                                             java.lang.String taskId,
                                             java.lang.String name,
                                             java.lang.String description,
                                             javax.activation.DataHandler data,
                                             boolean sendMail)
                                      throws GranException
Creates attachment. Available via SOAP.

Parameters:
sc -
taskId - the task ID
name - filename for attachment
data - a javax.activation.DataHandler instance
Throws:
GranException

createAttachmentImpl

public java.lang.String createAttachmentImpl(SessionContext sc,
                                             java.lang.String taskId,
                                             java.lang.String name,
                                             java.lang.String description,
                                             org.apache.struts.upload.FormFile formFile)
                                      throws GranException
Throws:
GranException

getAttachmentImpl

public javax.activation.DataHandler getAttachmentImpl(SessionContext sc,
                                                      java.lang.String taskId,
                                                      java.lang.String fileName,
                                                      javax.activation.DataHandler result)
                                               throws GranException
Throws:
GranException


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