OSID Logo
OSID Specifications
filing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.filing.FilingManager
Implementsosid.OsidManager
osid.filing.FilingProfile
Description

The filing manager provides access sessions to retrieve and manage files and directories. Some of the federated access methods support pathnames in addition to directory Ids. The sessions included in this manager are:

  • FileSystemSession: a session for traversing file systems
  • FileSystemManagementSession: a session for performing operations across directories
  • FileContentSession: a basic session for reading and writing a file
  • FileLookupSession: a session for looking up files
  • FileQuerySession: a session for searching for files
  • FileSearchSession: a session for searching for files
  • FileNotificationSession: a session for subscribing to changes in files
  • FileSmartDirectorySession: a session for managing smart directories of files
  • DirectoryLookupSession: a session for looking up a directories
  • DirectorQuerySession: a session for searching for directories
  • DirectorySearchSession: a session for searching for directories
  • DirectoryNotificationSession: a session for subscribing to changes in directories
MethodgetFileSystemSession
Description

Gets the session for examining file systems.

Returnosid.filing.FileSystemSessiona FileSystemSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileSystem() is false
ComplianceoptionalThis method must be implemented if supportsFileSystem() is true.
MethodgetFileSystemSessionForPath
Description

Gets the session for exmaning file systems for the given path.

Parametersstringpaththe path to a directory
Returnosid.filing.FileSystemSessiona FileSystemSession
ErrorsNOT_FOUND path is not found or is not a directory
NULL_ARGUMENT path is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileSystem() is false
ComplianceoptionalThis method must be implemented if supportsFileSystem() and supportsVisibleFederation() are true.
MethodgetFileSystemSessionForDirectory
Description

Gets the session for exmaning file systems for the given directory.

Parametersosid.id.IddirectoryIdthe Id of a directory
Returnosid.filing.FileSystemSessiona FileSystemSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileSystem() is false
ComplianceoptionalThis method must be implemented if supportsFileSystem() and supportsVisibleFederation() are true.
MethodgetFileSystemManagementSession
Description

Gets the session for manipulating file systems.

Returnosid.filing.FileSystemManagementSessiona FileSystemManagementSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileSystemManagement() is false
ComplianceoptionalThis method must be implemented if supportsFileSystemManagement() is true.
MethodgetFileSystemManagementSessionForPath
Description

Gets the session for manipulating files for the given path.

Parametersstringpaththe path to a directory
Returnosid.filing.FileSystemManagementSessiona FileSystemManagementSession
ErrorsNOT_FOUND path is not found or is not a directory
NULL_ARGUMENT path is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileSystemManagement() is false
ComplianceoptionalThis method must be implemented if supportsFileSystemManagement() and supportsVisibleFederation() are true.
MethodgetFileSystemManagementSessionForDirectory
Description

Gets the session for manipulating files for the given path.

Parametersosid.id.IddirectoryIdthe Id of a directory
Returnosid.filing.FileSystemManagementSessiona FileSystemManagementSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileSystemManagement() is false
ComplianceoptionalThis method must be implemented if supportsFileSystemManagement() and supportsVisibleFederation() are true.
MethodgetFileContentSession
Description

Gets the session for reading and writing files.

Returnosid.filing.FileContentSessiona FileContentSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileContent() is false
ComplianceoptionalThis method must be implemented if supportsFileContent() is true.
MethodgetFileContentSessionForPath
Description

Gets the session for reading and writing files for the given path.

Parametersstringpaththe path to a directory
Returnosid.filing.FileContentSessiona FileContentSession
ErrorsNOT_FOUND path is not found or is not a directory
NULL_ARGUMENT path is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileContent() is false
ComplianceoptionalThis method must be implemented if supportsFileContent() and supportsVisibleFederation() are true.
MethodgetFileContentSessionForDirectory
Description

Gets the session for reading and writing files for the given path.

Parametersosid.id.IddirectoryIdthe Id of a directory
Returnosid.filing.FileContentSessiona FileContentSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileContent() is false
ComplianceoptionalThis method must be implemented if supportsFileContent() and supportsVisibleFederation() are true.
MethodgetFileLookupSession
Description

Gets the session for looking up files.

Returnosid.filing.FileLookupSessionthe FileLookupSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileLookup() is false
ComplianceoptionalThis method must be implemented if supportsFileLookup() is true.
MethodgetFileLookupSessionForDirectory
Description

Gets the session for manipulating files for the given path.

Parametersosid.id.IddirectoryIdthe Id of the directory
Returnosid.filing.FileLookupSessiona FileLookupSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileLookup() is false
ComplianceoptionalThis method must be implemented if supportsFileLookup() and supportsVisibleFederation() are true.
MethodgetFileQuerySession
Description

Gets the session for querying files.

Returnosid.filing.FileQuerySessionthe FileQuerySession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileQuery() is false
ComplianceoptionalThis method must be implemented if supportsFileQuery() is true.
MethodgetFileQuerySessionForDirectory
Description

Gets a file query session for the specified directory.

Parametersosid.id.IddirectoryIdthe Id of the directory
Returnosid.filing.FileQuerySessiona FileQuerySession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileQuery() is false
ComplianceoptionalThis method must be implemented if supportsFileQuery() and supportsVisibleFederation() are true.
MethodgetFileSearchSession
Description

Gets the session for searching for files.

Returnosid.filing.FileSearchSessionthe FileSearchSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileSearch() is false
ComplianceoptionalThis method must be implemented if supportsFileSearch() is true.
MethodgetFileSearchSessionForDirectory
Description

Gets a file search session for the specified directory.

Parametersosid.id.IddirectoryIdthe Id of the directory
Returnosid.filing.FileSearchSessiona FileSearchSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileSearch() is false
ComplianceoptionalThis method must be implemented if supportsFileSearch() and supportsVisibleFederation() are true.
MethodgetFileNotificationSession
Description

Gets the session for receiving messages about changes to files.

Parametersosid.filing.FileReceiverfileReceiverthe notification callback
Returnosid.filing.FileNotificationSession a FileNotificationSession
ErrorsNULL_ARGUMENT fileReceiver is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileNotification() is false
ComplianceoptionalThis method must be implemented if supportsFileNotification() is true.
MethodgetFileNotificationSessionForDirectory
Description

Gets a file notification session for the specified directory.

Parametersosid.filing.FileReceiverfileReceiverthe notification callback
osid.id.IddirectoryIdthe Id of the directory
Returnosid.filing.FileNotificationSessiona FileNotificationSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT fileReceiver or directoryId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileNotification() is false
ComplianceoptionalThis method must be implemented if supportsFileNotification() and supportsVisibleFederation() are true.
MethodgetFileSmartDirectorySession
Description

Gets the session for managing dynamic directories.

Parametersosid.id.IddirectoryIdthe Id of the directory
Returnosid.filing.FileSmartDirectorySessiona FileSmartDirectorySession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFileSmartDirectory() is false
ComplianceoptionalThis method must be implemented if supportsFileSmartDirectory() and supportsVisibleFederation() are true.
MethodgetDirectoryLookupSession
Description

Gets the session for examining directories.

Returnosid.filing.DirectoryLookupSessiona DirectoryLookupSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsDirectoryLookup() is false
ComplianceoptionalThis method must be implemented if supportsDirectoryLookup() is true.
MethodgetDirectoryLookupSessionForDirectory
Description

Gets the session for examining a given directory.

Parametersosid.id.IddirectoryIdthe Id of the directory
Returnosid.filing.DirectoryLookupSessiona DirectoryLookupSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsDirectoryLookup() is false
ComplianceoptionalThis method must be implemented if supportsDirectoryLookup() and supportsVisibleFederation() are true.
MethodgetDirectoryQuerySession
Description

Gets the session for querying directories.

Returnosid.filing.DirectoryQuerySessiona DirectoryQuerySession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsDirectoryQuery() is false
ComplianceoptionalThis method must be implemented if supportsDirectoryQuery() is true.
MethodgetDirectoryQuerySessionForDirectory
Description

Gets the session for querying directories within a given directory.

Parametersosid.id.IddirectoryIdthe Id of the directory
Returnosid.filing.DirectoryQuerySessiona DirectoryQuerySession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsDirectoryQuery() is false
ComplianceoptionalThis method must be implemented if supportsDirectoryQuery() and supportsVisibleFederation() are true.
MethodgetDirectorySearchSession
Description

Gets the session for searching for directories.

Returnosid.filing.DirectorySearchSessiona DirectorySearchSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsDirectorySearch() is false
ComplianceoptionalThis method must be implemented if supportsDirectorySearch() is true.
MethodgetDirectorySearchSessionForDirectory
Description

Gets the session for searching for directories within a given directory.

Parametersosid.id.IddirectoryIdthe Id of the directory
Returnosid.filing.DirectorySearchSessiona DirectorySearchSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsDirectorySearch() is false
ComplianceoptionalThis method must be implemented if supportsDirectorySearch() and supportsVisibleFederation() are true.
MethodgetDirectoryAdminSession
Description

Gets the session for creating and removing files.

Returnosid.filing.DirectoryAdminSessiona DirectoryAdminSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsDirectoryAdmin() is false
ComplianceoptionalThis method must be implemented if supportsDirectoryAdmin() is true.
MethodgetDirectoryAdminSessionForDirectory
Description

Gets the session for searching for creating and removing files in the given directory.

Parametersosid.id.IddirectoryIdthe Id of the directory
Returnosid.filing.DirectoryAdminSessiona DirectoryAdminSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsDirectoryAdmin() is false
ComplianceoptionalThis method must be implemented if supportsDirectoryAdmin() and supportsVisibleFederation() are true.
MethodgetDirectoryNotificationSession
Description

Gets the session for receiving messages about changes to directories.

Parametersosid.filing.DirectoryReceiverdirectoryReceiverthe notification callback
Returnosid.filing.DirectoryNotificationSessiona DirectoryNotificationSession
ErrorsNULL_ARGUMENT directoryReceiver is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsDirectoryNotification() is false
ComplianceoptionalThis method must be implemented if supportsDirectoryNotification() is true.
MethodgetDirectoryNotificationSessionForDirectory
Description

Gets the session for receiving messages about changes to directories in the given directory.

Parametersosid.filing.DirectoryReceiverdirectoryReceiverthe notification callback
osid.id.IddirectoryIdthe Id of the directory
Returnosid.filing.DirectoryNotificationSessiona DirectoryNotificationSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryReceiver or directoryId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsDirectoryNotification() is false
ComplianceoptionalThis method must be implemented if supportsDirectoryNotification() and supportsVisibleFederation() are true.
MethodgetFilingAllocationManager
Description

Gets the FilingAllocationManager.

Returnosid.filing.allocation.FilingAllocationManagera FilingAllocationManager
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsFilingAllocation() is false
ComplianceoptionalThis method must be implemented if supportsFilingAllocation() is true.