Package de.xima.fc.dao.interfaces
Interface IAppointmentTemplateDao
-
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<AppointmentTemplate,Long,IEntityContext>,IGenericDao<AppointmentTemplate>
- All Known Implementing Classes:
AppointmentTemplateDao
public interface IAppointmentTemplateDao extends IGenericDao<AppointmentTemplate>
DAO for reading and writingAppointmentTemplateentities.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringfindUniqueName(IEntityContext ec, Mandant client, String candidate)Returns a name that is not taken by anotherAppointmentTemplatein the given client.StringfindUniqueName(IEntityContext ec, Mandant client, String candidate, AppointmentTemplate exclude)Returns a name that is not taken by anotherAppointmentTemplatein the given client.List<AppointmentTemplate>getAllByClient(IEntityContext ec, Mandant currentClient)Finds all available appointment templates of the given client.List<AppointmentSlot>getAllSlotsOfTemplates(IEntityContext ec, List<AppointmentTemplate> templates, boolean merge)Finds all available appointment slots of the given templates.AppointmentTemplategetByUUID(IEntityContext ec, Mandant client, String uuid)Returns the template with the given UUIDAppointmentTemplategetByUUID(IEntityContext ec, Mandant client, UUID uuid)Returns the template with the given UUIDbooleanisNameExisiting(IEntityContext ec, Mandant client, String name)Returns whether or not the given entity name exists within the given client-
Methods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
getEntityRefs, read
-
-
-
-
Method Detail
-
getByUUID
AppointmentTemplate getByUUID(IEntityContext ec, Mandant client, String uuid)
Returns the template with the given UUID- Parameters:
ec-IEntityContextto useclient- The client for which to find the template. Please note that different clients may have templates with the same UUID.uuid-StringUUID of the template- Returns:
- The appointment template for the given UUID
-
getByUUID
AppointmentTemplate getByUUID(IEntityContext ec, Mandant client, UUID uuid)
Returns the template with the given UUID- Parameters:
ec-IEntityContextto useclient- The client for which to find the template. Please note that different clients may have templates with the same UUID.uuid-UUIDUUID of the template- Returns:
- The appointment template for the given UUID
-
getAllByClient
List<AppointmentTemplate> getAllByClient(IEntityContext ec, Mandant currentClient)
Finds all available appointment templates of the given client.- Parameters:
ec-IEntityContextto usecurrentClient-- Returns:
- All appointment templates of the given client.
-
getAllSlotsOfTemplates
List<AppointmentSlot> getAllSlotsOfTemplates(IEntityContext ec, List<AppointmentTemplate> templates, boolean merge)
Finds all available appointment slots of the given templates.- Parameters:
ec-IEntityContextto usetemplates- Templates to use.merge- Whether to merge overlapping slots.- Returns:
- All appointment slots of the given templates.
-
findUniqueName
String findUniqueName(IEntityContext ec, Mandant client, String candidate)
Returns a name that is not taken by anotherAppointmentTemplatein the given client. An index will be added to the candidate if necessary.- Parameters:
ec-IEntityContextto be usedclient-Mandantfor which a unique template name should be generatedcandidate-Stringappointment template name candidate to be made unique- Returns:
- unique appointment template name in the context of the given client
-
findUniqueName
String findUniqueName(IEntityContext ec, Mandant client, String candidate, AppointmentTemplate exclude)
Returns a name that is not taken by anotherAppointmentTemplatein the given client. An index will be added to the candidate if necessary.- Parameters:
ec-IEntityContextto be usedclient-Mandantfor which a unique template name should be generatedcandidate-Stringappointment template name candidate to be made uniqueexclude-AppointmentTemplateentity to exclude from search for unique name- Returns:
- unique appointment template name in the context of the given client
-
isNameExisiting
boolean isNameExisiting(IEntityContext ec, Mandant client, String name)
Returns whether or not the given entity name exists within the given client- Parameters:
ec-IEntityContextto be usedclient-Mandantfor which to check uniquenessname-Stringname to check- Returns:
- whether or not the given name is unique
- Throws:
IllegalArgumentException- if the entity class of this DAO does not provide a name
-
-