org.sakaiproject.component.legacy.announcement
Class BaseAnnouncementService.PrivacyFilter

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

protected class BaseAnnouncementService.PrivacyFilter
extends Object
implements Filter

A filter that will reject announcement 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
BaseAnnouncementService.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

BaseAnnouncementService.PrivacyFilter

public BaseAnnouncementService.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.