public class ImportedFileSharedContentProvider extends LocalFileSharedContentProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
categories, name, urlTYPE_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, getRootFoldergetCategories, getContent, getType, isUploadablegetCategoriesSize, getContentSize, getLabel, getName, getURL, isCategoryAccepted, isEmpty, isLarge, refresh, searchContent, setCategories, setName, setURLpublic static final String NAME
public Collection<SharedContent> getContent(ContentContext ctx, Collection<String> categories)
getContent in interface ISharedContentProvidergetContent in class AbstractSharedContentProviderprotected boolean isCategoryAccepted(ContentContext ctx, String category, MenuElement cp, Template template)
isCategoryAccepted in class LocalImageSharedContentProviderpublic void upload(ContentContext ctx, String fileName, InputStream in, String category, boolean rename) throws IOException
upload in interface ISharedContentProviderupload in class LocalImageSharedContentProviderIOExceptionpublic boolean isSearch()
ISharedContentProviderisSearch in interface ISharedContentProviderisSearch in class AbstractSharedContentProviderCopyright © 2012-2018. All Rights Reserved.