public interface ISharedContentProvider
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_DEFAULT |
static String |
TYPE_IMAGE |
static String |
TYPE_MULTIMEDIA |
static String |
TYPE_TEXT |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getCategories(ContentContext ctx) |
int |
getCategoriesSize(ContentContext ctx) |
Collection<SharedContent> |
getContent(ContentContext ctx) |
Collection<SharedContent> |
getContent(ContentContext ctx,
Collection<String> categories) |
int |
getContentSize(ContentContext ctx) |
String |
getLabel(Locale locale) |
String |
getName() |
String |
getType() |
URL |
getURL()
get the url of the provider.
|
boolean |
isEmpty(ContentContext ctx)
return true if provider have no content.
|
boolean |
isLarge() |
boolean |
isSearch()
return true if search is possible.
|
boolean |
isUploadable(ContentContext ctx) |
void |
refresh(ContentContext ctx)
refresh the content list and the list of categories
|
Collection<SharedContent> |
searchContent(ContentContext ctx,
String query) |
void |
setName(String name) |
void |
upload(ContentContext ctx,
String fileName,
InputStream in,
String category,
boolean rename) |
static final String TYPE_DEFAULT
static final String TYPE_TEXT
static final String TYPE_IMAGE
static final String TYPE_MULTIMEDIA
String getName()
void setName(String name)
URL getURL()
Collection<SharedContent> getContent(ContentContext ctx)
Collection<SharedContent> searchContent(ContentContext ctx, String query)
Collection<SharedContent> getContent(ContentContext ctx, Collection<String> categories)
Map<String,String> getCategories(ContentContext ctx)
boolean isSearch()
boolean isEmpty(ContentContext ctx)
void refresh(ContentContext ctx)
String getType()
int getCategoriesSize(ContentContext ctx)
int getContentSize(ContentContext ctx)
boolean isUploadable(ContentContext ctx)
boolean isLarge()
void upload(ContentContext ctx, String fileName, InputStream in, String category, boolean rename) throws IOException
IOException
Copyright © 2012-2018. All Rights Reserved.