org.sakaiproject.component.legacy.discussion
Class BaseDiscussionService.PrivacyFilter

java.lang.Object
  extended byorg.sakaiproject.component.legacy.discussion.BaseDiscussionService.PrivacyFilter
All Implemented Interfaces:
Filter
Enclosing class:
BaseDiscussionService

protected class BaseDiscussionService.PrivacyFilter
extends Object
implements Filter

A filter that will reject discussion message drafts not from the current user, and otherwise use another filter, if defined, for acceptance.


Field Summary
protected  Filter m_filter
          The other filter to check with.
 
Constructor Summary
BaseDiscussionService.PrivacyFilter(Filter filter)
          Construct
 
Method Summary
 boolean accept(Object o)
          Does this object satisfy the criteria of the filter?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_filter

protected Filter m_filter
The other filter to check with. May be null.

Constructor Detail

BaseDiscussionService.PrivacyFilter

public BaseDiscussionService.PrivacyFilter(Filter filter)
Construct

Parameters:
filter - The other filter we check with.
Method Detail

accept

public boolean accept(Object o)
Does this object satisfy the criteria of the filter?

Specified by:
accept in interface Filter
Returns:
true if the object is accepted by the filter, false if not.