Package org.javlo.service.shared
Interface ISharedContentProvider
-
- All Known Implementing Classes:
AbstractSharedContentProvider
,CloserJavloSharedContentProvider
,FotogrphSharedContentProvider
,GlobalImageSharedContentProvider
,ImportedFileSharedContentProvider
,ImportedImageSharedContentProvider
,JavloSharedContentProvider
,LocalFileSharedContentProvider
,LocalImageSharedContentProvider
,PixabaySharedContentProvider
,StockvaultSharedContentProvider
,URLImageSharedContentProvider
public interface ISharedContentProvider
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_DEFAULT
static String
TYPE_IMAGE
static String
TYPE_MULTIMEDIA
static String
TYPE_TEXT
-
Method Summary
-
-
-
Field Detail
-
TYPE_DEFAULT
static final String TYPE_DEFAULT
- See Also:
- Constant Field Values
-
TYPE_TEXT
static final String TYPE_TEXT
- See Also:
- Constant Field Values
-
TYPE_IMAGE
static final String TYPE_IMAGE
- See Also:
- Constant Field Values
-
TYPE_MULTIMEDIA
static final String TYPE_MULTIMEDIA
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
String getName()
-
setName
void setName(String name)
-
getURL
URL getURL()
get the url of the provider. Can be null and can be only for information about provider (not webservice).- Returns:
-
getContent
Collection<SharedContent> getContent(ContentContext ctx)
-
searchContent
Collection<SharedContent> searchContent(ContentContext ctx, String query)
-
getContent
Collection<SharedContent> getContent(ContentContext ctx, Collection<String> categories)
-
getCategories
Map<String,String> getCategories(ContentContext ctx)
-
isSearch
boolean isSearch()
return true if search is possible.- Returns:
-
isEmpty
boolean isEmpty(ContentContext ctx)
return true if provider have no content.- Returns:
-
refresh
void refresh(ContentContext ctx)
refresh the content list and the list of categories
-
getType
String getType()
-
getCategoriesSize
int getCategoriesSize(ContentContext ctx)
-
getContentSize
int getContentSize(ContentContext ctx)
-
isUploadable
boolean isUploadable(ContentContext ctx)
-
isLarge
boolean isLarge()
-
upload
void upload(ContentContext ctx, String fileName, InputStream in, String category, boolean rename) throws IOException
- Throws:
IOException
-
exist
Boolean exist(ContentContext ctx, String fileName, String category) throws IOException
- Throws:
IOException
-
getFolder
File getFolder(ContentContext ctx, String category)
-
-