| org.sakaiproject.content.api.ContentResourceFilter
All known Subclasses: org.theospi.portfolio.shared.tool.BaseFormResourceFilter, org.sakaiproject.content.impl.BaseExtensionResourceFilter,
ContentResourceFilter | public interface ContentResourceFilter (Code) | | |
allowSelect | public boolean allowSelect(ContentResource contentResource)(Code) | | 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 true if resource should be selectable, false if not |
allowView | public boolean allowView(ContentResource contentResource)(Code) | | 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 true if resource should be viewable, false if not |
filterAllowedActions | public List<ResourceToolAction> filterAllowedActions(List<ResourceToolAction> actions)(Code) | | Implement this method to control which actions are allowed for
ContentCollections. This deals with "create" actions in particular.
Implementation should inspect the actions in the list and include
them in the returned list if they are can result in creation of
resources that can be selected. Otherwise they should not be
inclided.
Parameters: actions - A collection of actions to test A list of actions that should be shown in the filepickerfor each collection. |
|
|