Package de.xima.fc.appointment
Class AppointmentQueryParams
- java.lang.Object
 - 
- de.xima.fc.appointment.AppointmentQueryParams
 
 
- 
- All Implemented Interfaces:
 IAppointmentQueryParams,Serializable
public class AppointmentQueryParams extends Object implements IAppointmentQueryParams
POJO implementation with builder forIAppointmentQueryParams.- Since:
 - 6.5.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAppointmentQueryParams.BuilderA builder forIAppointmentQueryParams. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AppointmentQueryParams.Builderbuilder()static AppointmentQueryParams.Builderbuilder(Mandant client)static AppointmentQueryParams.Builderbuilder(Vorgang formRecord)Iterable<AppointmentTemplate>getAppointmentTemplates()MandantgetClient()Iterable<Long>getExcludedAppointmentIds()Iterable<Vorgang>getFormRecords()com.google.common.collect.Range<Instant>getRange()Iterable<de.xima.cmn.criteria.SelectCriterion>getSelectCriteria()Applies only when used for a select attribute query.Iterable<EAppointmentStatus>getStatus()booleanisIncludePartiallyInRange()booleanisInitFormRecord() 
 - 
 
- 
- 
Method Detail
- 
getAppointmentTemplates
public Iterable<AppointmentTemplate> getAppointmentTemplates()
- Specified by:
 getAppointmentTemplatesin interfaceIAppointmentQueryParams- Returns:
 - A list of appointment templates to which the appointments must belong. If 
nullor empty, no restriction is applied. 
 
- 
getClient
public Mandant getClient()
- Specified by:
 getClientin interfaceIAppointmentQueryParams- Returns:
 - The client to which the appointments must belong.
 
 
- 
getExcludedAppointmentIds
public Iterable<Long> getExcludedAppointmentIds()
- Specified by:
 getExcludedAppointmentIdsin interfaceIAppointmentQueryParams- Returns:
 - A list of appointments IDs to exclude in the result. If 
nullor empty, no restriction is applied. 
 
- 
getFormRecords
public Iterable<Vorgang> getFormRecords()
- Specified by:
 getFormRecordsin interfaceIAppointmentQueryParams- Returns:
 - A list form records to which the returned appointments must belong. If 
nullor empty, no restriction is applied. 
 
- 
getRange
public com.google.common.collect.Range<Instant> getRange()
- Specified by:
 getRangein interfaceIAppointmentQueryParams- Returns:
 - The time range of appointments to include. Appointments outside this range are excluded in the result.
 
 
- 
getSelectCriteria
public Iterable<de.xima.cmn.criteria.SelectCriterion> getSelectCriteria()
Description copied from interface:IAppointmentQueryParamsApplies only when used for a select attribute query.- Specified by:
 getSelectCriteriain interfaceIAppointmentQueryParams- Returns:
 - A list of fields (columns) to include in the result.
 
 
- 
getStatus
public Iterable<EAppointmentStatus> getStatus()
- Specified by:
 getStatusin interfaceIAppointmentQueryParams- Returns:
 - A list of status the appointments must have. If 
nullor empty, no restriction is applied. 
 
- 
isIncludePartiallyInRange
public boolean isIncludePartiallyInRange()
- Specified by:
 isIncludePartiallyInRangein interfaceIAppointmentQueryParams- Returns:
 - Applies only if 
IAppointmentQueryParams.getRange()is set. Iffalse, only appointments that fall completely within the given range are included in the result. Otherwise, appointments that only overlap partially are included as well. 
 
- 
builder
public static AppointmentQueryParams.Builder builder()
- Returns:
 - A new, empty builder.
 
 
- 
builder
public static AppointmentQueryParams.Builder builder(Mandant client)
- Parameters:
 client- The client to which to restrict the appointments.- Returns:
 - A builder for query params for appointments with the given client.
 
 
- 
builder
public static AppointmentQueryParams.Builder builder(Vorgang formRecord)
- Parameters:
 formRecord- The form record to which to restrict the appointments.- Returns:
 - A builder for query params for appointments with the given form record.
 
 
- 
isInitFormRecord
public boolean isInitFormRecord()
- Specified by:
 isInitFormRecordin interfaceIAppointmentQueryParams- Returns:
 - Applies only when loading data via the API provider (ignored otherwise). 
trueto load the form record (@codeAppointment.getFormRecord()) eagerly,falseto load it lazily. Defaults tofalse. 
 
 - 
 
 -