gran.app.adapter.external.attachment
Class BaseSecuredAttachmentAdapter

java.lang.Object
  extended bygran.app.adapter.external.attachment.BaseSecuredAttachmentAdapter
All Implemented Interfaces:
Adapter, SecuredAdapter, SecuredAttachmentAdapter

public class BaseSecuredAttachmentAdapter
extends java.lang.Object
implements SecuredAttachmentAdapter


Constructor Summary
BaseSecuredAttachmentAdapter()
           
 
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)
           
 java.lang.String getDescription()
          Get description of adapter as plain text
 boolean init()
          Initialize adapter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSecuredAttachmentAdapter

public BaseSecuredAttachmentAdapter()
Method Detail

init

public boolean init()
Description copied from interface: Adapter
Initialize adapter. TrackStudio calls this method during startup.

Specified by:
init in interface Adapter
Returns:
true when adapter initialized, false otherwise.

getDescription

public java.lang.String getDescription()
Description copied from interface: Adapter
Get description of adapter as plain text

Specified by:
getDescription in interface Adapter

getAttachmentImpl

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

deleteAttachmentImpl

public void deleteAttachmentImpl(SessionContext sc,
                                 java.lang.String attachmentId)
                          throws GranException
Description copied from interface: SecuredAttachmentAdapter
Deletes attachments. Available via SOAP.

Specified by:
deleteAttachmentImpl in interface SecuredAttachmentAdapter
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
Description copied from interface: SecuredAttachmentAdapter
Creates attachment. Available via SOAP.

Specified by:
createAttachmentImpl in interface SecuredAttachmentAdapter
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
Specified by:
createAttachmentImpl in interface SecuredAttachmentAdapter
Throws:
GranException


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