public class ImportedImageSharedContentProvider extends LocalImageSharedContentProvider
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 |
isEmpty(ContentContext ctx)
return true if provider have no content.
|
boolean |
isSearch()
return true if search is possible.
|
boolean |
isUploadable(ContentContext ctx) |
void |
upload(ContentContext ctx,
String fileName,
InputStream in,
String category,
boolean rename) |
acceptedDocument, getCategories, getComponentBean, getContent, getFilter, getPreviewURL, getRootFolder, getType
getCategoriesSize, getContentSize, getLabel, getName, getURL, isCategoryAccepted, 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
public boolean isEmpty(ContentContext ctx)
ISharedContentProvider
isEmpty
in interface ISharedContentProvider
isEmpty
in class AbstractSharedContentProvider
public boolean isUploadable(ContentContext ctx)
isUploadable
in interface ISharedContentProvider
isUploadable
in class LocalImageSharedContentProvider
Copyright © 2012-2018. All Rights Reserved.