Package de.xima.fc.inbox.model.lazydata
Class LazyAppointmentScheduleModel
- java.lang.Object
-
- org.primefaces.model.DefaultScheduleModel
-
- org.primefaces.model.LazyScheduleModel
-
- de.xima.fc.inbox.model.lazydata.LazyAppointmentScheduleModel
-
- All Implemented Interfaces:
ILazyProcessModel,Serializable,org.primefaces.model.ScheduleModel
public class LazyAppointmentScheduleModel extends org.primefaces.model.LazyScheduleModel implements ILazyProcessModel
Lazy schedule model for the inbox appointment view.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LazyAppointmentScheduleModel(UserContext uc, boolean excludeLockedRecords, Mandant client, List<Postfach> inboxes, Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEvent(org.primefaces.model.ScheduleEvent<?> event)voidaddSorting(de.xima.cmn.criteria.AQueryCriteriaManager qcm)List<javax.faces.model.SelectItem>getAvailableZoneIdStrings()StringgetBusinessHoursJson()Map<String,de.xima.cmn.criteria.FilterCriterion>getFilters()intgetRowCount()LocalDategetSelectedDate()ZoneIdgetSelectedZoneId()StringgetSelectedZoneIdString()de.xima.cmn.criteria.SortingCriteriongetSorting()List<AppointmentTemplate>getVisibleAppointmentTemplates()StringgetZoneIdDisplayName(ZoneId zoneId)booleanisExcludeLockedRecords()voidloadEvents(LocalDateTime from, LocalDateTime until)voidputFilterTag(EInboxFilterTag filterTag)Puts the given filter tag.voidputGlobalSearchFilter(EFormRecordQueryType type, String query)Puts a global search filter for the given type with the given query.voidremoveFilterTag(EInboxFilterTag filterTag)Removes the specified filter tag.voidsetAppointmentTemplates(List<AppointmentTemplate> appointmentTemplates)voidsetAvailableAppointmentTemplates(List<AppointmentTemplateItem> items)voidsetCreatedFromFilter(Instant instant)Sets a date filter from which the form records have been created.voidsetCreatedToFilter(Instant instant)Sets a date filter until which the form records have been created.voidsetCreatorFilter(IUser user)Puts a filter where the given user is the first submitter (creator) of the form record.voidsetEditedFromFilter(Instant instant)Sets a date filter from which the form records have been last edited.voidsetEditedToFilter(Instant instant)Sets a date filter until which the form records have been last edited.voidsetEditorFilter(IUser user)Puts a filter where the given user is an editor of the form record, meaning they have submitted the form record.voidsetInboxes(List<Postfach> inboxes)voidsetSelectedZoneIdString(String selectedZoneId)voidsetSorting(de.xima.cmn.criteria.SortingCriterion sortingCriterion)
-
-
-
Constructor Detail
-
LazyAppointmentScheduleModel
public LazyAppointmentScheduleModel(UserContext uc, boolean excludeLockedRecords, Mandant client, List<Postfach> inboxes, Locale locale)
-
-
Method Detail
-
isExcludeLockedRecords
public boolean isExcludeLockedRecords()
-
getAvailableZoneIdStrings
public List<javax.faces.model.SelectItem> getAvailableZoneIdStrings()
-
getBusinessHoursJson
public String getBusinessHoursJson()
-
getFilters
public Map<String,de.xima.cmn.criteria.FilterCriterion> getFilters()
- Specified by:
getFiltersin interfaceILazyProcessModel
-
getRowCount
public int getRowCount()
- Specified by:
getRowCountin interfaceILazyProcessModel
-
getSelectedDate
public LocalDate getSelectedDate()
-
getSelectedZoneId
public ZoneId getSelectedZoneId()
-
getSelectedZoneIdString
public String getSelectedZoneIdString()
-
setSelectedZoneIdString
public void setSelectedZoneIdString(String selectedZoneId)
-
getVisibleAppointmentTemplates
public List<AppointmentTemplate> getVisibleAppointmentTemplates()
-
getSorting
public de.xima.cmn.criteria.SortingCriterion getSorting()
-
setSorting
public void setSorting(de.xima.cmn.criteria.SortingCriterion sortingCriterion)
- Specified by:
setSortingin interfaceILazyProcessModel
-
setCreatorFilter
public void setCreatorFilter(IUser user)
Description copied from interface:ILazyProcessModelPuts a filter where the given user is the first submitter (creator) of the form record.- Specified by:
setCreatorFilterin interfaceILazyProcessModel- Parameters:
user- first submitter (creator). Ifnullthe creator filter will be removed if it was set.
-
setEditorFilter
public void setEditorFilter(IUser user)
Description copied from interface:ILazyProcessModelPuts a filter where the given user is an editor of the form record, meaning they have submitted the form record.- Specified by:
setEditorFilterin interfaceILazyProcessModel- Parameters:
user- editor. Ifnullthe editor filter will be removed if it was set.
-
setCreatedFromFilter
public void setCreatedFromFilter(Instant instant)
Description copied from interface:ILazyProcessModelSets a date filter from which the form records have been created.- Specified by:
setCreatedFromFilterin interfaceILazyProcessModel- Parameters:
instant- from which the form records have been created.nullremoves the filter.
-
setCreatedToFilter
public void setCreatedToFilter(Instant instant)
Description copied from interface:ILazyProcessModelSets a date filter until which the form records have been created.- Specified by:
setCreatedToFilterin interfaceILazyProcessModel- Parameters:
instant- until which the form records have been created.nullremoves the filter.
-
setEditedFromFilter
public void setEditedFromFilter(Instant instant)
Description copied from interface:ILazyProcessModelSets a date filter from which the form records have been last edited.- Specified by:
setEditedFromFilterin interfaceILazyProcessModel- Parameters:
instant- from which the form records have been last edited.nullremoves the filter.
-
setEditedToFilter
public void setEditedToFilter(Instant instant)
Description copied from interface:ILazyProcessModelSets a date filter until which the form records have been last edited.- Specified by:
setEditedToFilterin interfaceILazyProcessModel- Parameters:
instant- until which the form records have been last edited.nullremoves the filter.
-
setAppointmentTemplates
public void setAppointmentTemplates(List<AppointmentTemplate> appointmentTemplates)
- Specified by:
setAppointmentTemplatesin interfaceILazyProcessModel
-
setAvailableAppointmentTemplates
public void setAvailableAppointmentTemplates(List<AppointmentTemplateItem> items)
- Specified by:
setAvailableAppointmentTemplatesin interfaceILazyProcessModel
-
setInboxes
public void setInboxes(List<Postfach> inboxes)
- Specified by:
setInboxesin interfaceILazyProcessModel
-
addEvent
public void addEvent(org.primefaces.model.ScheduleEvent<?> event)
- Specified by:
addEventin interfaceorg.primefaces.model.ScheduleModel- Overrides:
addEventin classorg.primefaces.model.DefaultScheduleModel
-
loadEvents
public void loadEvents(LocalDateTime from, LocalDateTime until)
- Specified by:
loadEventsin classorg.primefaces.model.LazyScheduleModel
-
putGlobalSearchFilter
public void putGlobalSearchFilter(EFormRecordQueryType type, String query)
Description copied from interface:ILazyProcessModelPuts a global search filter for the given type with the given query. If the query isnullthe filter will be removed.- Specified by:
putGlobalSearchFilterin interfaceILazyProcessModel- Parameters:
type- the type of the filter determines the form record field to be searched.query- the query string to be set. Ifnullthe filter will be removed.
-
putFilterTag
public void putFilterTag(EInboxFilterTag filterTag)
Description copied from interface:ILazyProcessModelPuts the given filter tag.- Specified by:
putFilterTagin interfaceILazyProcessModel- Parameters:
filterTag- the filter tag to be set.
-
removeFilterTag
public void removeFilterTag(EInboxFilterTag filterTag)
Description copied from interface:ILazyProcessModelRemoves the specified filter tag.- Specified by:
removeFilterTagin interfaceILazyProcessModel- Parameters:
filterTag- the filter tag to be removed.
-
addSorting
public void addSorting(de.xima.cmn.criteria.AQueryCriteriaManager qcm)
-
-