org.sakaiproject.service.legacy.content
Interface ContentResourceFilter

All Known Implementing Classes:
BaseExtensionResourceFilter

public interface ContentResourceFilter

Created by IntelliJ IDEA. User: John Ellis Date: Nov 26, 2005 Time: 3:18:31 PM To change this template use File | Settings | File Templates.


Method Summary
 boolean allowSelect(ContentResource contentResource)
          Implement this method to control which resources are allowed to be selected.
 boolean allowView(ContentResource contentResource)
          Implement this method to control which resources are viewable.
 

Method Detail

allowSelect

public boolean allowSelect(ContentResource contentResource)
Implement this method to control which resources are allowed to be selected. Implementation should inspect the resource and return true if the resource should be selectable and false if not.

Parameters:
contentResource - resource to test
Returns:
true if resource should be selectable, false if not

allowView

public boolean allowView(ContentResource contentResource)
Implement this method to control which resources are viewable. Implementation should inspect the resource and return true if the resource should be presented in the list and false if not.

Parameters:
contentResource - resource to test
Returns:
true if resource should be viewable, false if not