public interface LeaseQuery extends OsidRelationshipQuery
This is the query for searching for leases. Each method specifies an
AND
term while multiple invocations of the same method
produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearCampusIdTerms()
Clears the campus
Id terms. |
void |
clearCampusTerms()
Clears the campus terms.
|
void |
clearRoomIdTerms()
Clears the room
Id terms. |
void |
clearRoomTerms()
Clears the room terms.
|
void |
clearTenantIdTerms()
Clears the tenant
Id terms. |
void |
clearTenantTerms()
Clears the tenant terms.
|
CampusQuery |
getCampusQuery()
Gets the query for a campus query.
|
LeaseQueryRecord |
getLeaseQueryRecord(Type leaseRecordType)
Gets the lease query record corresponding to the given
Lease
record Type. |
RoomQuery |
getRoomQuery()
Gets the query for a lease.
|
ResourceQuery |
getTenantQuery()
Gets the query for a tenant resource.
|
void |
matchCampusId(Id campusId,
boolean match)
Sets the lease
Id for this query to match rooms
assigned to campuses. |
void |
matchRoomId(Id roomId,
boolean match)
Sets the room
Id for this query to match rooms assigned
to leases. |
void |
matchTenantId(Id resourceId,
boolean match)
Sets the resource
Id for this query to match rooms
assigned to leases. |
boolean |
supportsCampusQuery()
Tests if a
CampusQuery is available. |
boolean |
supportsRoomQuery()
Tests if a room query is available.
|
boolean |
supportsTenantQuery()
Tests if a tenant query 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 matchRoomId(Id roomId, boolean match)
Id
for this query to match rooms assigned
to leases.roomId
- a room Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- roomId
is
null
mandatory
- This method must be implemented. void clearRoomIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsRoomQuery()
true
if a room query is available, false
otherwisemandatory
- This method must be implemented. RoomQuery getRoomQuery()
UnimplementedException
- supportsRoomQuery()
is false
optional
- This method must be implemented if
supportsRoomQuery()
is true.
void clearRoomTerms()
mandatory
- This method must be implemented. void matchTenantId(Id resourceId, boolean match)
Id
for this query to match rooms
assigned to leases.resourceId
- a resource Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- resourceId
is
null
mandatory
- This method must be implemented. void clearTenantIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsTenantQuery()
true
if a tenant query is available,
false
otherwisemandatory
- This method must be implemented. ResourceQuery getTenantQuery()
UnimplementedException
- supportsTenantQuery()
is false
optional
- This method must be implemented if
supportsTenantQuery()
is true.
void clearTenantTerms()
mandatory
- This method must be implemented. void matchCampusId(Id campusId, boolean match)
Id
for this query to match rooms
assigned to campuses.campusId
- a campus Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- campusId
is
null
mandatory
- This method must be implemented. void clearCampusIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsCampusQuery()
CampusQuery
is available. true
if a campus query is available,
false
otherwisemandatory
- This method must be implemented. CampusQuery getCampusQuery()
OR
term.UnimplementedException
- supportsCampusQuery()
is false
optional
- This method must be implemented if
supportsCampusQuery()
is true.
void clearCampusTerms()
mandatory
- This method must be implemented. LeaseQueryRecord getLeaseQueryRecord(Type leaseRecordType) throws OperationFailedException
Lease
record Type.
Multiple record retrievals produce
a nested boolean OR
term.leaseRecordType
- a lease record typeNullArgumentException
- leaseRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(leaseRecordType)
is false
mandatory
- This method must be implemented.