|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgran.app.adapter.external.attachment.BaseSecuredAttachmentAdapter
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 |
public BaseSecuredAttachmentAdapter()
Method Detail |
public boolean init()
Adapter
init
in interface Adapter
public java.lang.String getDescription()
Adapter
getDescription
in interface Adapter
public javax.activation.DataHandler getAttachmentImpl(SessionContext sc, java.lang.String taskId, java.lang.String fileName, javax.activation.DataHandler result) throws GranException
getAttachmentImpl
in interface SecuredAttachmentAdapter
GranException
public void deleteAttachmentImpl(SessionContext sc, java.lang.String attachmentId) throws GranException
SecuredAttachmentAdapter
deleteAttachmentImpl
in interface SecuredAttachmentAdapter
sc
-
GranException
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
SecuredAttachmentAdapter
createAttachmentImpl
in interface SecuredAttachmentAdapter
sc
- taskId
- the task IDname
- filename for attachmentdata
- a javax.activation.DataHandler instance
GranException
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
createAttachmentImpl
in interface SecuredAttachmentAdapter
GranException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |