|
Dashboard Builder Data Provider API 6.2.1-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataProvider
A DataProvider knows how to retrieve data sets from a given source: a database, a CSV file, ...
| Method Summary | |
|---|---|
boolean |
delete()
|
DataSet |
filterDataSet(DataFilter filter)
Same as getDataSet by the data set retrieved satisfy the specified filter criteria. |
String |
getCode()
The code is an unique identifier that is universal and is not tied to the persistent storage. |
DataLoader |
getDataLoader()
The loader used to retrieve data. |
DataProviderType |
getDataProviderType()
The type of this data provider. |
DataSet |
getDataSet()
Get a dataset. |
String |
getDescription(Locale l)
The provider description. |
Map<Locale,String> |
getDescriptionI18nMap()
The localized descriptions. |
Long |
getId()
The object identifier. |
boolean |
isCanDelete()
Check if the provider is deleteable. |
boolean |
isCanEdit()
Check if the provider is editable. |
boolean |
isCanEditProperties()
Check if the provider properties are editable. |
boolean |
isPersistent()
|
boolean |
isReady()
Returns if the provider is ready to build its data set. |
DataSet |
refreshDataSet()
Get the most up to date data. |
boolean |
save()
|
void |
setCanDelete(boolean canDelete)
|
void |
setCanEdit(boolean canEdit)
|
void |
setCanEditProperties(boolean canEditProperties)
|
void |
setCode(String code)
|
void |
setDataLoader(DataLoader dataLoader)
|
void |
setDescription(String descr,
Locale l)
|
void |
setId(Long newId)
|
| Method Detail |
|---|
DataProviderType getDataProviderType()
DataLoader getDataLoader()
void setDataLoader(DataLoader dataLoader)
Long getId()
void setId(Long newId)
String getCode()
void setCode(String code)
String getDescription(Locale l)
void setDescription(String descr,
Locale l)
Map<Locale,String> getDescriptionI18nMap()
boolean isCanDelete()
void setCanDelete(boolean canDelete)
boolean isCanEdit()
void setCanEdit(boolean canEdit)
boolean isCanEditProperties()
void setCanEditProperties(boolean canEditProperties)
boolean isReady()
DataSet getDataSet()
throws Exception
Exception
DataSet refreshDataSet()
throws Exception
Exception
DataSet filterDataSet(DataFilter filter)
throws Exception
getDataSet by the data set retrieved satisfy the specified filter criteria.
Exception
boolean save()
throws Exception
Exception
boolean delete()
throws Exception
Exception
boolean isPersistent()
throws Exception
Exception
|
Dashboard Builder Data Provider API 6.2.1-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||