net.nan21.dnet.module.ad._presenterdelegates.data
Class AttachmentUploadDelegate

java.lang.Object
  extended by net.nan21.dnet.core.presenter.service.AbstractFileUploadService
      extended by net.nan21.dnet.module.ad._presenterdelegates.data.AttachmentUploadDelegate
All Implemented Interfaces:
net.nan21.dnet.core.api.service.IFileUploadService

public class AttachmentUploadDelegate
extends net.nan21.dnet.core.presenter.service.AbstractFileUploadService
implements net.nan21.dnet.core.api.service.IFileUploadService


Field Summary
 
Fields inherited from class net.nan21.dnet.core.presenter.service.AbstractFileUploadService
appContext, systemConfig
 
Constructor Summary
AttachmentUploadDelegate()
           
 
Method Summary
 net.nan21.dnet.core.api.action.IFileUploadResult execute(net.nan21.dnet.core.api.model.IUploadedFileDescriptor fileDescriptor, InputStream inputStream, Map<String,String> uploadParams)
          Save an uploaded file as attachment.
 
Methods inherited from class net.nan21.dnet.core.presenter.service.AbstractFileUploadService
getAppContext, getServiceLocator, getSystemConfig, getWorkflowEngine, setAppContext, setSystemConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.nan21.dnet.core.api.service.IFileUploadService
getSystemConfig, setSystemConfig
 

Constructor Detail

AttachmentUploadDelegate

public AttachmentUploadDelegate()
Method Detail

execute

public net.nan21.dnet.core.api.action.IFileUploadResult execute(net.nan21.dnet.core.api.model.IUploadedFileDescriptor fileDescriptor,
                                                                InputStream inputStream,
                                                                Map<String,String> uploadParams)
                                                         throws Exception
Save an uploaded file as attachment. The p1 parameter is expected to send the ID of the Attachment record to which this upload belongs.

Specified by:
execute in interface net.nan21.dnet.core.api.service.IFileUploadService
Throws:
Exception


Copyright © 2012. All Rights Reserved.