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

java.lang.Object
  extended by org.gcube.portlets.user.homelibrary.home.workspace.events.filter.WorkspaceAreaEventFilterByParentId
All Implemented Interfaces:
WorkspaceAreaEventFilterCriteria

public class WorkspaceAreaEventFilterByParentId
extends java.lang.Object
implements WorkspaceAreaEventFilterCriteria

Filter the event by parent item id.

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

Constructor Summary
WorkspaceAreaEventFilterByParentId()
           
 
Method Summary
 boolean accept(WorkspaceAreaEvent event)
          Accept or reject a event.
 void addParentId(java.lang.String parentId)
          Add a parent id.
 void removeParentId(java.lang.String parentId)
          Remove a parent id.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceAreaEventFilterByParentId

public WorkspaceAreaEventFilterByParentId()
Method Detail

addParentId

public void addParentId(java.lang.String parentId)
Add a parent id.

Parameters:
parentId - the parent id to add.

removeParentId

public void removeParentId(java.lang.String parentId)
Remove a parent id.

Parameters:
parentId - the parent id to remove.

accept

public boolean accept(WorkspaceAreaEvent event)
Accept or reject a event.

Specified by:
accept in interface WorkspaceAreaEventFilterCriteria
Parameters:
event - the event.
Returns:
true if the event is accepted, false otherwise.