Package de.xima.fc.handler.entity
Class DatenquelleHandler
- java.lang.Object
-
- de.xima.fc.handler.AMSApiHandler
-
- de.xima.fc.handler.entity.GenericHandler
-
- de.xima.fc.handler.entity.DatenquelleHandler
-
- All Implemented Interfaces:
IAPIHandler
,IDatenquelleHandler
,IGenericHandler
,Serializable
public class DatenquelleHandler extends GenericHandler implements IDatenquelleHandler
The Class DataStoreHandler.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.handler.entity.GenericHandler
LOG
-
-
Constructor Summary
Constructors Constructor Description DatenquelleHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Datenquelle
getDatenquelleById(UserContext uc, Mandant mandant, int id)
Gets adata source
by its databaseID
.Datenquelle
getDatenquelleByName(UserContext uc, Mandant man, String name)
Gets adata source
with a givenname
.Datenquelle
getDatenquelleByNameAndType(UserContext uc, Mandant mandant, String name, EDatenquellenTyp dataSourceType)
List<Datenquelle>
getDatenquellen(UserContext uc, Mandant mandant)
Gets alldata sources
owned by the givenclient
.Datenquelle
getPublicDatasource(UserContext uc, Mandant client, String name, EDatenquellenTyp type)
Gets apublic
data source
Datenquelle
remoteUpdateDataSource(UserContext uc, Datenquelle datasource)
Updates a data source.-
Methods inherited from class de.xima.fc.handler.entity.GenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, serializableList, update, update
-
Methods inherited from class de.xima.fc.handler.AMSApiHandler
getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getName
-
Methods inherited from interface de.xima.fc.handler.interfaces.entity.IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
-
-
-
Method Detail
-
getDatenquellen
public List<Datenquelle> getDatenquellen(UserContext uc, Mandant mandant)
Description copied from interface:IDatenquelleHandler
Gets alldata sources
owned by the givenclient
.- Specified by:
getDatenquellen
in interfaceIDatenquelleHandler
- Parameters:
uc
- The user context of the user who requested the data sources.mandant
- The client who owns the data sources.- Returns:
- All data sources owned by the client, or an empty list if none are found.
-
getDatenquelleByName
public Datenquelle getDatenquelleByName(UserContext uc, Mandant man, String name)
Description copied from interface:IDatenquelleHandler
Gets adata source
with a givenname
.- Specified by:
getDatenquelleByName
in interfaceIDatenquelleHandler
- Parameters:
uc
- The user context of the user who requested the data source.man
- 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.
-
getDatenquelleById
public Datenquelle getDatenquelleById(UserContext uc, Mandant mandant, int id)
Description copied from interface:IDatenquelleHandler
Gets adata source
by its databaseID
.- Specified by:
getDatenquelleById
in interfaceIDatenquelleHandler
- Parameters:
uc
- The user context of the user who requested the data source.mandant
- 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.
-
getDatenquelleByNameAndType
public Datenquelle getDatenquelleByNameAndType(UserContext uc, Mandant mandant, String name, EDatenquellenTyp dataSourceType)
Description copied from interface:IDatenquelleHandler
- Specified by:
getDatenquelleByNameAndType
in interfaceIDatenquelleHandler
- Parameters:
uc
- The user context of the user who requested the data source.mandant
- 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.
-
getPublicDatasource
public Datenquelle getPublicDatasource(UserContext uc, Mandant client, String name, EDatenquellenTyp type)
Description copied from interface:IDatenquelleHandler
Gets apublic
data source
- Specified by:
getPublicDatasource
in interfaceIDatenquelleHandler
- 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.type
- The type of the data source.- Returns:
- The retrieved data source or null if not found or the data source is not public.
-
remoteUpdateDataSource
public Datenquelle remoteUpdateDataSource(UserContext uc, Datenquelle datasource)
Description copied from interface:IDatenquelleHandler
Updates a data source.- Specified by:
remoteUpdateDataSource
in interfaceIDatenquelleHandler
- 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.
-
-