org.sakaiproject.service.legacy.entity
Interface AttachmentContainerEdit

All Superinterfaces:
AttachmentContainer
All Known Subinterfaces:
AnnouncementMessageHeaderEdit, AssignmentContentEdit, CalendarEventEdit, ChatMessageHeaderEdit, DiscussionMessageHeaderEdit, MailArchiveMessageHeaderEdit, MessageHeaderEdit
All Known Implementing Classes:
BaseAnnouncementService.BaseAnnouncementMessageHeaderEdit, BaseAssignmentService.BaseAssignmentContentEdit, BaseCalendarService.BaseCalendarEventEdit, BaseChatService.BaseChatMessageHeaderEdit, BaseDiscussionService.BaseDiscussionMessageHeaderEdit, BaseMailArchiveService.BaseMailArchiveMessageHeaderEdit, BaseMessageService.BaseMessageHeaderEdit, GenericCalendarImporter.PrototypeEvent

public interface AttachmentContainerEdit
extends AttachmentContainer

AttachmentContainer is the interface for objects that may contain attachments and may modify them.

Version:
$Revision: 2371 $
Author:
University of Michigan, CHEF Software Development Team

Method Summary
 void addAttachment(Reference ref)
          Add an attachment.
 void clearAttachments()
          Clear all attachments.
 void removeAttachment(Reference ref)
          Remove an attachment.
 void replaceAttachments(List attachments)
          Replace the attachment set.
 
Methods inherited from interface org.sakaiproject.service.legacy.entity.AttachmentContainer
getAttachments
 

Method Detail

addAttachment

public void addAttachment(Reference ref)
Add an attachment.

Parameters:
ref - The attachment Reference.

removeAttachment

public void removeAttachment(Reference ref)
Remove an attachment.

Parameters:
ref - The attachment Reference to remove (the one removed will equal this, they need not be ==).

replaceAttachments

public void replaceAttachments(List attachments)
Replace the attachment set.

Parameters:
attachments - A ReferenceVector that will become the new set of attachments.

clearAttachments

public void clearAttachments()
Clear all attachments.