Package de.xima.fc.gui.bean.appointment
Class AppointmentTemplateBean
- java.lang.Object
-
- de.xima.fc.gui.common.utils.msg.I18nUtils
-
- de.xima.fc.gui.common.utils.msg.MessageUtils
-
- de.xima.fc.gui.common.utils.msg.AMessaging
-
- de.xima.fc.gui.common.utils.msg.AJSFContext
-
- de.xima.fc.gui.bean.ABackendJSFContext
-
- de.xima.fc.gui.bean.FCContextBean
-
- de.xima.fc.gui.bean.appointment.AppointmentTemplateBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class AppointmentTemplateBean extends FCContextBean
Bean for the backend menu that lets the user configure the available appointments.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.bean.FCContextBean
systemUC
-
Fields inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
localeBean
-
-
Constructor Summary
Constructors Constructor Description AppointmentTemplateBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNewClosingTime()
Adds a new, empty closing time to the currentAppointmentTemplate
.void
clipboardErrorListener(org.primefaces.extensions.event.ClipboardErrorEvent errorEvent)
void
clipboardSuccessListener(org.primefaces.extensions.event.ClipboardSuccessEvent successEvent)
void
deleteClosingTime(AppointmentClosingTime closingTime)
Deletes the given closing time from the currentAppointmentTemplate
IGuiColor
getGuiColor(AppointmentTemplate template)
String
getIcalUrl()
String
getIcalUrlGoogle()
String
getIcalUrlHelpUrl()
String
getIcalUrlHttp()
String
getIcalUrlWebcal()
LocalDate
getInitialDate()
AppointmentTemplateListModel
getModel()
List<BenutzerGruppe>
getUserGroups()
void
onDateRemove(String slotId)
void
onDateSelect(org.primefaces.event.SelectEvent<LocalDateTime> selectEvent)
void
save()
Saves the currentEntityListModel.getSelected()
template model to the database.void
setModel(AppointmentTemplateListModel model)
void
updateModel()
Creates a new template list model and reads all entities again from the database.-
Methods inherited from class de.xima.fc.gui.bean.FCContextBean
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubView
-
Methods inherited from class de.xima.fc.gui.bean.ABackendJSFContext
ec, findEntityContext, isDetached, isHasDB
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findBean, findBean, findBean, findCurrentView, findUserContext, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, uc
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, 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, getNewWarnMsg
-
-
-
-
Method Detail
-
getModel
public AppointmentTemplateListModel getModel()
- Returns:
- the model
-
save
public void save()
Saves the currentEntityListModel.getSelected()
template model to the database.
-
addNewClosingTime
public void addNewClosingTime()
Adds a new, empty closing time to the currentAppointmentTemplate
.
-
deleteClosingTime
public void deleteClosingTime(AppointmentClosingTime closingTime)
Deletes the given closing time from the currentAppointmentTemplate
- Parameters:
closingTime
- Closing time to delete.
-
getUserGroups
public List<BenutzerGruppe> getUserGroups()
-
setModel
public void setModel(AppointmentTemplateListModel model)
- Parameters:
model
- The template list model to use.
-
updateModel
public void updateModel()
Creates a new template list model and reads all entities again from the database.
-
getInitialDate
public LocalDate getInitialDate()
-
getIcalUrl
public String getIcalUrl()
- Returns:
- The URL for accessing the appointments of the currently selected templates as an iCal file.
-
getIcalUrlHelpUrl
public String getIcalUrlHelpUrl()
-
getIcalUrlWebcal
public String getIcalUrlWebcal()
-
getIcalUrlHttp
public String getIcalUrlHttp()
-
getIcalUrlGoogle
public String getIcalUrlGoogle()
-
onDateSelect
public void onDateSelect(org.primefaces.event.SelectEvent<LocalDateTime> selectEvent)
-
onDateRemove
public void onDateRemove(String slotId)
-
getGuiColor
public IGuiColor getGuiColor(AppointmentTemplate template)
-
clipboardSuccessListener
public void clipboardSuccessListener(org.primefaces.extensions.event.ClipboardSuccessEvent successEvent)
-
clipboardErrorListener
public void clipboardErrorListener(org.primefaces.extensions.event.ClipboardErrorEvent errorEvent)
-
-