public class ImportedFileSharedContentProvider extends LocalFileSharedContentProvider
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
categories, name, url
TYPE_DEFAULT, TYPE_IMAGE, TYPE_MULTIMEDIA, TYPE_TEXT
Modifier and Type | Method and Description |
---|---|
Collection<SharedContent> |
getContent(ContentContext ctx,
Collection<String> categories) |
protected boolean |
isCategoryAccepted(ContentContext ctx,
String category,
MenuElement cp,
Template template) |
boolean |
isSearch()
return true if search is possible.
|
void |
upload(ContentContext ctx,
String fileName,
InputStream in,
String category,
boolean rename) |
acceptedDocument, getComponentBean, getFilter, getPreviewURL, getRootFolder
getCategories, getContent, getType, isUploadable
getCategoriesSize, getContentSize, getLabel, getName, getURL, isCategoryAccepted, isEmpty, isLarge, refresh, searchContent, setCategories, setName, setURL
public static final String NAME
public Collection<SharedContent> getContent(ContentContext ctx, Collection<String> categories)
getContent
in interface ISharedContentProvider
getContent
in class AbstractSharedContentProvider
protected boolean isCategoryAccepted(ContentContext ctx, String category, MenuElement cp, Template template)
isCategoryAccepted
in class LocalImageSharedContentProvider
public void upload(ContentContext ctx, String fileName, InputStream in, String category, boolean rename) throws IOException
upload
in interface ISharedContentProvider
upload
in class LocalImageSharedContentProvider
IOException
public boolean isSearch()
ISharedContentProvider
isSearch
in interface ISharedContentProvider
isSearch
in class AbstractSharedContentProvider
Copyright © 2012-2018. All Rights Reserved.