Package org.javlo.service.shared
Class ImportedImageSharedContentProvider
- java.lang.Object
-
- org.javlo.service.shared.AbstractSharedContentProvider
-
- org.javlo.service.shared.LocalImageSharedContentProvider
-
- org.javlo.service.shared.ImportedImageSharedContentProvider
-
- All Implemented Interfaces:
ISharedContentProvider
public class ImportedImageSharedContentProvider extends LocalImageSharedContentProvider
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
-
Fields inherited from class org.javlo.service.shared.LocalImageSharedContentProvider
IMAGE_FILTER
-
Fields inherited from class org.javlo.service.shared.AbstractSharedContentProvider
categories, name, url
-
Fields inherited from interface org.javlo.service.shared.ISharedContentProvider
TYPE_DEFAULT, TYPE_IMAGE, TYPE_MULTIMEDIA, TYPE_TEXT
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.javlo.service.shared.LocalImageSharedContentProvider
acceptedDocument, exist, getCategories, getComponentBean, getContent, getFilter, getPreviewURL, getRootFolder, getType
-
Methods inherited from class org.javlo.service.shared.AbstractSharedContentProvider
getCategoriesSize, getContentSize, getFolder, getLabel, getName, getURL, isCategoryAccepted, isLarge, refresh, searchContent, setCategories, setName, setURL
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContent
public Collection<SharedContent> getContent(ContentContext ctx, Collection<String> categories)
- Specified by:
getContent
in interfaceISharedContentProvider
- Overrides:
getContent
in classAbstractSharedContentProvider
-
isCategoryAccepted
protected boolean isCategoryAccepted(ContentContext ctx, String category, MenuElement cp, Template template)
- Overrides:
isCategoryAccepted
in classLocalImageSharedContentProvider
-
upload
public void upload(ContentContext ctx, String fileName, InputStream in, String category, boolean rename) throws IOException
- Specified by:
upload
in interfaceISharedContentProvider
- Overrides:
upload
in classLocalImageSharedContentProvider
- Throws:
IOException
-
isSearch
public boolean isSearch()
Description copied from interface:ISharedContentProvider
return true if search is possible.- Specified by:
isSearch
in interfaceISharedContentProvider
- Overrides:
isSearch
in classAbstractSharedContentProvider
- Returns:
-
isEmpty
public boolean isEmpty(ContentContext ctx)
Description copied from interface:ISharedContentProvider
return true if provider have no content.- Specified by:
isEmpty
in interfaceISharedContentProvider
- Overrides:
isEmpty
in classAbstractSharedContentProvider
- Returns:
-
isUploadable
public boolean isUploadable(ContentContext ctx)
- Specified by:
isUploadable
in interfaceISharedContentProvider
- Overrides:
isUploadable
in classLocalImageSharedContentProvider
-
-