Clearspace API (2.5.29) Core Javadocs

com.jivesoftware.community.event
Class AttachmentEvent

java.lang.Object
  extended by com.jivesoftware.community.event.AttachmentEvent
All Implemented Interfaces:
com.jivesoftware.community.JiveEvent

public class AttachmentEvent
extends Object
implements com.jivesoftware.community.JiveEvent

A class for Attachment events. This class will be passed to AttachmentListeners whenever an attachment event is fired and contains all the pertinent information to the event.


Field Summary
static int ATTACHMENT_ADDED
          Event type for whenever an attachment is added to a document.
static int ATTACHMENT_DELETING
          Event type for whenever an attachment is about to be deleted.
static int ATTACHMENT_DOWNLOADED
          Event type for whenever an attachment was download.
static int ATTACHMENT_MODIFIED
          Event type for whenever an attachment was modified.
 
Constructor Summary
AttachmentEvent(int eventType, AttachmentContentResource attachmentContentResource, Attachment attachment, Map<String,? extends Object> params)
           
AttachmentEvent(int eventType, AttachmentContentResource attachmentContentResource, Attachment attachment, Map<String,? extends Object> params, File file)
           
AttachmentEvent(int eventType, AttachmentContentResource attachmentContentResource, Attachment attachment, Map<String,? extends Object> params, File file, AttachmentManager attachmentManager)
           
 
Method Summary
 Attachment getAttachment()
           
 AttachmentContentResource getAttachmentContentResource()
           
 AttachmentManager getAttachmentManager()
           
 Date getDate()
           
 int getEventType()
           
 File getFile()
           
 Map<String,? extends Object> getParams()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTACHMENT_ADDED

public static final int ATTACHMENT_ADDED
Event type for whenever an attachment is added to a document.

See Also:
Constant Field Values

ATTACHMENT_DELETING

public static final int ATTACHMENT_DELETING
Event type for whenever an attachment is about to be deleted.

See Also:
Constant Field Values

ATTACHMENT_DOWNLOADED

public static final int ATTACHMENT_DOWNLOADED
Event type for whenever an attachment was download.

See Also:
Constant Field Values

ATTACHMENT_MODIFIED

public static final int ATTACHMENT_MODIFIED
Event type for whenever an attachment was modified.

See Also:
Constant Field Values
Constructor Detail

AttachmentEvent

public AttachmentEvent(int eventType,
                       AttachmentContentResource attachmentContentResource,
                       Attachment attachment,
                       Map<String,? extends Object> params)

AttachmentEvent

public AttachmentEvent(int eventType,
                       AttachmentContentResource attachmentContentResource,
                       Attachment attachment,
                       Map<String,? extends Object> params,
                       File file)

AttachmentEvent

public AttachmentEvent(int eventType,
                       AttachmentContentResource attachmentContentResource,
                       Attachment attachment,
                       Map<String,? extends Object> params,
                       File file,
                       AttachmentManager attachmentManager)
Method Detail

getEventType

public int getEventType()
Specified by:
getEventType in interface com.jivesoftware.community.JiveEvent

getAttachmentContentResource

public AttachmentContentResource getAttachmentContentResource()

getAttachment

public Attachment getAttachment()

getParams

public Map<String,? extends Object> getParams()
Specified by:
getParams in interface com.jivesoftware.community.JiveEvent

getDate

public Date getDate()
Specified by:
getDate in interface com.jivesoftware.community.JiveEvent

getFile

public File getFile()

getAttachmentManager

public AttachmentManager getAttachmentManager()

Clearspace Project Page

Copyright © 1999-2007 Jive Software.