Interface RealmQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidCatalogQuery, OsidExtensibleQuery, OsidFederateableQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidSourceableQuery, Suppliable
This is the query for searching for realms. Each method specifies an
AND term while multiple invocations of the same method produce a
nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears all ancestor realmIdterms.voidClears all ancestor realm terms.voidClears all appointmentIdterms.voidClears all appointment terms.voidClears all descendant realmIdterms.voidClears all descendant realm terms.voidClears all organizationIdterms.voidClears all organization terms.voidClears all personIdterms.voidClears all person terms.voidClears all positionIdterms.voidClears all position terms.Gets the query for a realm.Gets the query for an appointment.Gets the query for a realm.Gets the query for an organization.Gets the query for a person.Gets the query for a position.getRealmQueryRecord(Type realmRecordType) Gets the record query corresponding to the givenRealmrecordType.Multiple record retrievals produce a nested booleanORterm.voidmatchAncestorRealmId(Id realmId, boolean match) Sets the realmIdfor this query to match realms that have the specified realm as an ancestor.voidmatchAnyAncestorRealm(boolean match) Matches realms with any ancestor.voidmatchAnyAppointment(boolean match) Matches realms with any appointment.voidmatchAnyDescendantRealm(boolean match) Matches realms with any descendant.voidmatchAnyOrganization(boolean match) Matches realms with any organization.voidmatchAnyPerson(boolean match) Matches realms with any person.voidmatchAnyPosition(boolean match) Matches realms with any position.voidmatchAppointmentId(Id appointmentId, boolean match) Sets the appointmentIdfor this query to match positions assigned to realms.voidmatchDescendantRealmId(Id realmId, boolean match) Sets the realmIdfor this query to match realms that have the specified realm as a descendant.voidmatchOrganizationId(Id organizationId, boolean match) Sets the organizationIdfor this query to match organizations assigned to realms.voidmatchPersonId(Id personId, boolean match) Sets the personIdfor this query to match persons assigned to realms.voidmatchPositionId(Id positionId, boolean match) Sets the positionIdfor this query to match positions assigned to realms.booleanTests if aRealmQueryis available.booleanTests if an appointment query is available.booleanTests if aRealmQueryis available.booleanTests if an organization query is available.booleanTests if a person query is available.booleanTests if a position query is available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeModifier and TypeMethodDescriptionvoidClears all recordTypeterms.voidmatchAnyRecord(boolean match) Matches an object that has any record.voidmatchRecordType(Type recordType, boolean match) Sets aTypefor querying objects having records implementing a given record type.Methods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdModifier and TypeMethodDescriptionvoidClears allIdterms.voidAdds anIdto match.Methods inherited from interface OsidObjectQuery
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, supportsSubjectRelevancyQueryModifier and TypeMethodDescriptionvoidClears all commentIdterms.voidClears all comment terms.voidClears all creditIdterms.voidClears all credit terms.voidClears all description terms.voidClears all display name terms.voidClears all genus type terms.voidClears all journal entryIdterms.voidClears all journal entry terms.voidClears all genus type terms.voidClears all relationshipIdterms.voidClears all relationshipIdterms.voidClears all relationship terms.voidClears all stateIdterms.voidClears all state terms.voidClears all statistic terms.voidClears all subjectIdterms.voidClears all subject relevancy terms.voidClears all subject terms.Gets the query for a comment.Gets the query for an ackowledgement credit.Gets the query for a journal entry.Gets the query for relationship.Gets the query for a state.Gets the query for a statistic.Gets the query for a subject.Gets the query for a subject relevancy.voidmatchAnyComment(boolean match) Matches an object that has anyCommentin the givenBook.voidmatchAnyCredit(boolean match) Matches an object that has anyCredit.voidmatchAnyDescription(boolean match) Matches a description that has any value.voidmatchAnyDisplayName(boolean match) Matches any object with a display name.voidmatchAnyGenusType(boolean match) Matches an object that has any genus type.voidmatchAnyJournalEntry(boolean match) Matches an object that has anyJournalEntryin the givenJournal.voidmatchAnyRelationship(boolean match) Matches an object that has anyRelationship.voidmatchAnyState(boolean match) Matches an object that has any mapping to aStatein the givenProcess.voidmatchAnyStatistic(boolean match) Matches an object that has anyStatistic.voidmatchAnySubject(boolean match) Matches an object that has any relationship to aSubject.voidmatchCommentId(Id commentId, boolean match) Matches an object that has the given comment.voidmatchCreditId(Id creditId, boolean match) Matches an object that has the given credit.voidmatchDescription(String description, Type stringMatchType, boolean match) Adds a description name to match.voidmatchDisplayName(String displayName, Type stringMatchType, boolean match) Adds a display name to match.voidmatchGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchJournalEntryId(Id journalEntryId, boolean match) Matches an object that has the given journal entry.voidmatchParentGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchRelationshipId(Id relationshipId, boolean match) Matches an object that has the given relationship.voidmatchRelationshipPeerId(Id peerId, boolean match) Matches an object that has a relationship to the given peerId.voidmatchStateId(Id stateId, boolean match) Matches an object mapped to the given state.voidmatchSubjectId(Id subjectId, boolean match) Matches an object with a relationship to the given subject.booleanTests if aCommentQueryis available.booleanTests if aCreditQueryis available to provide queries of related acknowledgements.booleanTests if aJournalEntryis available to provide queries of journaledOsidObjects.booleanTests if aRelationshipQueryis available.booleanTests if aStateQueryis available to provide queries of processed objects.booleanTests if aStatisticQueryis available to provide statistical queries.booleanTests if aSubjectQueryis available.booleanTests if aRelevancyQueryis available to provide queries about the relationships toSubjects.Methods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeModifier and TypeMethodDescriptionvoidClears the match any terms.voidClears all keyword terms.Gets the string matching types supported.voidmatchAny(boolean match) Matches any object.voidmatchKeyword(String keyword, Type stringMatchType, boolean match) Adds a keyword to match.booleansupportsStringMatchType(Type stringMatchType) Tests if the given string matching type is supported.Methods inherited from interface OsidSourceableQuery
clearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQueryModifier and TypeMethodDescriptionvoidClears all assetIdterms.voidClears all branding terms.voidClears all license terms.voidClears all providerIdterms.voidClears all provider terms.getBrandingQuery(boolean match) Gets the query for an asset.getProviderQuery(boolean match) Gets the query for the provider.voidmatchAnyBranding(boolean match) Match sourceables with any branding.voidmatchAnyLicense(boolean match) Matches any object with a license.voidmatchAnyProvider(boolean match) Match sourceables with a provider value.voidmatchBrandingId(Id assetId, boolean match) Match theIdof an asset used for branding.voidmatchLicense(String license, Type stringMatchType, boolean match) Adds a license to match.voidmatchProviderId(Id resourceId, boolean match) Match theIdof the provider resource.booleanTests if anAssetQueryfor the branding is available.booleanTests if aResourceQueryfor the provider is available.
-
Method Details
-
matchPersonId
Sets the personIdfor this query to match persons assigned to realms.- Parameters:
personId- a personIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-personIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearPersonIdTerms
void clearPersonIdTerms()Clears all personIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsPersonQuery
boolean supportsPersonQuery()Tests if a person query is available.- Returns:
trueif a person query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPersonQuery
PersonQuery getPersonQuery()Gets the query for a person.- Returns:
- the person query
- Throws:
UnimplementedException-supportsPersonQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsPersonQuery()} is {@code true} .
-
matchAnyPerson
void matchAnyPerson(boolean match) Matches realms with any person.- Parameters:
match-trueto match realms with any person,falseto match realms with no persons- Compliance:
mandatory- This method must be implemented.
-
clearPersonTerms
void clearPersonTerms()Clears all person terms.- Compliance:
mandatory- This method must be implemented.
-
matchOrganizationId
Sets the organizationIdfor this query to match organizations assigned to realms.- Parameters:
organizationId- an organizationIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-organizationIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearOrganizationIdTerms
void clearOrganizationIdTerms()Clears all organizationIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsOrganizationQuery
boolean supportsOrganizationQuery()Tests if an organization query is available.- Returns:
trueif an organization query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getOrganizationQuery
OrganizationQuery getOrganizationQuery()Gets the query for an organization.- Returns:
- the organization query
- Throws:
UnimplementedException-supportsOrganizationQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsOrganizationQuery()} is {@code true} .
-
matchAnyOrganization
void matchAnyOrganization(boolean match) Matches realms with any organization.- Parameters:
match-trueto match realms with any organization,falseto match realms with no organizations- Compliance:
mandatory- This method must be implemented.
-
clearOrganizationTerms
void clearOrganizationTerms()Clears all organization terms.- Compliance:
mandatory- This method must be implemented.
-
matchPositionId
Sets the positionIdfor this query to match positions assigned to realms.- Parameters:
positionId- a positionIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-positionIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearPositionIdTerms
void clearPositionIdTerms()Clears all positionIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsPositionQuery
boolean supportsPositionQuery()Tests if a position query is available.- Returns:
trueif a position query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPositionQuery
PositionQuery getPositionQuery()Gets the query for a position.- Returns:
- the position query
- Throws:
UnimplementedException-supportsPositionQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsPositionQuery()} is {@code true} .
-
matchAnyPosition
void matchAnyPosition(boolean match) Matches realms with any position.- Parameters:
match-trueto match realms with any position,falseto match realms with no positions- Compliance:
mandatory- This method must be implemented.
-
clearPositionTerms
void clearPositionTerms()Clears all position terms.- Compliance:
mandatory- This method must be implemented.
-
matchAppointmentId
Sets the appointmentIdfor this query to match positions assigned to realms.- Parameters:
appointmentId- an appointmentIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-appointmentIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAppointmentIdTerms
void clearAppointmentIdTerms()Clears all appointmentIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsAppointmentQuery
boolean supportsAppointmentQuery()Tests if an appointment query is available.- Returns:
trueif an appointment query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAppointmentQuery
AppointmentQuery getAppointmentQuery()Gets the query for an appointment.- Returns:
- the appointment query
- Throws:
UnimplementedException-supportsAppointmentQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAppointmentQuery()} is {@code true} .
-
matchAnyAppointment
void matchAnyAppointment(boolean match) Matches realms with any appointment.- Parameters:
match-trueto match realms with any appointment,falseto match realms with no appointments- Compliance:
mandatory- This method must be implemented.
-
clearAppointmentTerms
void clearAppointmentTerms()Clears all appointment terms.- Compliance:
mandatory- This method must be implemented.
-
matchAncestorRealmId
Sets the realmIdfor this query to match realms that have the specified realm as an ancestor.- Parameters:
realmId- a realmIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-realmIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAncestorRealmIdTerms
void clearAncestorRealmIdTerms()Clears all ancestor realmIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsAncestorRealmQuery
boolean supportsAncestorRealmQuery()Tests if aRealmQueryis available.- Returns:
trueif a realm query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAncestorRealmQuery
RealmQuery getAncestorRealmQuery()Gets the query for a realm. Multiple retrievals produce a nestedORterm.- Returns:
- the realm query
- Throws:
UnimplementedException-supportsAncestorRealmQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAncestorRealmQuery()} is {@code true} .
-
matchAnyAncestorRealm
void matchAnyAncestorRealm(boolean match) Matches realms with any ancestor.- Parameters:
match-trueto match realms with any ancestor,falseto match root realms- Compliance:
mandatory- This method must be implemented.
-
clearAncestorRealmTerms
void clearAncestorRealmTerms()Clears all ancestor realm terms.- Compliance:
mandatory- This method must be implemented.
-
matchDescendantRealmId
Sets the realmIdfor this query to match realms that have the specified realm as a descendant.- Parameters:
realmId- a realmIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-realmIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearDescendantRealmIdTerms
void clearDescendantRealmIdTerms()Clears all descendant realmIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsDescendantRealmQuery
boolean supportsDescendantRealmQuery()Tests if aRealmQueryis available.- Returns:
trueif a realm query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDescendantRealmQuery
RealmQuery getDescendantRealmQuery()Gets the query for a realm. Multiple retrievals produce a nestedORterm.- Returns:
- the realm query
- Throws:
UnimplementedException-supportsDescendantRealmQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDescendantRealmQuery()} is {@code true} .
-
matchAnyDescendantRealm
void matchAnyDescendantRealm(boolean match) Matches realms with any descendant.- Parameters:
match-trueto match realms with any descendant,falseto match leaf realms- Compliance:
mandatory- This method must be implemented.
-
clearDescendantRealmTerms
void clearDescendantRealmTerms()Clears all descendant realm terms.- Compliance:
mandatory- This method must be implemented.
-
getRealmQueryRecord
Gets the record query corresponding to the givenRealmrecordType.Multiple record retrievals produce a nested booleanORterm.- Parameters:
realmRecordType- a realm record type- Returns:
- the realm query record
- Throws:
NullArgumentException-realmRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(realmRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-