OSID Logo
OSID Specifications
filing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.filing.DirectoryEntryQuery
Implementsosid.OsidObjectQuery
Description

DirectoryEntryQuery defines methods in common to both FileQuery and DirectoryQuery.

MethodmatchName
Description

Matches entry names. Supplying multiple strings behaves like a boolean AND among the elements each which must correspond to the stringMatchType. An OR can be performed with multiple queries.

Parametersstringnamename to match
osid.type.TypestringMatchTypethe string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT name not of stringMatchType
NULL_ARGUMENT name or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodclearNameTerms
Description

Clears the name terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPath
Description

Matches an absolute pathname of a directory entry. Supplying multiple strings behaves like a boolean AND among the elements each which must correspond to the stringMatchType. An OR can be performed with multiple queries.

Parametersstringpathpath to match
osid.type.TypestringMatchTypethe string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT name not of stringMatchType
NULL_ARGUMENT path or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodclearPathTerms
Description

Clears the path terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDirectoryQuery
Description

Tests if a DirectoryQuery is available.

Returnboolean true if a directory query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDirectoryQuery
Description

Gets the query for a directory to match the parent directory. There is only one DirectoryQuery per DifrectoryEntryQuery. Multiple retrievals return the same object.

Returnosid.filing.DirectoryQuerythe directory query
ErrorsUNIMPLEMENTED supportsDirectoryQuery() is false
ComplianceoptionalThis method must be implemented if supportsDirectoryQuery() is true.
MethodclearDirectoryTerms
Description

Clears the directory terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAliases
Description

Matches aliases only.

Parametersbooleanmatch true to match aliases, false to match target files
CompliancemandatoryThis method must be implemented.
MethodmatchAnyAliases
Description

Matches a file that has any aliases.

Parametersbooleanmatch true to match any alias, false to match objects with no aliases
CompliancemandatoryThis method must be implemented.
MethodclearAliasesTerms
Description

Clears the aliases terms.

CompliancemandatoryThis method must be implemented.
MethodmatchOwnerId
Description

Matches files whose entries are owned by the given agent id.

Parametersosid.id.IdagentIdthe agent Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT agentId is null
CompliancemandatoryThis method must be implemented.
MethodclearOwnerIdTerms
Description

Clears the owner Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsOwnerQuery
Description

Tests if an AgentQuery is available for querying agents.

Returnboolean true if an agent query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetOwnerQuery
Description

Gets the query for an agent.

Returnosid.authentication.AgentQuerythe agent query
ErrorsUNIMPLEMENTED supportsAgentQuery() is false
ComplianceoptionalThis method must be implemented if supportsAgentQuery() is true.
MethodclearOwnerTerms
Description

Clears the owner terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCreatedTime
Description

Match directory entries that are created between the specified time period inclusive.

Parametersosid.calendaring.DateTimestartstart time of the query
osid.calendaring.DateTimeendend time of the query
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT end is les than start
NULL_ARGUMENT start or end is null
CompliancemandatoryThis method must be implemented.
MethodclearCreatedTimeTerms
Description

Clears the created time terms.

CompliancemandatoryThis method must be implemented.
MethodmatchModifiedTime
Description

Match directory entries that are modified between the specified time period inclusive.

Parametersosid.calendaring.DateTimestartstart time of the query
osid.calendaring.DateTimeendend time of the query
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT end is les than start
NULL_ARGUMENT start or end is null
CompliancemandatoryThis method must be implemented.
MethodclearModifiedTimeTerms
Description

Clears the modified time terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLastAccessTime
Description

Match directory entries that were last accessed between the specified time period.

Parametersosid.calendaring.DateTimestartstart time of the query
osid.calendaring.DateTimeendend time of the query
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT end is les than start
NULL_ARGUMENT start or end is null
CompliancemandatoryThis method must be implemented.
MethodclearLastAccessTimeTerms
Description

Clears the last access time terms.

CompliancemandatoryThis method must be implemented.