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
 void createAttachmentImpl(java.lang.String sessionId, java.lang.String taskId, java.lang.String originalFileName, javax.activation.DataHandler data)
          Creates attachment.
 void deleteAllAttachmentsImpl(java.lang.String sessionId, java.lang.String taskId)
          Deletes all attachments for specified task.
 void deleteAttachmentImpl(java.lang.String sessionId, java.lang.String taskId, java.lang.String[] fileList)
          Deletes attachments.
 javax.activation.DataHandler getAttachmentImpl(java.lang.String sessionId, 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(java.lang.String sessionId,
                                                      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(java.lang.String sessionId,
                                 java.lang.String taskId,
                                 java.lang.String[] fileList)
                          throws GranException
Description copied from interface: SecuredAttachmentAdapter
Deletes attachments. Available via SOAP.

Specified by:
deleteAttachmentImpl in interface SecuredAttachmentAdapter
Parameters:
sessionId - the session ID
taskId - the task ID
fileList - files for deleting
Throws:
GranException

createAttachmentImpl

public void createAttachmentImpl(java.lang.String sessionId,
                                 java.lang.String taskId,
                                 java.lang.String originalFileName,
                                 javax.activation.DataHandler data)
                          throws GranException
Description copied from interface: SecuredAttachmentAdapter
Creates attachment. Available via SOAP.

Specified by:
createAttachmentImpl in interface SecuredAttachmentAdapter
Parameters:
sessionId - the session ID
taskId - the task ID
originalFileName - filename for attachment
data - a javax.activation.DataHandler instance
Throws:
GranException

deleteAllAttachmentsImpl

public void deleteAllAttachmentsImpl(java.lang.String sessionId,
                                     java.lang.String taskId)
                              throws GranException
Description copied from interface: SecuredAttachmentAdapter
Deletes all attachments for specified task. Available via SOAP.

Specified by:
deleteAllAttachmentsImpl in interface SecuredAttachmentAdapter
Parameters:
sessionId -
taskId -
Throws:
GranException


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