Package org.javlo.service.shared.pixabay
Class PixabaySharedContentProvider
- java.lang.Object
-
- org.javlo.service.shared.AbstractSharedContentProvider
-
- org.javlo.service.shared.pixabay.PixabaySharedContentProvider
-
- All Implemented Interfaces:
ISharedContentProvider
public class PixabaySharedContentProvider extends AbstractSharedContentProvider
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description PixabaySharedContentProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCategoriesSize(ContentContext ctx)
Collection<SharedContent>
getContent(ContentContext ctx)
int
getContentSize(ContentContext ctx)
String
getType()
boolean
isLarge()
static void
main(String[] args)
void
refresh(ContentContext ctx)
refresh the content list and the list of categoriesCollection<SharedContent>
searchContent(ContentContext ctx, String query)
-
Methods inherited from class org.javlo.service.shared.AbstractSharedContentProvider
exist, getCategories, getContent, getFolder, getLabel, getName, getURL, isCategoryAccepted, isCategoryAccepted, isEmpty, isSearch, isUploadable, setCategories, setName, setURL, upload
-
-
-
-
Method Detail
-
refresh
public void refresh(ContentContext ctx)
Description copied from interface:ISharedContentProvider
refresh the content list and the list of categories- Specified by:
refresh
in interfaceISharedContentProvider
- Overrides:
refresh
in classAbstractSharedContentProvider
-
searchContent
public Collection<SharedContent> searchContent(ContentContext ctx, String query)
- Specified by:
searchContent
in interfaceISharedContentProvider
- Overrides:
searchContent
in classAbstractSharedContentProvider
-
getContent
public Collection<SharedContent> getContent(ContentContext ctx)
- Specified by:
getContent
in interfaceISharedContentProvider
- Specified by:
getContent
in classAbstractSharedContentProvider
-
getType
public String getType()
- Specified by:
getType
in interfaceISharedContentProvider
- Overrides:
getType
in classAbstractSharedContentProvider
-
getContentSize
public int getContentSize(ContentContext ctx)
- Specified by:
getContentSize
in interfaceISharedContentProvider
- Overrides:
getContentSize
in classAbstractSharedContentProvider
-
getCategoriesSize
public int getCategoriesSize(ContentContext ctx)
- Specified by:
getCategoriesSize
in interfaceISharedContentProvider
- Overrides:
getCategoriesSize
in classAbstractSharedContentProvider
-
main
public static void main(String[] args) throws MalformedURLException, Exception
- Throws:
MalformedURLException
Exception
-
isLarge
public boolean isLarge()
- Specified by:
isLarge
in interfaceISharedContentProvider
- Overrides:
isLarge
in classAbstractSharedContentProvider
-
-