public interface DirectoryEntryQuery extends OsidObjectQuery
DirectoryEntryQuery defines methods in common to both
FileQuery and DirectoryQuery.
| Modifier and Type | Method and Description |
|---|---|
void |
clearAliasesTerms()
Clears the aliases terms.
|
void |
clearCreatedTimeTerms()
Clears the created time terms.
|
void |
clearDirectoryTerms()
Clears the directory terms.
|
void |
clearLastAccessTimeTerms()
Clears the last access time terms.
|
void |
clearModifiedTimeTerms()
Clears the modified time terms.
|
void |
clearNameTerms()
Clears the name terms.
|
void |
clearOwnerIdTerms()
Clears the owner
Id terms. |
void |
clearOwnerTerms()
Clears the owner terms.
|
void |
clearPathTerms()
Clears the path terms.
|
DirectoryQuery |
getDirectoryQuery()
Gets the query for a directory to match the parent directory.
|
AgentQuery |
getOwnerQuery()
Gets the query for an agent.
|
void |
matchAliases(boolean match)
Matches aliases only.
|
void |
matchAnyAliases(boolean match)
Matches a file that has any aliases.
|
void |
matchCreatedTime(DateTime start,
DateTime end,
boolean match)
Match directory entries that are created between the specified time
period inclusive.
|
void |
matchLastAccessTime(DateTime start,
DateTime end,
boolean match)
Match directory entries that were last accessed between the specified
time period.
|
void |
matchModifiedTime(DateTime start,
DateTime end,
boolean match)
Match directory entries that are modified between the specified time
period inclusive.
|
void |
matchName(java.lang.String name,
Type stringMatchType,
boolean match)
Matches entry names.
|
void |
matchOwnerId(Id agentId,
boolean match)
Matches files whose entries are owned by the given agent id.
|
void |
matchPath(java.lang.String path,
Type stringMatchType,
boolean match)
Matches an absolute pathname of a directory entry.
|
boolean |
supportsDirectoryQuery()
Tests if a
DirectoryQuery is available. |
boolean |
supportsOwnerQuery()
Tests if an
AgentQuery is available for querying
agents. |
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, supportsSubjectRelevancyQueryclearIdTerms, matchIdclearRecordTerms, matchAnyRecord, matchRecordTypegetRecordTypes, hasRecordTypeclearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypevoid matchName(java.lang.String name,
Type stringMatchType,
boolean match)
AND among the elements each which must correspond to
the stringMatchType. An OR can be
performed with multiple queries.name - name to matchstringMatchType - the string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - name not of
stringMatchType NullArgumentException - name or
stringMatchType is null UnsupportedException -
supportsStringMatchType(stringMatchType) is
false mandatory - This method must be implemented. void clearNameTerms()
mandatory - This method must be implemented. void matchPath(java.lang.String path,
Type stringMatchType,
boolean match)
AND among the elements
each which must correspond to the stringMatchType. An
OR can be performed with multiple queries.path - path to matchstringMatchType - the string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - name not of
stringMatchType NullArgumentException - path or
stringMatchType is null UnsupportedException -
supportsStringMatchType(stringMatchType) is
false mandatory - This method must be implemented. void clearPathTerms()
mandatory - This method must be implemented. boolean supportsDirectoryQuery()
DirectoryQuery is available. true if a directory query is available,
false otherwisemandatory - This method must be implemented. DirectoryQuery getDirectoryQuery()
DirectoryQuery per
DifrectoryEntryQuery. Multiple retrievals return the same
object.UnimplementedException -
supportsDirectoryQuery() is false optional - This method must be implemented if
supportsDirectoryQuery() is true. void clearDirectoryTerms()
mandatory - This method must be implemented. void matchAliases(boolean match)
match - true to match aliases, false
to match target filesmandatory - This method must be implemented. void matchAnyAliases(boolean match)
match - true to match any alias, false
to match objects with no aliasesmandatory - This method must be implemented. void clearAliasesTerms()
mandatory - This method must be implemented. void matchOwnerId(Id agentId, boolean match)
agentId - the agent Id match - true for a positive match, false
for a negative matchNullArgumentException - agentId is
null mandatory - This method must be implemented. void clearOwnerIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsOwnerQuery()
AgentQuery is available for querying
agents. true if an agent query is available,
false otherwisemandatory - This method must be implemented. AgentQuery getOwnerQuery()
UnimplementedException - supportsAgentQuery()
is false optional - This method must be implemented if
supportsAgentQuery() is true. void clearOwnerTerms()
mandatory - This method must be implemented. void matchCreatedTime(DateTime start, DateTime end, boolean match)
start - start time of the queryend - end time of the querymatch - true for a positive match, false
for a negative matchInvalidArgumentException - end is les
than start NullArgumentException - start or
end is null mandatory - This method must be implemented. void clearCreatedTimeTerms()
mandatory - This method must be implemented. void matchModifiedTime(DateTime start, DateTime end, boolean match)
start - start time of the queryend - end time of the querymatch - true for a positive match, false
for a negative matchInvalidArgumentException - end is les
than start NullArgumentException - start or
end is null mandatory - This method must be implemented. void clearModifiedTimeTerms()
mandatory - This method must be implemented. void matchLastAccessTime(DateTime start, DateTime end, boolean match)
start - start time of the queryend - end time of the querymatch - true for a positive match, false
for a negative matchInvalidArgumentException - end is les
than start NullArgumentException - start or
end is null mandatory - This method must be implemented. void clearLastAccessTimeTerms()
mandatory - This method must be implemented.