public class LocalImageSharedContentProvider extends AbstractSharedContentProvider
| 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 |
|---|---|
protected boolean |
acceptedDocument(ContentContext ctx,
String fileName) |
Map<String,String> |
getCategories(ContentContext ctx) |
protected ComponentBean |
getComponentBean(String name,
String category,
String specialValue,
String lg) |
Collection<SharedContent> |
getContent(ContentContext ctx) |
protected FileFilter |
getFilter() |
protected String |
getPreviewURL(ContentContext ctx,
ComponentBean compBean) |
protected File |
getRootFolder(ContentContext ctx) |
String |
getType() |
protected boolean |
isCategoryAccepted(ContentContext ctx,
String category,
MenuElement cp,
Template template) |
boolean |
isUploadable(ContentContext ctx) |
void |
upload(ContentContext ctx,
String fileName,
InputStream in,
String category,
boolean rename) |
getCategoriesSize, getContent, getContentSize, getLabel, getName, getURL, isCategoryAccepted, isEmpty, isLarge, isSearch, refresh, searchContent, setCategories, setName, setURLpublic static final String NAME
protected ComponentBean getComponentBean(String name, String category, String specialValue, String lg)
protected String getPreviewURL(ContentContext ctx, ComponentBean compBean) throws Exception
Exceptionprotected FileFilter getFilter()
protected File getRootFolder(ContentContext ctx)
public Collection<SharedContent> getContent(ContentContext ctx)
getContent in interface ISharedContentProvidergetContent in class AbstractSharedContentProviderprotected boolean isCategoryAccepted(ContentContext ctx, String category, MenuElement cp, Template template)
isCategoryAccepted in class AbstractSharedContentProviderpublic Map<String,String> getCategories(ContentContext ctx)
getCategories in interface ISharedContentProvidergetCategories in class AbstractSharedContentProviderpublic String getType()
getType in interface ISharedContentProvidergetType in class AbstractSharedContentProviderpublic boolean isUploadable(ContentContext ctx)
isUploadable in interface ISharedContentProviderisUploadable in class AbstractSharedContentProviderprotected boolean acceptedDocument(ContentContext ctx, String fileName)
public void upload(ContentContext ctx, String fileName, InputStream in, String category, boolean rename) throws IOException
upload in interface ISharedContentProviderupload in class AbstractSharedContentProviderIOExceptionCopyright © 2012-2018. All Rights Reserved.