Web Services Developer's Guide → Web Services API Reference → SBM Administrative Web Services → Common Types → Attachment-Access-Type
Attachment-Access-Type indicates the type of attachment on an item. It is used for note, item link, URL, and file attachments. This type is used to determine whether the attachment has a restriction, is unrestricted, or if neither is set.
Name | Type | Description |
---|---|---|
ATTACHACCESS-DEFAULT | string | Restrict the attachment only as specified by user privileges. |
ATTACHACCESS-RESTRICTED | string | Makes the attachment visible only to users who can view the item. |
ATTACHACCESS-UNRESTRICTED | string | Makes the attachment visible to all users who can view the item. |
The Unrestricted status makes the file visible to all users who can view the item. You can set a file to have Default status to restrict the file as specified by user privileges. The Unrestricted status is disabled if you do not have privileges to set file attachments as unrestricted for the selected project or auxiliary table.
The following XML shows Attachment-Access-Type in the <urn:accessType> element of a typical call.
<urn:attachmentContents> <urn:id>16</urn:id> <urn:name>pdf_doc</urn:name> <urn:fileName>relnotes.pdf</urn:fileName> <urn:showAsImage>false</urn:showAsImage> <urn:modificationDateTime></urn:modificationDateTime> <urn:url></urn:url> <urn:accessType>ATTACHACCESS-DEFAULT</urn:accessType> <urn:extendedData> <urn:data> <urn:name></urn:name> <urn:value></urn:value> </urn:data> </urn:extendedData> <urn:contentsBase64></urn:contentsBase64> </urn:attachmentContents>
Copyright © 2007–2015 Serena Software, Inc. All rights reserved.