1 16 package org.apache.cocoon.portal.event.impl; 17 18 import org.apache.cocoon.portal.coplet.CopletInstanceData; 19 import org.apache.cocoon.portal.event.ComparableEvent; 20 import org.apache.cocoon.portal.event.CopletInstanceEvent; 21 import org.apache.cocoon.portal.event.Event; 22 23 31 public abstract class CopletStatusEvent 32 implements Event, ComparableEvent, CopletInstanceEvent { 33 34 protected CopletInstanceData coplet; 35 36 public CopletInstanceData getCopletInstanceData() { 37 return this.coplet; 38 } 39 40 public void setCopletInstanceData(CopletInstanceData data) { 41 this.coplet = data; 42 } 43 44 public boolean equalsEvent(ComparableEvent event) { 45 if (event instanceof CopletStatusEvent) { 46 return ((CopletStatusEvent)event).getCopletInstanceData().getId().equals( this.coplet.getId() ); 47 } 48 return false; 49 } 50 51 54 public Object getTarget() { 55 return this.coplet; 56 } 57 58 } 59 | Popular Tags |