| |
|
| java.lang.Object org.sakaiproject.content.impl.BaseExtensionResourceFilter
BaseExtensionResourceFilter | public class BaseExtensionResourceFilter implements ContentResourceFilter(Code) | | This class implements the typical mime type and extension filter. This will be a registered bean with the component manager that application components can extend to control the list of mime types and the list of acceptable extentions.
|
filterAllowedActions | public List<ResourceToolAction> filterAllowedActions(List<ResourceToolAction> actions)(Code) | | This method controls which "create" actions are allowed for ContentCollections.
Filtering "create" actions based on mimetype and extension is not yet
supported very well, so this may require tweaking over time.
Parameters: actions - A collection of actions to test A list of actions that should be shown in the filepickerfor each collection. |
getAcceptedExtensions | public List getAcceptedExtensions()(Code) | | |
isViewAll | public boolean isViewAll()(Code) | | |
setAcceptedExtensions | public void setAcceptedExtensions(List acceptedExtensions)(Code) | | List of accepted file name extensions. If this list is null, all extensions are acceptable.
Parameters: acceptedExtensions - |
setMimeTypes | public void setMimeTypes(List mimeTypes)(Code) | | The list of mime types to allow. The passed in content resource will be tested to see if the resouce's primary mime type is included in the list (ie "text" for "text/xml") and then the whole mime type will be tested for existence in the list.
Parameters: mimeTypes - |
setViewAll | public void setViewAll(boolean viewAll)(Code) | | boolean to indicate if all resources should be viewable. If this is false, then the viewable resources will be based on the mime types and extention set in the other properties.
Parameters: viewAll - |
|
|
|