⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jahiaeventgeneratorbaseservice.java

📁 java 写的一个新闻发布系统
💻 JAVA
字号:
////                                   ____.//                       __/\ ______|    |__/\.     _______//            __   .____|    |       \   |    +----+       \//    _______|  /--|    |    |    -   \  _    |    :    -   \_________//   \\______: :---|    :    :           |    :    |         \________>//           |__\---\_____________:______:    :____|____:_____\//                                      /_____|////                 . . . i n   j a h i a   w e   t r u s t . . .//////  JahiaEventGeneratorBaseService//  EV      12.01.2001//////  fireUpdateField( theEvent )//  fireAddContainer( theEvent )//  fireUpdateContainer( theEvent )//  fireDeleteContainer( theEvent )//  fireAddPage( theEvent )//  fireSetRights( theEvent )//  fireLogin( theEvent )//  fireLogout( theEvent )//package org.jahia.services.events;import java.util.*;                             // Vectorimport org.jahia.exceptions.*;              // JahiaExceptionimport org.jahia.data.events.*;             // JahiaEventListenerimport org.jahia.utils.*;                   // JahiaConsoleimport org.jahia.registries.*;              // JahiaListenersRegistrypublic class JahiaEventGeneratorBaseService extends JahiaEventGeneratorService{    private static JahiaEventGeneratorBaseService  theObject;    /***        * constructor        *        */    protected JahiaEventGeneratorBaseService()    {        JahiaConsole.println( "Jahia", "Starting Event Generator Service" );    } // end constructor    /***        * returns an instance of the JahiaEventGeneratorBaseService        *        */    public static synchronized JahiaEventGeneratorBaseService getInstance()    {        if (theObject == null) {            theObject = new JahiaEventGeneratorBaseService();        }        return theObject;    } // end getInstance    public void fireAddField( JahiaEvent theEvent ) throws JahiaException {        JahiaListenersRegistry.getInstance().wakeupListeners( "fieldAdded", theEvent );   }    public void fireUpdateField( JahiaEvent theEvent ) throws JahiaException {        JahiaListenersRegistry.getInstance().wakeupListeners( "fieldUpdated", theEvent );   }    public void fireDeleteField( JahiaEvent theEvent ) throws JahiaException {        JahiaListenersRegistry.getInstance().wakeupListeners( "fieldDeleted", theEvent );   }    public void fireAddContainer( JahiaEvent theEvent ) throws JahiaException  {        JahiaListenersRegistry.getInstance().wakeupListeners( "containerAdded", theEvent ); }    public void fireUpdateContainer( JahiaEvent theEvent ) throws JahiaException {        JahiaListenersRegistry.getInstance().wakeupListeners( "containerUpdated", theEvent );   }    public void fireDeleteContainer( JahiaEvent theEvent ) throws JahiaException {        JahiaListenersRegistry.getInstance().wakeupListeners( "containerDeleted", theEvent );   }    public void fireSetPageProperties( JahiaEvent theEvent ) throws JahiaException {        JahiaListenersRegistry.getInstance().wakeupListeners( "pagePropertiesSet", theEvent );   }    public void fireSetContainerListProperties( JahiaEvent theEvent ) throws JahiaException {        JahiaListenersRegistry.getInstance().wakeupListeners( "containerListPropertiesSet", theEvent );   }    public void fireSetRights( JahiaEvent theEvent ) throws JahiaException {        JahiaListenersRegistry.getInstance().wakeupListeners( "rightsSet", theEvent );   }    public void fireAddPage( JahiaEvent theEvent ) throws JahiaException {      	JahiaListenersRegistry.getInstance().wakeupListeners( "pageAdded", theEvent );      }            public void fireLoadPage( JahiaEvent theEvent ) throws JahiaException {        JahiaListenersRegistry.getInstance().wakeupListeners( "pageLoaded", theEvent );  }    public void fireLogin( JahiaEvent theEvent ) throws JahiaException {        JahiaListenersRegistry.getInstance().wakeupListeners( "userLoggedIn", theEvent );   }    public void fireLogout( JahiaEvent theEvent ) throws JahiaException {        JahiaListenersRegistry.getInstance().wakeupListeners( "userLoggedOut", theEvent );   }    public void fireUpdateTemplate( JahiaEvent theEvent )throws JahiaException {        JahiaListenersRegistry.getInstance().wakeupListeners( "templateUpdated", theEvent );	}} // end JahiaEventGeneratorBaseService

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -