Interface IDatenquelleHandler
- All Superinterfaces:
IAPIHandler, IGenericHandler, Serializable
- All Known Implementing Classes:
DatenquelleHandler
API handler for
data source entities.- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptiongetDatenquelleById(UserContext uc, Mandant client, int id) Gets adata sourceby its databaseID.getDatenquelleByName(UserContext uc, Mandant client, String name) Gets adata sourcewith a givenname.getDatenquelleByNameAndType(UserContext uc, Mandant client, String name, EDatenquellenTyp dataSourceType) getDatenquellen(UserContext uc, Mandant client) Gets alldata sourcesowned by the givenclient.getPublicDatasource(UserContext uc, Mandant client, String name, EDatenquellenTyp dataSourceType) Gets apublicdata sourceremoteUpdateDataSource(UserContext uc, Datenquelle dataSource) Updates a data source.Methods inherited from interface IAPIHandler
getNameMethods inherited from interface IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
Method Details
-
getDatenquelleById
Gets adata sourceby its databaseID.- Parameters:
uc- The user context of the user who requested the data source.client- The client who owns the data source.id- The database ID of the data source.- Returns:
- The data source with the given ID, or null if not found.
-
getDatenquelleByName
Gets adata sourcewith a givenname.- Parameters:
uc- The user context of the user who requested the data source.client- The client who owns the data source.name- The name of the data source.- Returns:
- The data source with the given name, or null if not found.
-
getDatenquelleByNameAndType
Datenquelle getDatenquelleByNameAndType(UserContext uc, Mandant client, String name, EDatenquellenTyp dataSourceType) - Parameters:
uc- The user context of the user who requested the data source.client- The client who owns the data source.name- The name of the data source.dataSourceType- The type of the data source.- Returns:
- The data source with the given name and type, or null if not found.
- Since:
- 5.1.0
-
getDatenquellen
Gets alldata sourcesowned by the givenclient.- Parameters:
uc- The user context of the user who requested the data sources.client- The client who owns the data sources.- Returns:
- All data sources owned by the client, or an empty list if none are found.
-
getPublicDatasource
Datenquelle getPublicDatasource(UserContext uc, Mandant client, String name, EDatenquellenTyp dataSourceType) Gets apublicdata source- Parameters:
uc- The user context of the user who requested the data source.client- The client who owns the data source.name- The name of the data source.dataSourceType- The type of the data source.- Returns:
- The retrieved data source or null if not found or the data source is not public.
-
remoteUpdateDataSource
Updates a data source.- Parameters:
uc- The user context of the user who requested the update.dataSource- The data source to update.- Returns:
- The updated data source or null if the update failed.
-