本文整理了Java中org.jboss.seam.core.Events
类的一些代码示例,展示了Events
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Events
类的具体详情如下:
包路径:org.jboss.seam.core.Events
类名称:Events
[英]Support for Seam component-driven events
[中]支持Seam组件驱动的事件
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-contentview-jsf
protected void raiseEvent(String eventName, Object... params) {
if (Events.exists()) {
Events.instance().raiseEvent(eventName, params);
}
}
代码示例来源:origin: org.jboss.seam/jboss-seam
/**
* Raise an event that is to be processed after the current transaction
* ends
*
* @param type the event type
* @param parameters parameters to be passes to the listener method
*/
public void raiseTransactionCompletionEvent(String type, Object... parameters)
{
getDispatcher().scheduleTransactionCompletionEvent(type, parameters);
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
/**
* Dispatches an event to get interested components informed when a changeable document was created (thus not saved)
* and before the form is displayed.
*/
public static void raiseEventsOnDocumentCreate(DocumentModel document) {
Events.instance().raiseEvent(EventNames.NEW_DOCUMENT_CREATED);
}
代码示例来源:origin: org.jboss.seam/jboss-seam
protected Events getEvents()
{
return Events.instance();
}
代码示例来源:origin: org.jboss.seam/jboss-seam
protected void raiseEvent(String type, Object... parameters)
{
getEvents().raiseEvent(type, parameters);
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core
protected void notifyChildrenChanged(DocumentModel containerDocument) {
if (containerDocument != null) {
Events.instance().raiseEvent(DOCUMENT_CHILDREN_CHANGED, containerDocument);
}
}
代码示例来源:origin: org.jboss.seam/jboss-seam
public static boolean exists()
{
return Contexts.isEventContextActive() && instance()!=null;
}
代码示例来源:origin: org.jboss.seam/jboss-seam
public void remove(String name)
{
if ( Events.exists() ) Events.instance().raiseEvent("org.jboss.seam.preRemoveVariable." + name);
map.remove(name);
if ( Events.exists() ) Events.instance().raiseEvent("org.jboss.seam.postRemoveVariable." + name);
}
代码示例来源:origin: org.jboss.seam/jboss-seam
protected void notLoggedIn()
{
// TODO - Deprecated, remove for next major release
Events.instance().raiseEvent("org.jboss.seam.notLoggedIn");
Events.instance().raiseEvent(Identity.EVENT_NOT_LOGGED_IN);
}
代码示例来源:origin: org.jboss.seam/jboss-seam
/**
* Raise an event that is to be processed after successful completion of
* the current transaction
*
* @param type the event type
* @param parameters parameters to be passes to the listener method
*/
public void raiseTransactionSuccessEvent(String type, Object... parameters)
{
getDispatcher().scheduleTransactionSuccessEvent(type, parameters);
}
代码示例来源:origin: org.jboss.seam/jboss-seam
public void setUsername(String username)
{
if (this.username != username && (this.username == null || !this.username.equals(username)))
{
this.username = username;
invalid = false;
if (Events.exists()) Events.instance().raiseEvent(EVENT_CREDENTIALS_UPDATED);
}
}
代码示例来源:origin: org.jboss.seam/jboss-seam
protected void raiseBeginEvent(String pageflowDefinitionName)
{
Events.instance().raiseEvent("org.jboss.seam.beginPageflow." + pageflowDefinitionName);
Events.instance().raiseEvent("org.jboss.seam.beginPageflow");
}
代码示例来源:origin: org.jboss.seam/jboss-seam
/**
* Raise an event that is to be processed asynchronously
*
* @param type the event type
* @param parameters parameters to be passes to the listener method
*/
public void raiseAsynchronousEvent(String type, Object... parameters)
{
getDispatcher().scheduleAsynchronousEvent(type, parameters);
}
代码示例来源:origin: org.jboss.seam/jboss-seam
/**
* Clears any roles added by calling addRole() while not authenticated.
* This method may be overridden by a subclass if different
* pre-authentication logic should occur.
*/
protected void preAuthenticate()
{
preAuthenticationRoles.clear();
if (Events.exists()) Events.instance().raiseEvent(EVENT_PRE_AUTHENTICATE);
}
代码示例来源:origin: org.jboss.seam/jboss-seam
@Override
protected void process()
{
Events.instance().raiseEvent(type, parameters);
}
代码示例来源:origin: org.jboss.seam/jboss-seam
/**
* Raise an event that is to be processed according to a "schedule"
*
* @see TimerSchedule (EJB, quartz or JDK timer service)
* @see CronSchedule (quartz timer service only)
*
* @param type the event type
* @param schedule the schedule object, specific to the dispatcher strategy
* @param parameters parameters to be passes to the listener method
*/
public void raiseTimedEvent(String type, Schedule schedule, Object... parameters)
{
getDispatcher().scheduleTimedEvent(type, schedule, parameters);
}
代码示例来源:origin: org.jboss.seam/jboss-seam
public void setPassword(String password)
{
if (this.password != password && (this.password == null || !this.password.equals(password)))
{
this.password = password;
invalid = false;
if (Events.exists()) Events.instance().raiseEvent(EVENT_CREDENTIALS_UPDATED);
}
}
代码示例来源:origin: opentoutatice-ecm.platform/opentoutatice-ecm-platform-web
/**
* Permet de bien gérer le rafraîchissement de l'IHM lors de la circulation entre les sous-onglets
*/
public void notifySubTabSelectionChanged() {
Events.instance().raiseEvent(ToutaticeGlobalConst.CST_EVENT_SUB_TAB_SELECTION_CHANGED, "");
}
代码示例来源:origin: org.jboss.seam/jboss-seam
public void remove(String name)
{
if ( Events.exists() ) Events.instance().raiseEvent("org.jboss.seam.preRemoveVariable." + name);
additions.remove(name);
removals.add(name);
if ( Events.exists() ) Events.instance().raiseEvent("org.jboss.seam.postRemoveVariable." + name);
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
protected void fireSeamEvent(String eventName) {
Events evtManager = Events.instance();
evtManager.raiseEvent(eventName);
}
内容来源于网络,如有侵权,请联系作者删除!