public interface AppointmentQuery extends OsidRelationshipQuery
This is the query for searching appointments. Each method specifies an
AND
term while multiple invocations of the same method
produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearCommitmentTerms()
Clears all commitment terms.
|
void |
clearPersonIdTerms()
Clears all person
Id terms. |
void |
clearPersonTerms()
Clears all person terms.
|
void |
clearPositionIdTerms()
Clears all position
Id terms. |
void |
clearPositionTerms()
Clears all position terms.
|
void |
clearRealmIdTerms()
Clears all realm
Id terms. |
void |
clearRealmTerms()
Clears all realm terms.
|
void |
clearSalaryTerms()
Clears all salary terms.
|
void |
clearTitleTerms()
Clears all title terms.
|
AppointmentQueryRecord |
getAppointmentQueryRecord(Type appointmentRecordType)
Gets the appointment query record corresponding to the given
Appointment record Type. |
PersonQuery |
getPersonQuery()
Gets the query for a person query.
|
PositionQuery |
getPositionQuery()
Gets the query for a position query.
|
RealmQuery |
getRealmQuery()
Gets the query for a realm query.
|
void |
matchAnyCommitment(boolean match)
Matches positions with any low salary.
|
void |
matchAnySalary(boolean match)
Matches positions with any salary.
|
void |
matchAnyTitle(boolean match)
Matches persons with any title.
|
void |
matchCommitment(long from,
long to,
boolean match)
Matches a commitment between the given range inclusive.
|
void |
matchPersonId(Id personId,
boolean match)
Sets a person
Id. |
void |
matchPositionId(Id positionId,
boolean match)
Sets a position
Id. |
void |
matchRealmId(Id realmId,
boolean match)
Sets the realm
Id for this query to match appointments
assigned to realms. |
void |
matchSalary(Currency from,
Currency to,
boolean match)
Matches a salary between the given range inclusive.
|
void |
matchTitle(java.lang.String title,
Type stringMatchType,
boolean match)
Matches a title.
|
boolean |
supportsPersonQuery()
Tests if a
PersonQuery is available. |
boolean |
supportsPositionQuery()
Tests if a
PositionQuery is available. |
boolean |
supportsRealmQuery()
Tests if a
RealmQuery is available. |
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQuery
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDate
void matchPersonId(Id personId, boolean match)
Id.
personId
- a person Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- personId
is
null
mandatory
- This method must be implemented. void clearPersonIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsPersonQuery()
PersonQuery
is available. true
if a person query is available,
false
otherwisemandatory
- This method must be implemented. PersonQuery getPersonQuery()
OR
term.UnimplementedException
- supportsPersonQuery()
is false
optional
- This method must be implemented if
supportsPersonQuery()
is true.
void clearPersonTerms()
mandatory
- This method must be implemented. void matchPositionId(Id positionId, boolean match)
Id.
positionId
- a position Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- positionId
is
null
mandatory
- This method must be implemented. void clearPositionIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsPositionQuery()
PositionQuery
is available. true
if a position query is available,
false
otherwisemandatory
- This method must be implemented. PositionQuery getPositionQuery()
OR
term.UnimplementedException
- supportsPositionQuery()
is false
optional
- This method must be implemented if
supportsPositionQuery()
is true.
void clearPositionTerms()
mandatory
- This method must be implemented. void matchCommitment(long from, long to, boolean match)
from
- a starting rangeto
- an ending rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- from
is
greater than to
mandatory
- This method must be implemented. void matchAnyCommitment(boolean match)
match
- true
to match appointments with any
commitment, false
to match appointments with no
commitmentmandatory
- This method must be implemented. void clearCommitmentTerms()
mandatory
- This method must be implemented. void matchTitle(java.lang.String title, Type stringMatchType, boolean match)
title
- a titlestringMatchType
- a string match typematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- title
is not
of stringMatchType
NullArgumentException
- title
or
stringMatchType
is null
UnsupportedException
-
supportsStringMatchType(stringMatchType)
is
false
mandatory
- This method must be implemented. void matchAnyTitle(boolean match)
match
- true
to match appointments with any
title, false
to match appointments with no
titlemandatory
- This method must be implemented. void clearTitleTerms()
mandatory
- This method must be implemented. void matchSalary(Currency from, Currency to, boolean match)
from
- a starting salary rangeto
- an ending salary rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
mandatory
- This method must be implemented. void matchAnySalary(boolean match)
match
- true
to match appointments with any
salary, false
to match appointments with no
salarymandatory
- This method must be implemented. void clearSalaryTerms()
mandatory
- This method must be implemented. void matchRealmId(Id realmId, boolean match)
Id
for this query to match appointments
assigned to realms.realmId
- a realm Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- realmId
is
null
mandatory
- This method must be implemented. void clearRealmIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsRealmQuery()
RealmQuery
is available. true
if a realm query is available,
false
otherwisemandatory
- This method must be implemented. RealmQuery getRealmQuery()
OR
term.UnimplementedException
- supportsRealmQuery()
is false
optional
- This method must be implemented if
supportsRealmQuery()
is true.
void clearRealmTerms()
mandatory
- This method must be implemented. AppointmentQueryRecord getAppointmentQueryRecord(Type appointmentRecordType) throws OperationFailedException
Appointment
record Type.
Multiple record
retrievals produce a nested OR
term.appointmentRecordType
- an appointment record typeNullArgumentException
- appointmentRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(appointmentRecordType)
is false
mandatory
- This method must be implemented.