OSID Logo
OSID Specifications
filing package
Version 3.0.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.

Parametersstringnamename to match
osid.type.TypestringMatchTypethe string match type
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTname not of stringMatchType
NULL_ARGUMENTname or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTname not of stringMatchType
NULL_ARGUMENTpath or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsDirectoryQuery() 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.

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

Matches a file that has any aliases.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTagentId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsAgentQuery() 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTend is les than start
NULL_ARGUMENTstart 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTend is les than start
NULL_ARGUMENTstart 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTend is les than start
NULL_ARGUMENTstart or end is null
CompliancemandatoryThis method must be implemented.
MethodclearLastAccessTimeTerms
Description

Clears the last access time terms.

CompliancemandatoryThis method must be implemented.