|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IAttachmentSupport
Classes that implement this interface are items that are capable of having attachments added to and removed from them.
| Field Summary | |
|---|---|
static Key |
ATTACHMENTS
Represents the attachments on an item. |
static Key |
HAS_ATTACHMENT
Represents whether the message has attachments. |
static int |
KEYID_ATTACHMENTS
The int ID for the ATTACHMENTS key. |
static int |
KEYID_HAS_ATTACHMENT
The int ID for the HAS_ATTACHMENT key. |
| Method Summary | |
|---|---|
IAttachment |
addAttachment(IAttachmentSource source)
Adds an attachment to an item. |
IAttachment |
getAttachment(int iIndex)
Gets an attachment from the item by its index. |
int |
getAttachmentCount()
Gets the number of attachments on the item. |
IAttachment[] |
getAttachments()
Gets an array of attachments on the message. |
boolean |
hasAttachment()
Determines if the item has at least one attachment. |
| Field Detail |
|---|
static final int KEYID_ATTACHMENTS
int ID for the ATTACHMENTS key.
static final int KEYID_HAS_ATTACHMENT
int ID for the HAS_ATTACHMENT key.
static final Key ATTACHMENTS
static final Key HAS_ATTACHMENT
| Method Detail |
|---|
IAttachment addAttachment(IAttachmentSource source)
throws CollaborationException
source - the attachment source (not null)
CollaborationException - if the attachment could not be added
IAttachment getAttachment(int iIndex)
throws CollaborationException
iIndex - the index of the attachment (>=0)
InvalidArgumentException - if the specified index was out
of range
CollaborationException - if the attachment could not be retrieved
int getAttachmentCount()
throws CollaborationException
>0)
CollaborationException - if the attachment count could not be
retrieved
IAttachment[] getAttachments()
throws CollaborationException
CollaborationException - if the attachments could not be
retrieved
boolean hasAttachment()
throws CollaborationException
true if the item has at least one attachment,
false otherwise
CollaborationException - if the attachment status could not be
determined
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||