|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objectplanet.survey.event.EventBusManager
public class EventBusManager
The EventBus is the global event notification mechanism. A number of events are sent by opinio; these are classes in the com.objectplanet.survey.event.events package.
Method Summary | |
---|---|
void |
addListener(IEventListener listener)
Adds a listener to the bus. |
void |
addListener(IEventListener listener,
int busType)
Adds a listener to the bus. |
void |
addListener(IEventListener listener,
int busType,
int eventType)
Adds a listener to the bus. |
void |
addListener(IEventListener listener,
int busType,
int eventType,
long resourceId)
Adds a listener to a specific bus and event type, and a particular resource. |
static EventBusManager |
instance()
Returns or creates the singleton instance of the search engine manager class |
void |
removeListener(IEventListener listener)
Removes a listener from the bus. |
void |
removeListener(IEventListener listener,
int busType)
Removes a listener from the bus, that listens to events on a specific bus. |
void |
removeListener(IEventListener listener,
int busType,
int eventType)
Removes a listener from the bus, that listens to events on a specific bus. |
void |
removeListener(IEventListener listener,
int busType,
int eventType,
long resourceId)
Removes a listener from the bus, that listens to events on a specific bus. |
void |
send(Event event)
Special/internal use only. |
void |
send(Event event,
int busType)
Special/internal use only. |
void |
send(Event event,
int busType,
int eventType)
Sends an event of a specified type on a specific event bus. |
void |
send(Event event,
int busType,
int eventType,
long resourceId)
Sends an event (of specified type) on a specific event bus, for a specific resource (a survey, for example). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BUS_TYPE_SURVEY
public static final int BUS_TYPE_USER
public static final int BUS_TYPE_REPORT
public static final int BUS_TYPE_INVITATION
public static final int BUS_TYPE_SURVEY_MANAGEMENT
public static final int BUS_TYPE_SYSTEM_ADMIN
public static final int BUS_TYPE_PANEL
public static final int EVENT_TYPE_ALL
public static final int EVENT_TYPE_NEW_USER
public static final int EVENT_TYPE_PRE_USER_DELETE
public static final int EVENT_TYPE_USER_DELETED
public static final int EVENT_TYPE_USER_UPDATE
public static final int EVENT_TYPE_USER_LOGIN
public static final int EVENT_TYPE_USER_LOGOUT
public static final int EVENT_TYPE_PRE_SURVEY_PAGE
public static final int EVENT_TYPE_NEW_RESPONDENT
public static final int EVENT_TYPE_RESPONDENT_STORE
public static final int EVENT_TYPE_RESPONDENT_COMPLETE
public static final int EVENT_TYPE_RESPONDENT_DATA_FOUND
public static final int EVENT_TYPE_RESPONSE
public static final int EVENT_TYPE_DISPLAY_QUESTION
public static final int EVENT_TYPE_TRANSIENT_RESPONDENT_COMPLETE
public static final int EVENT_TYPE_ABANDONED_SURVEY_EVENT
public static final int EVENT_TYPE_SURVEY_SAVE
public static final int EVENT_TYPE_NEW_LIVE_RESPONDENT
public static final int EVENT_TYPE_POLL_IMPRESSION
public static final int EVENT_TYPE_DISPLAY_SURVEY_SAVE_SCREEN
public static final int EVENT_TYPE_QUOTA_VALUE_UPDATED
public static final int EVENT_TYPE_QUOTA_REACHED
public static final int EVENT_TYPE_NEW_SURVEY
public static final int EVENT_TYPE_PRE_SURVEY_DELETE
public static final int EVENT_TYPE_SURVEY_DELETED
public static final int EVENT_TYPE_PRE_DELETE_RESPONDENTS
public static final int EVENT_TYPE_POST_DELETE_RESPONDENTS
public static final int EVENT_TYPE_IMPORTED_SURVEY
public static final int EVENT_TYPE_PRE_SIGNUP_SURVEY_DELETE
public static final int EVENT_TYPE_NEW_SIGNUP_SURVEY
public static final int EVENT_TYPE_NEW_SURVEY_FOLDER
public static final int EVENT_TYPE_PRE_SURVEY_FOLDER_DELETE
public static final int EVENT_TYPE_SURVEY_FOLDER_DELETED
public static final int EVENT_TYPE_NEW_QUESTION
public static final int EVENT_TYPE_QUESTION_DELETED
public static final int EVENT_TYPE_NEW_TRANSLATED_SURVEY
public static final int EVENT_TYPE_TRANSLATED_SURVEY_DELETED
public static final int EVENT_TYPE_NEW_REPORT
public static final int EVENT_TYPE_REPORT_DELETED
public static final int EVENT_TYPE_NEW_BRANCH
public static final int EVENT_TYPE_BRANCH_DELETED
public static final int EVENT_TYPE_LOAD_SURVEY
public static final int EVENT_TYPE_RESPONDENTS_EXPORTED
public static final int EVENT_TYPE_SURVEY_BEHAVIOR_UPDATED
public static final int EVENT_TYPE_SURVEY_UPDATED
public static final int EVENT_TYPE_QUESTION_UPDATED
public static final int EVENT_TYPE_QUESTION_MOVED
public static final int EVENT_TYPE_RESPONDENT_DELETED
public static final int EVENT_TYPE_RESPONDENT_REOPENED
public static final int EVENT_TYPE_SURVEY_FOLDER_UPDATED
public static final int EVENT_TYPE_INVITATION_TASK_COMPLETE
public static final int EVENT_TYPE_INVITATION_PRE_INVITEE_DELETE
public static final int EVENT_TYPE_INVITATION_PRE_INVITEE_DELETE_ALL
public static final int EVENT_TYPE_INVITATION_PANELIST_INVITED
public static final int EVENT_TYPE_INVITATION_PRE_DELETE
public static final int EVENT_TYPE_INVITEE_IMPORT
public static final int EVENT_TYPE_PRE_INVITATION_TASK
public static final int EVENT_TYPE_INVITATION_SENT_MANUALLY
public static final int EVENT_TYPE_PRE_SEND_CUSTOM_INVITATION_MSG
public static final int EVENT_TYPE_SYSTEM_INFO_SAVED
public static final int EVENT_TYPE_LICENSES_SAVED
public static final int EVENT_TYPE_UPGRADE_FAILED
public static final int EVENT_TYPE_POST_DELETE_PANELISTS
public static final int EVENT_TYPE_PANELIST_UPDATED_EVENT
public static final int EVENT_TYPE_NEW_PANELIST_EVENT
public static final int EVENT_TYPE_PANELIST_DELETED_EVENT
public static final int EVENT_TYPE_PANELIST_HISTORY_ITEM_SAVED
Method Detail |
---|
public static EventBusManager instance()
public void addListener(IEventListener listener)
listener
- The listener to addpublic void addListener(IEventListener listener, int busType)
listener
- The listener to addbusType
- Event Bus to add the listener topublic void addListener(IEventListener listener, int busType, int eventType)
listener
- The listener to addbusType
- Event Bus to add the listener toeventType
- The event type. The listener will receive events for this type onlypublic void addListener(IEventListener listener, int busType, int eventType, long resourceId)
listener
- The listener to addbusType
- The bus type to add the listener to.eventType
- The event type to add the listener to.resourceId
- the id of the resource associated with the event. Use 0 (zero) for all
recourses.public void removeListener(IEventListener listener)
listener
- The listener to removepublic void removeListener(IEventListener listener, int busType)
surveyManagementListener
- bus_type_survey_management2
- public void removeListener(IEventListener listener, int busType, int eventType)
surveyManagementListener
- bus_type_survey_management2
- public void removeListener(IEventListener listener, int busType, int eventType, long resourceId)
surveyManagementListener
- bus_type_survey_management2
- public void send(Event event)
event
- The eventpublic void send(Event event, int busType)
event
- The event to sendbusType
- Bus to send the event oneventType
- The type of eventresourceId
- Resource id of the entity related to this eventpublic void send(Event event, int busType, int eventType)
event
- busType
- eventType
- public void send(Event event, int busType, int eventType, long resourceId)
event
- The event to sendbusType
- Bus to send the event oneventType
- The type of eventresourceId
- Resource id of the entity related to this event
|
Copyright ? ObjectPlanet Inc. All Rights Reserved. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |