OSID Logo
OSID Specifications
filing package
Version 3.1.0
Interfaceosid.filing.FilingManager
Implementsosid.OsidManager
osid.filing.FilingProfile
Used Byosid.orchestration.OrchestrationManager
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.FileSystemSession a FileSystemSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileSystem() is false
Complianceoptional This method must be implemented if supportsFileSystem() is true.
MethodgetFileSystemSessionForPath
Description

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

Parametersstringpath the path to a directory
Returnosid.filing.FileSystemSession a FileSystemSession
ErrorsNOT_FOUND path is not found or is not a directory
NULL_ARGUMENT path is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileSystem() is false
Complianceoptional This 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.IddirectoryId the Id of a directory
Returnosid.filing.FileSystemSession a FileSystemSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileSystem() is false
Complianceoptional This method must be implemented if supportsFileSystem() and supportsVisibleFederation() are true.
MethodgetFileSystemManagementSession
Description

Gets the session for manipulating file systems.

Returnosid.filing.FileSystemManagementSession a FileSystemManagementSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileSystemManagement() is false
Complianceoptional This method must be implemented if supportsFileSystemManagement() is true.
MethodgetFileSystemManagementSessionForPath
Description

Gets the session for manipulating files for the given path.

Parametersstringpath the path to a directory
Returnosid.filing.FileSystemManagementSession a FileSystemManagementSession
ErrorsNOT_FOUND path is not found or is not a directory
NULL_ARGUMENT path is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileSystemManagement() is false
Complianceoptional This method must be implemented if supportsFileSystemManagement() and supportsVisibleFederation() are true.
MethodgetFileSystemManagementSessionForDirectory
Description

Gets the session for manipulating files for the given path.

Parametersosid.id.IddirectoryId the Id of a directory
Returnosid.filing.FileSystemManagementSession a FileSystemManagementSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileSystemManagement() is false
Complianceoptional This method must be implemented if supportsFileSystemManagement() and supportsVisibleFederation() are true.
MethodgetFileContentSession
Description

Gets the session for reading and writing files.

Returnosid.filing.FileContentSession a FileContentSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileContent() is false
Complianceoptional This method must be implemented if supportsFileContent() is true.
MethodgetFileContentSessionForPath
Description

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

Parametersstringpath the path to a directory
Returnosid.filing.FileContentSession a FileContentSession
ErrorsNOT_FOUND path is not found or is not a directory
NULL_ARGUMENT path is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileContent() is false
Complianceoptional This 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.IddirectoryId the Id of a directory
Returnosid.filing.FileContentSession a FileContentSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileContent() is false
Complianceoptional This method must be implemented if supportsFileContent() and supportsVisibleFederation() are true.
MethodgetFileLookupSession
Description

Gets the session for looking up files.

Returnosid.filing.FileLookupSession the FileLookupSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileLookup() is false
Complianceoptional This method must be implemented if supportsFileLookup() is true.
MethodgetFileLookupSessionForDirectory
Description

Gets the session for manipulating files for the given path.

Parametersosid.id.IddirectoryId the Id of the directory
Returnosid.filing.FileLookupSession a FileLookupSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileLookup() is false
Complianceoptional This method must be implemented if supportsFileLookup() and supportsVisibleFederation() are true.
MethodgetFileQuerySession
Description

Gets the session for querying files.

Returnosid.filing.FileQuerySession the FileQuerySession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileQuery() is false
Complianceoptional This method must be implemented if supportsFileQuery() is true.
MethodgetFileQuerySessionForDirectory
Description

Gets a file query session for the specified directory.

Parametersosid.id.IddirectoryId the Id of the directory
Returnosid.filing.FileQuerySession a FileQuerySession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileQuery() is false
Complianceoptional This method must be implemented if supportsFileQuery() and supportsVisibleFederation() are true.
MethodgetFileSearchSession
Description

Gets the session for searching for files.

Returnosid.filing.FileSearchSession the FileSearchSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileSearch() is false
Complianceoptional This method must be implemented if supportsFileSearch() is true.
MethodgetFileSearchSessionForDirectory
Description

Gets a file search session for the specified directory.

Parametersosid.id.IddirectoryId the Id of the directory
Returnosid.filing.FileSearchSession a FileSearchSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileSearch() is false
Complianceoptional This method must be implemented if supportsFileSearch() and supportsVisibleFederation() are true.
MethodgetFileNotificationSession
Description

Gets the session for receiving messages about changes to files.

Parametersosid.filing.FileReceiverfileReceiver the notification callback
Returnosid.filing.FileNotificationSession a FileNotificationSession
ErrorsNULL_ARGUMENT fileReceiver is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileNotification() is false
Complianceoptional This method must be implemented if supportsFileNotification() is true.
MethodgetFileNotificationSessionForDirectory
Description

Gets a file notification session for the specified directory.

Parametersosid.filing.FileReceiverfileReceiver the notification callback
osid.id.IddirectoryId the Id of the directory
Returnosid.filing.FileNotificationSession a FileNotificationSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT fileReceiver or directoryId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileNotification() is false
Complianceoptional This method must be implemented if supportsFileNotification() and supportsVisibleFederation() are true.
MethodgetFileSmartDirectorySession
Description

Gets the session for managing dynamic directories.

Parametersosid.id.IddirectoryId the Id of the directory
Returnosid.filing.FileSmartDirectorySession a FileSmartDirectorySession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFileSmartDirectory() is false
Complianceoptional This method must be implemented if supportsFileSmartDirectory() and supportsVisibleFederation() are true.
MethodgetDirectoryLookupSession
Description

Gets the session for examining directories.

Returnosid.filing.DirectoryLookupSession a DirectoryLookupSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsDirectoryLookup() is false
Complianceoptional This method must be implemented if supportsDirectoryLookup() is true.
MethodgetDirectoryLookupSessionForDirectory
Description

Gets the session for examining a given directory.

Parametersosid.id.IddirectoryId the Id of the directory
Returnosid.filing.DirectoryLookupSession a DirectoryLookupSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsDirectoryLookup() is false
Complianceoptional This method must be implemented if supportsDirectoryLookup() and supportsVisibleFederation() are true.
MethodgetDirectoryQuerySession
Description

Gets the session for querying directories.

Returnosid.filing.DirectoryQuerySession a DirectoryQuerySession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsDirectoryQuery() is false
Complianceoptional This method must be implemented if supportsDirectoryQuery() is true.
MethodgetDirectoryQuerySessionForDirectory
Description

Gets the session for querying directories within a given directory.

Parametersosid.id.IddirectoryId the Id of the directory
Returnosid.filing.DirectoryQuerySession a DirectoryQuerySession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsDirectoryQuery() is false
Complianceoptional This method must be implemented if supportsDirectoryQuery() and supportsVisibleFederation() are true.
MethodgetDirectorySearchSession
Description

Gets the session for searching for directories.

Returnosid.filing.DirectorySearchSession a DirectorySearchSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsDirectorySearch() is false
Complianceoptional This method must be implemented if supportsDirectorySearch() is true.
MethodgetDirectorySearchSessionForDirectory
Description

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

Parametersosid.id.IddirectoryId the Id of the directory
Returnosid.filing.DirectorySearchSession a DirectorySearchSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsDirectorySearch() is false
Complianceoptional This method must be implemented if supportsDirectorySearch() and supportsVisibleFederation() are true.
MethodgetDirectoryAdminSession
Description

Gets the session for creating and removing files.

Returnosid.filing.DirectoryAdminSession a DirectoryAdminSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsDirectoryAdmin() is false
Complianceoptional This 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.IddirectoryId the Id of the directory
Returnosid.filing.DirectoryAdminSession a DirectoryAdminSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsDirectoryAdmin() is false
Complianceoptional This method must be implemented if supportsDirectoryAdmin() and supportsVisibleFederation() are true.
MethodgetDirectoryNotificationSession
Description

Gets the session for receiving messages about changes to directories.

Parametersosid.filing.DirectoryReceiverdirectoryReceiver the notification callback
Returnosid.filing.DirectoryNotificationSession a DirectoryNotificationSession
ErrorsNULL_ARGUMENT directoryReceiver is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsDirectoryNotification() is false
Complianceoptional This 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.DirectoryReceiverdirectoryReceiver the notification callback
osid.id.IddirectoryId the Id of the directory
Returnosid.filing.DirectoryNotificationSession a DirectoryNotificationSession
ErrorsNOT_FOUND directoryId is not found
NULL_ARGUMENT directoryReceiver or directoryId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsDirectoryNotification() is false
Complianceoptional This method must be implemented if supportsDirectoryNotification() and supportsVisibleFederation() are true.
MethodgetFilingAllocationManager
Description

Gets the FilingAllocationManager.

Returnosid.filing.allocation.FilingAllocationManager a FilingAllocationManager
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsFilingAllocation() is false
Complianceoptional This method must be implemented if supportsFilingAllocation() is true.