@MTOM
public class DocumentAttachmentJwsImpl
extends eu.europa.ec.sfc2014.frontoffice.jws.DocumentAttachmentCommonJwsImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOCUMENT_ATTACHMENT_SERVICE |
static java.lang.String[] |
MTOM_REQUEST_METHODS |
Constructor and Description |
---|
DocumentAttachmentJwsImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
addAttachment(java.lang.Long documentId,
SfcDocumentAttachmentDTO attachment,
javax.activation.DataHandler data)
This operation adds an attachment + actual Content to an existing document.
|
javax.activation.DataHandler |
getAttachmentContent(java.lang.Long attachmentId)
This operation reads an attachment Content.
|
void |
hideAttachment(java.lang.Long attachmentId)
This operation hides a document attachment that was previously sent to the commission/member state.
|
void |
removeAttachment(java.lang.Long attachmentId)
This operation removes an existing document attachment.
|
void |
reValidateAttachment(java.lang.Long attachmentId)
This operation re-validates a document attachment that was previously found invalid.
|
void |
showAttachment(java.lang.Long attachmentId)
This operation shows a hidden document attachment that was previously sent to the commission/member state.
|
java.lang.Long |
updateAttachment(SfcDocumentAttachmentDTO attachment,
javax.activation.DataHandler data)
This operation updates an attachment + the attachments Content.
|
public static final java.lang.String DOCUMENT_ATTACHMENT_SERVICE
public static final java.lang.String[] MTOM_REQUEST_METHODS
public javax.activation.DataHandler getAttachmentContent(java.lang.Long attachmentId) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
This operation may be called if the client wants to read the actual attachment or to verify a previously uploaded attachment Content.
The client must know the attachment identifier. The attachment will be returned by the readDocument and addAttachment.
attachmentId
- eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
public java.lang.Long addAttachment(java.lang.Long documentId, SfcDocumentAttachmentDTO attachment, javax.activation.DataHandler data) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
This method is not valid for commission documents having an ARES Number. These type of documents only have references to the ARES fileids and do not actually upload the document.
documentId
- the id of the document under which the attachment will be addedattachment
- the attachment to adddata
- the mandatory fileDataeu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
- in case an error occurspublic java.lang.Long updateAttachment(SfcDocumentAttachmentDTO attachment, javax.activation.DataHandler data) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
This method is not valid for commission documents having an ARES Number. These type of documents only have references to the ARES fileids and do not actually upload the document.
attachment
- the attachment to update (search will be done based on attachmentId)data
- the filedataeu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
- in case an error occurspublic void removeAttachment(java.lang.Long attachmentId) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
This method is not valid for commission documents having an ARES Number. These type of documents only have references to the ARES fileids and do not actually upload the document.
attachmentId
- the id of the attachment that needs to be removed.eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
- when an error occurspublic void hideAttachment(java.lang.Long attachmentId) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
hideAttachment
in class eu.europa.ec.sfc2014.frontoffice.jws.DocumentAttachmentCommonJwsImpl
attachmentId
- the attachment Id to hide.eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
- when an error occurspublic void showAttachment(java.lang.Long attachmentId) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
showAttachment
in class eu.europa.ec.sfc2014.frontoffice.jws.DocumentAttachmentCommonJwsImpl
attachmentId
- the id of the attachment to show.eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
- when an error occurspublic void reValidateAttachment(java.lang.Long attachmentId) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
reValidateAttachment
in class eu.europa.ec.sfc2014.frontoffice.jws.DocumentAttachmentCommonJwsImpl
attachmentId
- the attachment Id to re-validate.eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
- when an error occursCopyright © 2024. All rights reserved.