jahiaeventgeneratorbaseservice.java

来自「java 写的一个新闻发布系统」· Java 代码 · 共 122 行

JAVA
122
字号
////                                   ____.//                       __/\ ______|    |__/\.     _______//            __   .____|    |       \   |    +----+       \//    _______|  /--|    |    |    -   \  _    |    :    -   \_________//   \\______: :---|    :    :           |    :    |         \________>//           |__\---\_____________:______:    :____|____:_____\//                                      /_____|////                 . . . 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 + =
减小字号Ctrl + -
显示快捷键?