Package org.javlo.service.shared
Class ImportedFileSharedContentProvider
- java.lang.Object
-
- org.javlo.service.shared.AbstractSharedContentProvider
-
- org.javlo.service.shared.LocalImageSharedContentProvider
-
- org.javlo.service.shared.LocalFileSharedContentProvider
-
- org.javlo.service.shared.ImportedFileSharedContentProvider
-
- All Implemented Interfaces:
ISharedContentProvider
public class ImportedFileSharedContentProvider extends LocalFileSharedContentProvider
-
-
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
isSearch()
return true if search is possible.void
upload(ContentContext ctx, String fileName, InputStream in, String category, boolean rename)
-
Methods inherited from class org.javlo.service.shared.LocalFileSharedContentProvider
acceptedDocument, getComponentBean, getFilter, getFolder, getPreviewURL, getRootFolder
-
Methods inherited from class org.javlo.service.shared.LocalImageSharedContentProvider
exist, getCategories, getContent, getType, isUploadable
-
Methods inherited from class org.javlo.service.shared.AbstractSharedContentProvider
getCategoriesSize, getContentSize, getLabel, getName, getURL, isCategoryAccepted, isEmpty, 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:
-
-