public final class AppointmentTemplateListModel extends EntityListModelSelectByView<AppointmentTemplate>
AppointmentTemplate - the backend menu for configuring the appointments.all, entityClass, filtered, globalFilter, hasAddNewEntity, marked, qcm, selected| Constructor and Description |
|---|
AppointmentTemplateListModel(de.xima.cmn.criteria.QueryCriteriaManager qcm,
Mandant client) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSlotAt(LocalDateTime dateTime)
Adds a new slot starting at the given time.
|
org.primefaces.model.ScheduleModel |
getEventModel() |
List<org.primefaces.model.ScheduleEvent<?>> |
getEventsInRange(LocalDateTime start,
LocalDateTime end) |
List<org.primefaces.model.ScheduleEvent<?>> |
getEventsInRange(com.google.common.collect.Range<LocalDateTime> targetRange) |
AppointmentTemplate |
getNew() |
void |
removeSlot(String slotId)
Removes the
AppointmentSlot with the given ID. |
void |
save(boolean addSuccessMessage,
boolean addErrorMessage) |
void |
setEventModel(org.primefaces.model.ScheduleModel eventModel) |
void |
setSelected(AppointmentTemplate selected)
After setting the selected entity to the given entity, stores this selection in the
SelectionBean. |
void |
updateEvent(org.primefaces.model.ScheduleEvent<?> event)
Takes a changed event and merges it into the current model.
|
getAllowedViewsForSelection, getCurrentViewBean, getEntityClassKey, getSelectionBean, selectDefaultaddMarked, addNew, create, delete, delete, deleteEntity, deleteEntity, deleteMarkedEntities, ec, fetchAll, getAll, getAllPlusNew, getDao, getFiltered, getGlobalFilter, getMarked, getSelected, hasEntity, isDetached, isEmptyList, isMarkedDeletable, isNew, loadLazyData, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, removeMarked, save, setFiltered, setGlobalFilter, setHasAddNewEntity, setMarked, setSelectedFromMarked, update, updateData, updateSelectedaddErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsggetFacesContext, getLocale, rbValue, rbValue, rbValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMarked, addNew, delete, delete, deleteEntity, deleteEntity, deleteMarkedEntities, getAll, getAllPlusNew, getFiltered, getMarked, getSelected, hasEntity, isEmptyList, isMarkedDeletable, isNew, loadLazyData, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, removeMarked, save, setFiltered, setMarked, setSelectedFromMarked, updateSelectedupdateDatapublic AppointmentTemplateListModel(de.xima.cmn.criteria.QueryCriteriaManager qcm,
Mandant client)
qcm - Query criteria manager for the AppointmentTemplate. Should usually restrict the templates to a
certain client.client - Current client to be used.public void addSlotAt(LocalDateTime dateTime)
dateTime - Starting time for the new slot.public org.primefaces.model.ScheduleModel getEventModel()
Schedule component.public AppointmentTemplate getNew()
getNew in class EntityListModel<AppointmentTemplate>public void removeSlot(String slotId)
AppointmentSlot with the given ID. Used when the user clicks on the delete button of an event.slotId - ID of the AppointmentSlot to remove.public void save(boolean addSuccessMessage,
boolean addErrorMessage)
save in class EntityListModel<AppointmentTemplate>public void setEventModel(org.primefaces.model.ScheduleModel eventModel)
eventModel - The new event model to set.public void setSelected(AppointmentTemplate selected)
EntityListModelSelectByViewSelectionBean. This
allows the selection to be restored when the user revisits the page (during the same session).setSelected in interface IEntityListModel<AppointmentTemplate>setSelected in class EntityListModelSelectByView<AppointmentTemplate>selected - The model to be selected.public void updateEvent(org.primefaces.model.ScheduleEvent<?> event)
event - An event with data to update and merge into this model.public List<org.primefaces.model.ScheduleEvent<?>> getEventsInRange(LocalDateTime start, LocalDateTime end)
start - Start point of the range.end - End point of the range.getEventModel() that lie (partially) in the given range.public List<org.primefaces.model.ScheduleEvent<?>> getEventsInRange(com.google.common.collect.Range<LocalDateTime> targetRange)
targetRange - A range to check.getEventModel() that lie (partially) in the given range.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.