public class AppointmentTemplateDao extends MandantDependentBaseDao<AppointmentTemplate> implements IAppointmentTemplateDao
IAppointmentTemplateDao
for reading and writing AppointmentTemplate
entities.Constructor and Description |
---|
AppointmentTemplateDao()
Creates a new, default appointment template DAO.
|
Modifier and Type | Method and Description |
---|---|
String |
findUniqueName(IEntityContext ec,
Mandant client,
String candidate)
Returns a name that is not taken by another
AppointmentTemplate in the given client. |
String |
findUniqueName(IEntityContext ec,
Mandant client,
String candidate,
AppointmentTemplate exclude)
Returns a name that is not taken by another
AppointmentTemplate in the given client. |
List<AppointmentTemplate> |
getAllByClient(IEntityContext ec,
Mandant client)
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.
|
AppointmentTemplate |
getByUUID(IEntityContext ec,
Mandant client,
String uuid)
Returns the template with the given UUID
|
AppointmentTemplate |
getByUUID(IEntityContext ec,
Mandant client,
UUID uuid)
Returns the template with the given UUID
|
protected IFCDaoActionHook<AppointmentTemplate> |
getPostActionHook() |
boolean |
isNameExisiting(IEntityContext ec,
Mandant client,
String name)
Returns whether or not the given entity name exists within the given client
|
getEntityRefs, getPreActionHook, read
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntityRefs, read
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
public AppointmentTemplateDao()
public List<AppointmentTemplate> getAllByClient(IEntityContext ec, Mandant client)
IAppointmentTemplateDao
getAllByClient
in interface IAppointmentTemplateDao
ec
- IEntityContext
to usepublic AppointmentTemplate getByUUID(IEntityContext ec, Mandant client, String uuid)
IAppointmentTemplateDao
getByUUID
in interface IAppointmentTemplateDao
ec
- IEntityContext
to useclient
- The client for which to find the template. Please note that different clients may have templates with
the same UUID.uuid
- String
UUID of the templatepublic AppointmentTemplate getByUUID(IEntityContext ec, Mandant client, UUID uuid)
IAppointmentTemplateDao
getByUUID
in interface IAppointmentTemplateDao
ec
- IEntityContext
to useclient
- The client for which to find the template. Please note that different clients may have templates with
the same UUID.uuid
- UUID
UUID of the templatepublic String findUniqueName(IEntityContext ec, Mandant client, String candidate)
IAppointmentTemplateDao
AppointmentTemplate
in the given client. An index will be added
to the candidate if necessary.findUniqueName
in interface IAppointmentTemplateDao
ec
- IEntityContext
to be usedclient
- Mandant
for which a unique template name should be generatedcandidate
- String
appointment template name candidate to be made uniquepublic String findUniqueName(IEntityContext ec, Mandant client, String candidate, AppointmentTemplate exclude)
IAppointmentTemplateDao
AppointmentTemplate
in the given client. An index will be added
to the candidate if necessary.findUniqueName
in interface IAppointmentTemplateDao
ec
- IEntityContext
to be usedclient
- Mandant
for which a unique template name should be generatedcandidate
- String
appointment template name candidate to be made uniqueexclude
- AppointmentTemplate
entity to exclude from search for unique namepublic boolean isNameExisiting(IEntityContext ec, Mandant client, String name)
IAppointmentTemplateDao
isNameExisiting
in interface IAppointmentTemplateDao
ec
- IEntityContext
to be usedclient
- Mandant
for which to check uniquenessname
- String
name to checkprotected IFCDaoActionHook<AppointmentTemplate> getPostActionHook()
getPostActionHook
in class GenericDao<AppointmentTemplate>
public List<AppointmentSlot> getAllSlotsOfTemplates(IEntityContext ec, List<AppointmentTemplate> templates, boolean merge)
IAppointmentTemplateDao
getAllSlotsOfTemplates
in interface IAppointmentTemplateDao
ec
- IEntityContext
to usetemplates
- Templates to use.merge
- Whether to merge overlapping slots.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.