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 StringNAME- 
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 booleanisCategoryAccepted(ContentContext ctx, String category, MenuElement cp, Template template)booleanisSearch()return true if search is possible.voidupload(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:
 getContentin interfaceISharedContentProvider- Overrides:
 getContentin classAbstractSharedContentProvider
 
- 
isCategoryAccepted
protected boolean isCategoryAccepted(ContentContext ctx, String category, MenuElement cp, Template template)
- Overrides:
 isCategoryAcceptedin classLocalImageSharedContentProvider
 
- 
upload
public void upload(ContentContext ctx, String fileName, InputStream in, String category, boolean rename) throws IOException
- Specified by:
 uploadin interfaceISharedContentProvider- Overrides:
 uploadin classLocalImageSharedContentProvider- Throws:
 IOException
 
- 
isSearch
public boolean isSearch()
Description copied from interface:ISharedContentProviderreturn true if search is possible.- Specified by:
 isSearchin interfaceISharedContentProvider- Overrides:
 isSearchin classAbstractSharedContentProvider- Returns:
 
 
 - 
 
 -