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 void
addEvent(org.primefaces.model.ScheduleEvent<?> event)
void
addSorting(de.xima.cmn.criteria.AQueryCriteriaManager qcm)
List<javax.faces.model.SelectItem>
getAvailableZoneIdStrings()
String
getBusinessHoursJson()
Map<String,de.xima.cmn.criteria.FilterCriterion>
getFilters()
int
getRowCount()
LocalDate
getSelectedDate()
ZoneId
getSelectedZoneId()
String
getSelectedZoneIdString()
de.xima.cmn.criteria.SortingCriterion
getSorting()
List<AppointmentTemplate>
getVisibleAppointmentTemplates()
String
getZoneIdDisplayName(ZoneId zoneId)
boolean
isExcludeLockedRecords()
void
loadEvents(LocalDateTime from, LocalDateTime until)
void
putFilterTag(EInboxFilterTag filterTag)
Puts the given filter tag.void
putGlobalSearchFilter(EFormRecordQueryType type, String query, Locale locale)
Puts a global search filter for the given type with the given query.void
removeFilterTag(EInboxFilterTag filterTag)
Removes the specified filter tag.void
setAppointmentTemplates(List<AppointmentTemplate> appointmentTemplates)
void
setAvailableAppointmentTemplates(List<AppointmentTemplateItem> items)
void
setCreatedFromFilter(Instant instant)
Sets a date filter from which the form records have been created.void
setCreatedToFilter(Instant instant)
Sets a date filter until which the form records have been created.void
setCreatorFilter(IUser user)
Puts a filter where the given user is the first submitter (creator) of the form record.void
setEditedFromFilter(Instant instant)
Sets a date filter from which the form records have been last edited.void
setEditedToFilter(Instant instant)
Sets a date filter until which the form records have been last edited.void
setEditorFilter(IUser user)
Puts a filter where the given user is an editor of the form record, meaning they have submitted the form record.void
setInboxes(List<Postfach> inboxes)
void
setSelectedZoneIdString(String selectedZoneId)
void
setSorting(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:
getFilters
in interfaceILazyProcessModel
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in 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:
setSorting
in interfaceILazyProcessModel
-
setCreatorFilter
public void setCreatorFilter(IUser user)
Description copied from interface:ILazyProcessModel
Puts a filter where the given user is the first submitter (creator) of the form record.- Specified by:
setCreatorFilter
in interfaceILazyProcessModel
- Parameters:
user
- first submitter (creator). Ifnull
the creator filter will be removed if it was set.
-
setEditorFilter
public void setEditorFilter(IUser user)
Description copied from interface:ILazyProcessModel
Puts a filter where the given user is an editor of the form record, meaning they have submitted the form record.- Specified by:
setEditorFilter
in interfaceILazyProcessModel
- Parameters:
user
- editor. Ifnull
the editor filter will be removed if it was set.
-
setCreatedFromFilter
public void setCreatedFromFilter(Instant instant)
Description copied from interface:ILazyProcessModel
Sets a date filter from which the form records have been created.- Specified by:
setCreatedFromFilter
in interfaceILazyProcessModel
- Parameters:
instant
- from which the form records have been created.null
removes the filter.
-
setCreatedToFilter
public void setCreatedToFilter(Instant instant)
Description copied from interface:ILazyProcessModel
Sets a date filter until which the form records have been created.- Specified by:
setCreatedToFilter
in interfaceILazyProcessModel
- Parameters:
instant
- until which the form records have been created.null
removes the filter.
-
setEditedFromFilter
public void setEditedFromFilter(Instant instant)
Description copied from interface:ILazyProcessModel
Sets a date filter from which the form records have been last edited.- Specified by:
setEditedFromFilter
in interfaceILazyProcessModel
- Parameters:
instant
- from which the form records have been last edited.null
removes the filter.
-
setEditedToFilter
public void setEditedToFilter(Instant instant)
Description copied from interface:ILazyProcessModel
Sets a date filter until which the form records have been last edited.- Specified by:
setEditedToFilter
in interfaceILazyProcessModel
- Parameters:
instant
- until which the form records have been last edited.null
removes the filter.
-
setAppointmentTemplates
public void setAppointmentTemplates(List<AppointmentTemplate> appointmentTemplates)
- Specified by:
setAppointmentTemplates
in interfaceILazyProcessModel
-
setAvailableAppointmentTemplates
public void setAvailableAppointmentTemplates(List<AppointmentTemplateItem> items)
- Specified by:
setAvailableAppointmentTemplates
in interfaceILazyProcessModel
-
setInboxes
public void setInboxes(List<Postfach> inboxes)
- Specified by:
setInboxes
in interfaceILazyProcessModel
-
addEvent
public void addEvent(org.primefaces.model.ScheduleEvent<?> event)
- Specified by:
addEvent
in interfaceorg.primefaces.model.ScheduleModel
- Overrides:
addEvent
in classorg.primefaces.model.DefaultScheduleModel
-
loadEvents
public void loadEvents(LocalDateTime from, LocalDateTime until)
- Specified by:
loadEvents
in classorg.primefaces.model.LazyScheduleModel
-
putGlobalSearchFilter
public void putGlobalSearchFilter(EFormRecordQueryType type, String query, Locale locale)
Description copied from interface:ILazyProcessModel
Puts a global search filter for the given type with the given query. If the query isnull
the filter will be removed.- Specified by:
putGlobalSearchFilter
in interfaceILazyProcessModel
- Parameters:
type
- the type of the filter determines the form record field to be searched.query
- the query string to be set. Ifnull
the filter will be removed.locale
- the current locale to use for certain filters.
-
putFilterTag
public void putFilterTag(EInboxFilterTag filterTag)
Description copied from interface:ILazyProcessModel
Puts the given filter tag.- Specified by:
putFilterTag
in interfaceILazyProcessModel
- Parameters:
filterTag
- the filter tag to be set.
-
removeFilterTag
public void removeFilterTag(EInboxFilterTag filterTag)
Description copied from interface:ILazyProcessModel
Removes the specified filter tag.- Specified by:
removeFilterTag
in interfaceILazyProcessModel
- Parameters:
filterTag
- the filter tag to be removed.
-
addSorting
public void addSorting(de.xima.cmn.criteria.AQueryCriteriaManager qcm)
-
-