1 13 19 package org.jahia.data.events; 20 21 import java.util.Date ; 22 import java.util.EventObject ; 23 24 import org.jahia.data.JahiaData; 25 import org.jahia.params.ParamBean; 26 27 public class JahiaEvent extends EventObject { 28 29 private ParamBean jParams; 30 private Object theObj; 31 private long eventTime; 32 private JahiaData jData; 35 45 public JahiaEvent (Object source, 46 ParamBean jParams, 47 JahiaData jData, 48 Object theObj) { 49 super(source); 50 this.jParams = jParams; 51 this.eventTime = (new Date ()).getTime(); 52 this.theObj = theObj; 53 this.jData = jData; 54 } 56 65 public JahiaEvent (Object source, 66 ParamBean jParams, 67 Object theObj) { 68 super(source); 69 this.jParams = jParams; 70 this.eventTime = (new Date ()).getTime(); 71 this.theObj = theObj; 72 this.jData = null; 73 } 75 public ParamBean getParams () { 76 return jParams; 77 } 78 79 public Object getObject () { 80 return theObj; 81 } 82 83 public long getEventTime () { 84 return eventTime; 85 } 86 87 public JahiaData getJahiaData () { 88 return jData; 89 } 90 91 } | Popular Tags |