OSID Logo
OSID Specifications
filing package
Version 3.1.0
Interfaceosid.filing.DirectoryEntryQuery
Implementsosid.OsidObjectQuery
Implemented Byosid.filing.FileQuery
osid.filing.DirectoryQuery
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.

Parametersstringname name to match
osid.type.TypestringMatchType the 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
Compliancemandatory This method must be implemented.
MethodclearNameTerms
Description

Clears the name terms.

Compliancemandatory This 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.

Parametersstringpath path to match
osid.type.TypestringMatchType the 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
Compliancemandatory This method must be implemented.
MethodclearPathTerms
Description

Clears the path terms.

Compliancemandatory This method must be implemented.
MethodsupportsDirectoryQuery
Description

Tests if a DirectoryQuery is available.

Returnboolean true if a directory query is available, false otherwise
Compliancemandatory This 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.DirectoryQuery the directory query
ErrorsUNIMPLEMENTED supportsDirectoryQuery() is false
Complianceoptional This method must be implemented if supportsDirectoryQuery() is true.
MethodclearDirectoryTerms
Description

Clears the directory terms.

Compliancemandatory This method must be implemented.
MethodmatchAliases
Description

Matches aliases only.

Parametersbooleanmatch true to match aliases, false to match target files
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearAliasesTerms
Description

Clears the aliases terms.

Compliancemandatory This method must be implemented.
MethodmatchOwnerId
Description

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

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

Clears the owner Id terms.

Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetOwnerQuery
Description

Gets the query for an agent.

Returnosid.authentication.AgentQuery the agent query
ErrorsUNIMPLEMENTED supportsAgentQuery() is false
Complianceoptional This method must be implemented if supportsAgentQuery() is true.
MethodclearOwnerTerms
Description

Clears the owner terms.

Compliancemandatory This method must be implemented.
MethodmatchCreatedTime
Description

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

Parametersosid.calendaring.DateTimestart start time of the query
osid.calendaring.DateTimeend end 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
Compliancemandatory This method must be implemented.
MethodclearCreatedTimeTerms
Description

Clears the created time terms.

Compliancemandatory This method must be implemented.
MethodmatchModifiedTime
Description

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

Parametersosid.calendaring.DateTimestart start time of the query
osid.calendaring.DateTimeend end 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
Compliancemandatory This method must be implemented.
MethodclearModifiedTimeTerms
Description

Clears the modified time terms.

Compliancemandatory This method must be implemented.
MethodmatchLastAccessTime
Description

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

Parametersosid.calendaring.DateTimestart start time of the query
osid.calendaring.DateTimeend end 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
Compliancemandatory This method must be implemented.
MethodclearLastAccessTimeTerms
Description

Clears the last access time terms.

Compliancemandatory This method must be implemented.