org.gcube.portlets.user.homelibrary.home.workspace.events.filter
Class WorkspaceAreaEventFilter

java.lang.Object
  extended by org.gcube.portlets.user.homelibrary.home.workspace.events.AbstractWorkspaceAreaEventSource
      extended by org.gcube.portlets.user.homelibrary.home.workspace.events.filter.WorkspaceAreaEventFilter
All Implemented Interfaces:
WorkspaceAreaEventSource, WorkspaceAreaListener

public class WorkspaceAreaEventFilter
extends AbstractWorkspaceAreaEventSource
implements WorkspaceAreaListener

Implements an event filter. With this filter are accepted the events with target an item with id in the specified list.

Author:
Federico De Faveri defaveri@isti.cnr.it

Constructor Summary
WorkspaceAreaEventFilter(WorkspaceAreaEventSource source)
          Create a new event filter.
 
Method Summary
 void addCriteria(WorkspaceAreaEventFilterCriteria criteria)
          Add a criteria.
 void removeCriteria(WorkspaceAreaEventFilterCriteria criteria)
          Remove a criteria.
 void workspaceEvent(WorkspaceAreaEvent event)
          Called when a new event is fired.
 
Methods inherited from class org.gcube.portlets.user.homelibrary.home.workspace.events.AbstractWorkspaceAreaEventSource
addWorkspaceAreaListener, removeWorkspaceAreaListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceAreaEventFilter

public WorkspaceAreaEventFilter(WorkspaceAreaEventSource source)
Create a new event filter.

Parameters:
source - the event source.
Method Detail

addCriteria

public void addCriteria(WorkspaceAreaEventFilterCriteria criteria)
Add a criteria.

Parameters:
criteria - the criteria to add.

removeCriteria

public void removeCriteria(WorkspaceAreaEventFilterCriteria criteria)
Remove a criteria.

Parameters:
criteria - the criteria to remove.

workspaceEvent

public void workspaceEvent(WorkspaceAreaEvent event)
Called when a new event is fired.

Specified by:
workspaceEvent in interface WorkspaceAreaListener
Parameters:
event - the event.