public interface OfficeQuery extends OsidCatalogQuery
This is the query for searching offices. Each method match specifies an
AND
term while multiple invocations of the same method
produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearAncestorOfficeIdTerms()
Clears the ancestor office
Id query terms. |
void |
clearAncestorOfficeTerms()
Clears the ancestor office query terms.
|
void |
clearDescendantOfficeIdTerms()
Clears the descendant office
Id query terms. |
void |
clearDescendantOfficeTerms()
Clears the descendant office query terms.
|
void |
clearProcessIdTerms()
Clears the process query terms.
|
void |
clearProcessTerms()
Clears the process query terms.
|
void |
clearStepIdTerms()
Clears the step
Id query terms. |
void |
clearStepTerms()
Clears the step query terms.
|
void |
clearWorkIdTerms()
Clears the work
Id query terms. |
void |
clearWorkTerms()
Clears the work query terms.
|
OfficeQuery |
getAncestorOfficeQuery()
Gets the query for a office/ Multiple retrievals produce a nested
OR term. |
OfficeQuery |
getDescendantOfficeQuery()
Gets the query for a office/ Multiple retrievals produce a nested
OR term. |
OfficeQueryRecord |
getOfficeQueryRecord(Type officeRecordType)
Gets the office query corresponding to the given
Office
record Type. |
ProcessQuery |
getProcessQuery()
Gets the query for a process.
|
StepQuery |
getStepQuery()
Gets the query for an step.
|
WorkQuery |
getWorkQuery()
Gets the query for a work.
|
void |
matchAncestorOfficeId(Id officeId,
boolean match)
Sets the office
Id for this query to match offices that
have the specified office as an ancestor. |
void |
matchAnyAncestorOffice(boolean match)
Matches offices with any ancestor.
|
void |
matchAnyDescendantOffice(boolean match)
Matches offices with any descendant.
|
void |
matchAnyProcess(boolean match)
Matches offices that have any process.
|
void |
matchAnyStep(boolean match)
Matches offices with any step.
|
void |
matchAnyWork(boolean match)
Matches offices that have any work.
|
void |
matchDescendantOfficeId(Id officeId,
boolean match)
Sets the office
Id for this query to match offices that
have the specified office as a descendant. |
void |
matchProcessId(Id processId,
boolean match)
Sets the step
Id for this query to match offices
containing process. |
void |
matchStepId(Id stepId,
boolean match)
Sets the step
Id for this query. |
void |
matchWorkId(Id workId,
boolean match)
Sets the work
Id for this query. |
boolean |
supportsAncestorOfficeQuery()
Tests if a
OfficeQuery is available. |
boolean |
supportsDescendantOfficeQuery()
Tests if a
OfficeQuery is available. |
boolean |
supportsProcessQuery()
Tests if a
ProcessQuery is available. |
boolean |
supportsStepQuery()
Tests if an
StepQuery is available. |
boolean |
supportsWorkQuery()
Tests if a
WorkQuery is available. |
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
clearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQuery
void matchProcessId(Id processId, boolean match)
Id
for this query to match offices
containing process.processId
- the process Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- processId
is
null
mandatory
- This method must be implemented. void clearProcessIdTerms()
mandatory
- This method must be implemented. boolean supportsProcessQuery()
ProcessQuery
is available. true
if a process query is available,
false
otherwisemandatory
- This method must be implemented. ProcessQuery getProcessQuery()
OR
term.UnimplementedException
- supportsProcessQuery()
is false
optional
- This method must be implemented if
supportsProcessQuery()
is true.
void matchAnyProcess(boolean match)
match
- true
to match offices with any process,
false
to match offices with no processmandatory
- This method must be implemented. void clearProcessTerms()
mandatory
- This method must be implemented. void matchStepId(Id stepId, boolean match)
Id
for this query.stepId
- the step Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- stepId
is
null
mandatory
- This method must be implemented. void clearStepIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsStepQuery()
StepQuery
is available. true
if an step query is available,
false
otherwisemandatory
- This method must be implemented. StepQuery getStepQuery()
OR
term.UnimplementedException
- supportsStepQuery()
is false
optional
- This method must be implemented if
supportsStepQuery()
is true.
void matchAnyStep(boolean match)
match
- true
to match offices with any step,
false
to match offices with no stepmandatory
- This method must be implemented. void clearStepTerms()
mandatory
- This method must be implemented. void matchWorkId(Id workId, boolean match)
Id
for this query.workId
- the work Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- workId
is
null
mandatory
- This method must be implemented. void clearWorkIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsWorkQuery()
WorkQuery
is available. true
if a work query is available, false
otherwisemandatory
- This method must be implemented. WorkQuery getWorkQuery()
OR
term.UnimplementedException
- supportsWorkQuery()
is false
optional
- This method must be implemented if
supportsWorkQuery()
is true.
void matchAnyWork(boolean match)
match
- true
to match offices with any work,
false
to match offices with no processmandatory
- This method must be implemented. void clearWorkTerms()
mandatory
- This method must be implemented. void matchAncestorOfficeId(Id officeId, boolean match)
Id
for this query to match offices that
have the specified office as an ancestor.officeId
- a office Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- officeId
is
null
mandatory
- This method must be implemented. void clearAncestorOfficeIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsAncestorOfficeQuery()
OfficeQuery
is available. true
if a office query is available,
false
otherwisemandatory
- This method must be implemented. OfficeQuery getAncestorOfficeQuery()
OR
term.UnimplementedException
-
supportsAncestorOfficeQuery()
is false
optional
- This method must be implemented if
supportsAncestorOfficeQuery()
is true.
void matchAnyAncestorOffice(boolean match)
match
- true
to match offices with any ancestor,
false
to match root officesmandatory
- This method must be implemented. void clearAncestorOfficeTerms()
mandatory
- This method must be implemented. void matchDescendantOfficeId(Id officeId, boolean match)
Id
for this query to match offices that
have the specified office as a descendant.officeId
- a office Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- officeId
is
null
mandatory
- This method must be implemented. void clearDescendantOfficeIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsDescendantOfficeQuery()
OfficeQuery
is available. true
if a office query is available,
false
otherwisemandatory
- This method must be implemented. OfficeQuery getDescendantOfficeQuery()
OR
term.UnimplementedException
-
supportsDescendantOfficeQuery()
is false
optional
- This method must be implemented if
supportsDescendantOfficeQuery()
is true.
void matchAnyDescendantOffice(boolean match)
match
- true
to match offices with any
descendant, false
to match leaf officesmandatory
- This method must be implemented. void clearDescendantOfficeTerms()
mandatory
- This method must be implemented. OfficeQueryRecord getOfficeQueryRecord(Type officeRecordType) throws OperationFailedException
Office
record Type.
Multiple record retrievals produce a
nested OR
term.officeRecordType
- a office record typeNullArgumentException
- officeRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(officeRecordType)
is false
mandatory
- This method must be implemented.