public class LocalImageSharedContentProvider extends AbstractSharedContentProvider
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 |
---|---|
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, setURL
public static final String NAME
protected ComponentBean getComponentBean(String name, String category, String specialValue, String lg)
protected String getPreviewURL(ContentContext ctx, ComponentBean compBean) throws Exception
Exception
protected FileFilter getFilter()
protected File getRootFolder(ContentContext ctx)
public Collection<SharedContent> getContent(ContentContext ctx)
getContent
in interface ISharedContentProvider
getContent
in class AbstractSharedContentProvider
protected boolean isCategoryAccepted(ContentContext ctx, String category, MenuElement cp, Template template)
isCategoryAccepted
in class AbstractSharedContentProvider
public Map<String,String> getCategories(ContentContext ctx)
getCategories
in interface ISharedContentProvider
getCategories
in class AbstractSharedContentProvider
public String getType()
getType
in interface ISharedContentProvider
getType
in class AbstractSharedContentProvider
public boolean isUploadable(ContentContext ctx)
isUploadable
in interface ISharedContentProvider
isUploadable
in class AbstractSharedContentProvider
protected boolean acceptedDocument(ContentContext ctx, String fileName)
public void upload(ContentContext ctx, String fileName, InputStream in, String category, boolean rename) throws IOException
upload
in interface ISharedContentProvider
upload
in class AbstractSharedContentProvider
IOException
Copyright © 2012-2018. All Rights Reserved.