@UESService public interface UESAttachment
| Modifier and Type | Field and Description | 
|---|---|
static UESURI | 
BETYPE_ATTACHMENT
URI of attachment business entity. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
UESURI | 
create(UESURI artifactUri,
This command creates a new attachment to the specified artifact. 
 | 
void | 
delete(UESURI attachmentUri)
This command deletes the attachment from the system. 
 | 
void | 
deleteVersion(UESURI attachmentUri,
Deletes an attachment version by provided ID. 
 | 
UESAttachmentStreamHandler | 
getAttachmentData(UESURI attachmentUri)
Command returns stream handler containing data content of the attachment. 
 | 
UESResultList<UESAttachmentAttributes,UESAttachmentGetAttachmentList> | 
getAttachmentList(UESURI artifactUri,
Retrieves a  
UESResult list of attachments for the artifact
 specified by the artifactUri parameter. | 
UESAttachmentAttributes | 
getAttributes(UESURI attachmentUri)
Returns attributes representing the attachment specified by the
  
attachmentUri attribute. | 
UESAttachmentVersionAttributes | 
getVersionAttributes(UESURI attachmentUri,
Returns attributes an attachment version by provided ID. 
 | 
UESAttachmentStreamHandler | 
getVersionData(UESURI attachmentUri,
Retreives the data of the specified attachment version. 
 | 
UESResultList<UESAttachmentVersionAttributes,UESAttachmentGetVersionList> | 
getVersionList(UESURI attachmentUri,
Returns a list of version for the specified attachment. 
 | 
void | 
checkIn(UESURI attachmentUri,
This command updates the attached file in the system and unlocks it by
 default. 
 | 
UESAttachmentStreamHandler | 
checkOut(UESURI attachmentUri,
Command locks the attachment specified by the  
attachmentUri
 attribute. | 
UESURI | 
setAttributes(UESURI attachmentUri,
This command updates basic attributes of an attachment. 
 | 
artifactUri - UESURI of the artifact where the new attachment is
          createdattachment - DTO containing attributes of a new attachmentUESAttachmentRTExceptionattachmentUri attribute. If the attachment is locked by the
 current user, this command returns attributes of the private version. If
 the attachment is locked by another user (or if the attachment is
 unlocked), the command returns attributes of the public version. The
 command does not change the state of the attachment or its lock in the
 system.attachmentUri - UESURI of the attachmentUESAttachmentRTExceptionUESResult list of attachments for the artifact
 specified by the artifactUri parameter. The resulting
 attachment list is filtered according to the criteria provided by the
 criteria attribute. These criteria specify the page to return
 and name and code filters. The list is sorted (ascending) according to the
 attachment name and code.artifactUri - UESURI of the artifact to get the list of attachments
          from.criteria - DTO containing paging and filtering criteria.
            Available parameters are: name, code, locked and lockTime.UESAttachmentRTExceptionattachmentUri
 attribute. If the operation is successful or if the attachment is already
 locked by the current user, attachment stream handler or null is returned
 depending on the options set in the attribute options. If the
 attachment cannot be locked because the attachment is locked by another
 user, the command will fail.attachmentUri - UESURI of the attachmentoptions - DTO with options containing a flag whether to return the
          stream with attachment dataoptions attributeUESAttachmentRTExceptionattachmentUri - UESURI of the attachmentattachment - DTO containing attributes of the checked-in attachmentUESAttachmentRTExceptionattachmentUri - UESURI of the attachmentUESAttachmentRTExceptionattachmentUri - UESURI of the attachment which is about to be deleted.UESAttachmentRTExceptionattachmentUri - UESURI of the attachment whose attributes are to be changed.attachment - DTO containing the attachment attributes.UESAttachmentRTExceptionattachmentUri - UESURI of the attachment whose version's attributes are going to be retrieved.versionAttributes - Object containing id of the attachment version, whose attributes are going to be retrieved.UESAttachmentRTExceptionattachmentUri - UESURI of the attachment whose versions are going to be listed.versionCriteria - Object containing criteria for listing attachment versions.UESAttachmentRTExceptionattachmentUri - UESURI of the attachment whose version is going to be deleted.version - DTO containing ID of the version which is to be deleted.UESAttachmentRTExceptionattachmentUri - UESURI of the attachment whose version is going to be retrieved.version - Id of the attachment version, which data are going to be retrieved. Not null.UESAttachmentRTException