public interface IAttachment extends IBaseField
Modifier and Type | Method and Description |
---|---|
com4j.Com4jObject |
attachmentStorage()
The ExtendedStorage object of this attachment.
|
Object |
data()
If the attachment is a file, an array of bytes.
|
String |
description()
The attachment description.
|
void |
description(String pVal)
The attachment description.
|
String |
directLink()
The link or path to the attachment.
|
String |
fileName()
If a file, the file location.
|
void |
fileName(String pVal)
If a file, the file location.
|
int |
fileSize()
The attachment file size in bytes.
|
Date |
lastModified()
The last modified time.
|
void |
load(boolean synchronize,
com4j.Holder<String> rootPath)
Downloads an attachment file to a client machine.
|
String |
name(int viewFormat)
The attachment name.
|
void |
rename(String newName)
Renames the attachment on the server.
|
void |
save(boolean synchronize)
Uploads a file to the server.
|
String |
serverFileName()
The attachment file name on the server machine.
|
int |
type()
The attachment type.
|
void |
type(int pVal)
The attachment type.
|
autoPost, autoPost, field, field, id, modified, post, refresh, undo, virtual
isLocked, lockObject, unLockObject
int type()
The attachment type. Either File or URL.
Getter method for the COM property "Type"
void type(int pVal)
The attachment type. Either File or URL.
Setter method for the COM property "Type"
pVal
- Mandatory int parameter.String name(@DefaultValue(value="0") int viewFormat)
The attachment name.
Getter method for the COM property "Name"
viewFormat
- Optional parameter. Default value is 0String description()
The attachment description.
Getter method for the COM property "Description"
void description(String pVal)
The attachment description.
Setter method for the COM property "Description"
pVal
- Mandatory java.lang.String parameter.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"
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"
void fileName(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"
pVal
- Mandatory java.lang.String parameter.void load(boolean synchronize, com4j.Holder<String> rootPath)
Downloads an attachment file to a client machine.
synchronize
- Mandatory boolean parameter.rootPath
- Mandatory Holdervoid save(boolean synchronize)
Uploads a file to the server.
synchronize
- Mandatory boolean parameter.com4j.Com4jObject attachmentStorage()
The ExtendedStorage object of this attachment. Applies only to file attachments.
Getter method for the COM property "AttachmentStorage"
String directLink()
The link or path to the attachment.
Getter method for the COM property "DirectLink"
String serverFileName()
The attachment file name on the server machine.
Getter method for the COM property "ServerFileName"
int fileSize()
The attachment file size in bytes.
Getter method for the COM property "FileSize"
Date lastModified()
The last modified time.
Getter method for the COM property "LastModified"
void rename(String newName)
Renames the attachment on the server. The attachment must be uploaded before calling this method.
newName
- Mandatory java.lang.String parameter.Copyright © 2020. All rights reserved.