Interface IAttachment
- 
- All Superinterfaces:
- com4j.Com4jObject,- IBaseField,- IObjectLockingSupport
 
 public interface IAttachment extends IBaseField Represents a single file or Internet address attached to a field object.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description com4j.Com4jObjectattachmentStorage()The ExtendedStorage object of this attachment.java.lang.Objectdata()If the attachment is a file, an array of bytes.java.lang.Stringdescription()The attachment description.voiddescription(java.lang.String pVal)The attachment description.java.lang.StringdirectLink()The link or path to the attachment.java.lang.StringfileName()If a file, the file location.voidfileName(java.lang.String pVal)If a file, the file location.intfileSize()The attachment file size in bytes.java.util.DatelastModified()The last modified time.voidload(boolean synchronize, com4j.Holder<java.lang.String> rootPath)Downloads an attachment file to a client machine.java.lang.Stringname(int viewFormat)The attachment name.voidrename(java.lang.String newName)Renames the attachment on the server.voidsave(boolean synchronize)Uploads a file to the server.java.lang.StringserverFileName()The attachment file name on the server machine.inttype()The attachment type.voidtype(int pVal)The attachment type.- 
Methods inherited from interface com4j.Com4jObjectadvise, dispose, equals, getComThread, getIUnknownPointer, getPointer, getPtr, hashCode, is, queryInterface, setName, toString
 - 
Methods inherited from interface step.repository.alm.otaclient.IBaseFieldautoPost, autoPost, field, field, id, modified, post, refresh, undo, virtual
 - 
Methods inherited from interface step.repository.alm.otaclient.IObjectLockingSupportisLocked, lockObject, unLockObject
 
- 
 
- 
- 
- 
Method Detail- 
typeint type() The attachment type. Either File or URL. Getter method for the COM property "Type" - Returns:
- Returns a value of type int
 
 - 
typevoid type(int pVal) The attachment type. Either File or URL. Setter method for the COM property "Type" - Parameters:
- pVal- Mandatory int parameter.
 
 - 
namejava.lang.String name(@DefaultValue("0") int viewFormat)The attachment name. Getter method for the COM property "Name" - Parameters:
- viewFormat- Optional parameter. Default value is 0
- Returns:
- Returns a value of type java.lang.String
 
 - 
descriptionjava.lang.String description() The attachment description. Getter method for the COM property "Description" - Returns:
- Returns a value of type java.lang.String
 
 - 
descriptionvoid description(java.lang.String pVal) The attachment description. Setter method for the COM property "Description" - Parameters:
- pVal- Mandatory java.lang.String parameter.
 
 - 
datajava.lang.Object data() If the attachment is a file, an array of bytes. If a reference to file, the path or URL. Getter method for the COM property "Data" - Returns:
- Returns a value of type java.lang.Object
 
 - 
fileNamejava.lang.String fileName() If a file, the file location. If a virtual file, the location for the attachment before it is uploaded to the server. If a URL, the link address. Getter method for the COM property "FileName" - Returns:
- Returns a value of type java.lang.String
 
 - 
fileNamevoid fileName(java.lang.String pVal) If a file, the file location. If a virtual file, the location for the attachment before it is uploaded to the server. If a URL, the link address. Setter method for the COM property "FileName" - Parameters:
- pVal- Mandatory java.lang.String parameter.
 
 - 
loadvoid load(boolean synchronize, com4j.Holder<java.lang.String> rootPath)Downloads an attachment file to a client machine. - Parameters:
- synchronize- Mandatory boolean parameter.
- rootPath- Mandatory Holder- parameter. 
 
 - 
savevoid save(boolean synchronize) Uploads a file to the server. - Parameters:
- synchronize- Mandatory boolean parameter.
 
 - 
attachmentStoragecom4j.Com4jObject attachmentStorage() The ExtendedStorage object of this attachment. Applies only to file attachments. Getter method for the COM property "AttachmentStorage" - Returns:
- Returns a value of type com4j.Com4jObject
 
 - 
directLinkjava.lang.String directLink() The link or path to the attachment. Getter method for the COM property "DirectLink" - Returns:
- Returns a value of type java.lang.String
 
 - 
serverFileNamejava.lang.String serverFileName() The attachment file name on the server machine. Getter method for the COM property "ServerFileName" - Returns:
- Returns a value of type java.lang.String
 
 - 
fileSizeint fileSize() The attachment file size in bytes. Getter method for the COM property "FileSize" - Returns:
- Returns a value of type int
 
 - 
lastModifiedjava.util.Date lastModified() The last modified time. Getter method for the COM property "LastModified" - Returns:
- Returns a value of type java.util.Date
 
 - 
renamevoid rename(java.lang.String newName) Renames the attachment on the server. The attachment must be uploaded before calling this method. - Parameters:
- newName- Mandatory java.lang.String parameter.
 
 
- 
 
-