@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.
|
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. |
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 attachmentUESAttachmentRTException
attachmentUri
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 attachmentUESAttachmentRTException
UESResult
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
.UESAttachmentRTException
attachmentUri
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
attributeUESAttachmentRTException
attachmentUri
- UESURI of the attachmentattachment
- DTO containing attributes of the checked-in attachmentUESAttachmentRTException
attachmentUri
- UESURI of the attachmentUESAttachmentRTException
attachmentUri
- UESURI of the attachment which is about to be deleted.UESAttachmentRTException
attachmentUri
- UESURI of the attachment whose attributes are to be changed.attachment
- DTO containing the attachment attributes.UESAttachmentRTException