Interface FilingManager
- All Superinterfaces:
AutoCloseable, Closeable, FilingProfile, OsidManager, OsidManager, OsidProfile, Sourceable
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
-
Method Summary
Modifier and TypeMethodDescriptionGets the session for creating and removing files.getDirectoryAdminSessionForDirectory(Id directoryId) Gets the session for searching for creating and removing files in the given directory.Gets the session for examining directories.getDirectoryLookupSessionForDirectory(Id directoryId) Gets the session for examining a given directory.getDirectoryNotificationSession(DirectoryReceiver directoryReceiver) Gets the session for receiving messages about changes to directories.getDirectoryNotificationSessionForDirectory(DirectoryReceiver directoryReceiver, Id directoryId) Gets the session for receiving messages about changes to directories in the given directory.Gets the session for querying directories.getDirectoryQuerySessionForDirectory(Id directoryId) Gets the session for querying directories within a given directory.Gets the session for searching for directories.getDirectorySearchSessionForDirectory(Id directoryId) Gets the session for searching for directories within a given directory.Gets the session for reading and writing files.getFileContentSessionForDirectory(Id directoryId) Gets the session for reading and writing files for the given path.Gets the session for reading and writing files for the given path.Gets the session for looking up files.getFileLookupSessionForDirectory(Id directoryId) Gets the session for manipulating files for the given path.getFileNotificationSession(FileReceiver fileReceiver) Gets the session for receiving messages about changes to files.getFileNotificationSessionForDirectory(FileReceiver fileReceiver, Id directoryId) Gets a file notification session for the specified directory.Gets the session for querying files.getFileQuerySessionForDirectory(Id directoryId) Gets a file query session for the specified directory.Gets the session for searching for files.getFileSearchSessionForDirectory(Id directoryId) Gets a file search session for the specified directory.getFileSmartDirectorySession(Id directoryId) Gets the session for managing dynamic directories.Gets the session for manipulating file systems.getFileSystemManagementSessionForDirectory(Id directoryId) Gets the session for manipulating files for the given path.Gets the session for manipulating files for the given path.Gets the session for examining file systems.getFileSystemSessionForDirectory(Id directoryId) Gets the session for exmaning file systems for the given directory.Gets the session for exmaning file systems for the given path.Gets theFilingAllocationManager.Methods inherited from interface FilingProfile
getDirectoryRecordTypes, getDirectorySearchRecordTypes, getFileRecordTypes, getFileSearchRecordTypes, supportsDirectoryAdmin, supportsDirectoryLookup, supportsDirectoryNotification, supportsDirectoryQuery, supportsDirectoryRecordType, supportsDirectorySearch, supportsDirectorySearchRecordType, supportsFileContent, supportsFileLookup, supportsFileNotification, supportsFileQuery, supportsFileRecordType, supportsFileSearch, supportsFileSearchRecordType, supportsFileSmartDirectory, supportsFileSystem, supportsFileSystemManagement, supportsFilingAllocation, supportsFilingManagement, supportsVisibleFederationModifier and TypeMethodDescriptionGets the supported directory record types.Gets the supported directory search record types.Gets the supported file record types.Gets the supported file search record types.booleanTests if directory administration is supported.booleanTests if aDirectoryLookupSessionis supported.booleanTests if a directory notification service is supported.booleanTests if directory querying is supported.booleansupportsDirectoryRecordType(Type directoryRecordType) Tests if the given directory record type is supported.booleanTests if directory searching is supported.booleansupportsDirectorySearchRecordType(Type directorySearchRecordType) Tests if the given directory search record type is supported.booleanTests if aFileContentSessionis supported.booleanTests if file lookup is supported.booleanTests if file notification is supported.booleanTests if file querying is supported.booleansupportsFileRecordType(Type fileRecordType) Tests if the given file record type is supported.booleanTests if file searching is supported.booleansupportsFileSearchRecordType(Type fileSearchRecordType) Tests if the given file search record type is supported.booleanTests if managing smart directories is supported.booleanTests if aFileSystemSessionis supported.booleanTests if aFileSystemManagementSessionis supported.booleanTests if a filing allocation service is supported.booleanTests if a file management service is supported.booleanTests if directory federation is exposed.Methods inherited from interface OsidManager
closeMethods inherited from interface OsidManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime) Rolls back this service to a point in time.Methods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypeModifier and TypeMethodDescriptionGets this service branch.Gets theBranch Idrepresenting this service branch.Gets a description of this service implementation.Gets a display name for this service implementation.getId()Gets an identifier for this service implementation.Gets the locales supported in this service.Gets the proxy recordTypessupported in this service.Gets the date this service implementation was released.Gets the version of this service implementation.booleanTest for support of a journal branching service.booleanTest for support of a journaling rollback service.booleansupportsOSIDVersion(Version version) Test for support of an OSID specification version.booleansupportsProxyRecordType(Type proxyRecordType) Test for support of a proxy type.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.
-
Method Details
-
getFileSystemSession
Gets the session for examining file systems.- Returns:
- a
FileSystemSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsFileSystem()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileSystem()} is {@code true} .
-
getFileSystemSessionForPath
FileSystemSession getFileSystemSessionForPath(String path) throws NotFoundException, OperationFailedException Gets the session for exmaning file systems for the given path.- Parameters:
path- the path to a directory- Returns:
- a
FileSystemSession - Throws:
NotFoundException-pathis not found or is not a directoryNullArgumentException-pathis nullOperationFailedException- unable to complete requestUnimplementedException-supportsFileSystem()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileSystem()} and {@code supportsVisibleFederation()} are {@code true} .
-
getFileSystemSessionForDirectory
FileSystemSession getFileSystemSessionForDirectory(Id directoryId) throws NotFoundException, OperationFailedException Gets the session for exmaning file systems for the given directory.- Parameters:
directoryId- theIdof a directory- Returns:
- a
FileSystemSession - Throws:
NotFoundException-directoryIdis not foundNullArgumentException-directoryIdis nullOperationFailedException- unable to complete requestUnimplementedException-supportsFileSystem()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileSystem()} and {@code supportsVisibleFederation()} are {@code true} .
-
getFileSystemManagementSession
Gets the session for manipulating file systems.- Returns:
- a
FileSystemManagementSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsFileSystemManagement()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileSystemManagement()} is {@code true} .
-
getFileSystemManagementSessionForPath
FileSystemManagementSession getFileSystemManagementSessionForPath(String path) throws NotFoundException, OperationFailedException Gets the session for manipulating files for the given path.- Parameters:
path- the path to a directory- Returns:
- a
FileSystemManagementSession - Throws:
NotFoundException-pathis not found or is not a directoryNullArgumentException-pathis nullOperationFailedException- unable to complete requestUnimplementedException-supportsFileSystemManagement()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileSystemManagement()} and {@code supportsVisibleFederation()} are {@code true} .
-
getFileSystemManagementSessionForDirectory
FileSystemManagementSession getFileSystemManagementSessionForDirectory(Id directoryId) throws NotFoundException, OperationFailedException Gets the session for manipulating files for the given path.- Parameters:
directoryId- theIdof a directory- Returns:
- a
FileSystemManagementSession - Throws:
NotFoundException-directoryIdis not foundNullArgumentException-directoryIdis nullOperationFailedException- unable to complete requestUnimplementedException-supportsFileSystemManagement()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileSystemManagement()} and {@code supportsVisibleFederation()} are {@code true} .
-
getFileContentSession
Gets the session for reading and writing files.- Returns:
- a
FileContentSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsFileContent()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileContent()} is {@code true} .
-
getFileContentSessionForPath
FileContentSession getFileContentSessionForPath(String path) throws NotFoundException, OperationFailedException Gets the session for reading and writing files for the given path.- Parameters:
path- the path to a directory- Returns:
- a
FileContentSession - Throws:
NotFoundException-pathis not found or is not a directoryNullArgumentException-pathis nullOperationFailedException- unable to complete requestUnimplementedException-supportsFileContent()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileContent()} and {@code supportsVisibleFederation()} are {@code true} .
-
getFileContentSessionForDirectory
FileContentSession getFileContentSessionForDirectory(Id directoryId) throws NotFoundException, OperationFailedException Gets the session for reading and writing files for the given path.- Parameters:
directoryId- theIdof a directory- Returns:
- a
FileContentSession - Throws:
NotFoundException-directoryIdis not foundNullArgumentException-directoryIdis nullOperationFailedException- unable to complete requestUnimplementedException-supportsFileContent()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileContent()} and {@code supportsVisibleFederation()} are {@code true} .
-
getFileLookupSession
Gets the session for looking up files.- Returns:
- the
FileLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsFileLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileLookup()} is {@code true} .
-
getFileLookupSessionForDirectory
FileLookupSession getFileLookupSessionForDirectory(Id directoryId) throws NotFoundException, OperationFailedException Gets the session for manipulating files for the given path.- Parameters:
directoryId- theIdof the directory- Returns:
- a
FileLookupSession - Throws:
NotFoundException-directoryIdis not foundNullArgumentException-directoryIdis nullOperationFailedException- unable to complete requestUnimplementedException-supportsFileLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileLookup()} and {@code supportsVisibleFederation()} are {@code true} .
-
getFileQuerySession
Gets the session for querying files.- Returns:
- the
FileQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsFileQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileQuery()} is {@code true} .
-
getFileQuerySessionForDirectory
FileQuerySession getFileQuerySessionForDirectory(Id directoryId) throws NotFoundException, OperationFailedException Gets a file query session for the specified directory.- Parameters:
directoryId- theIdof the directory- Returns:
- a
FileQuerySession - Throws:
NotFoundException-directoryIdis not foundNullArgumentException-directoryIdis nullOperationFailedException- unable to complete requestUnimplementedException-supportsFileQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileQuery()} and {@code supportsVisibleFederation()} are {@code true} .
-
getFileSearchSession
Gets the session for searching for files.- Returns:
- the
FileSearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsFileSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileSearch()} is {@code true} .
-
getFileSearchSessionForDirectory
FileSearchSession getFileSearchSessionForDirectory(Id directoryId) throws NotFoundException, OperationFailedException Gets a file search session for the specified directory.- Parameters:
directoryId- theIdof the directory- Returns:
- a
FileSearchSession - Throws:
NotFoundException-directoryIdis not foundNullArgumentException-directoryIdis nullOperationFailedException- unable to complete requestUnimplementedException-supportsFileSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileSearch()} and {@code supportsVisibleFederation()} are {@code true} .
-
getFileNotificationSession
FileNotificationSession getFileNotificationSession(FileReceiver fileReceiver) throws OperationFailedException Gets the session for receiving messages about changes to files.- Parameters:
fileReceiver- the notification callback- Returns:
a FileNotificationSession- Throws:
NullArgumentException-fileReceiveris nullOperationFailedException- unable to complete requestUnimplementedException-supportsFileNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileNotification()} is {@code true} .
-
getFileNotificationSessionForDirectory
FileNotificationSession getFileNotificationSessionForDirectory(FileReceiver fileReceiver, Id directoryId) throws NotFoundException, OperationFailedException Gets a file notification session for the specified directory.- Parameters:
fileReceiver- the notification callbackdirectoryId- theIdof the directory- Returns:
- a
FileNotificationSession - Throws:
NotFoundException-directoryIdis not foundNullArgumentException-fileReceiverordirectoryIdis nullOperationFailedException- unable to complete requestUnimplementedException-supportsFileNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileNotification()} and {@code supportsVisibleFederation()} are {@code true} .
-
getFileSmartDirectorySession
FileSmartDirectorySession getFileSmartDirectorySession(Id directoryId) throws NotFoundException, OperationFailedException Gets the session for managing dynamic directories.- Parameters:
directoryId- theIdof the directory- Returns:
- a
FileSmartDirectorySession - Throws:
NotFoundException-directoryIdis not foundNullArgumentException-directoryIdis nullOperationFailedException- unable to complete requestUnimplementedException-supportsFileSmartDirectory()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFileSmartDirectory()} and {@code supportsVisibleFederation()} are {@code true} .
-
getDirectoryLookupSession
Gets the session for examining directories.- Returns:
- a
DirectoryLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsDirectoryLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDirectoryLookup()} is {@code true} .
-
getDirectoryLookupSessionForDirectory
DirectoryLookupSession getDirectoryLookupSessionForDirectory(Id directoryId) throws NotFoundException, OperationFailedException Gets the session for examining a given directory.- Parameters:
directoryId- theIdof the directory- Returns:
- a
DirectoryLookupSession - Throws:
NotFoundException-directoryIdis not foundNullArgumentException-directoryIdis nullOperationFailedException- unable to complete requestUnimplementedException-supportsDirectoryLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDirectoryLookup()} and {@code supportsVisibleFederation()} are {@code true} .
-
getDirectoryQuerySession
Gets the session for querying directories.- Returns:
- a
DirectoryQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsDirectoryQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDirectoryQuery()} is {@code true} .
-
getDirectoryQuerySessionForDirectory
DirectoryQuerySession getDirectoryQuerySessionForDirectory(Id directoryId) throws NotFoundException, OperationFailedException Gets the session for querying directories within a given directory.- Parameters:
directoryId- theIdof the directory- Returns:
- a
DirectoryQuerySession - Throws:
NotFoundException-directoryIdis not foundNullArgumentException-directoryIdis nullOperationFailedException- unable to complete requestUnimplementedException-supportsDirectoryQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDirectoryQuery()} and {@code supportsVisibleFederation()} are {@code true} .
-
getDirectorySearchSession
Gets the session for searching for directories.- Returns:
- a
DirectorySearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsDirectorySearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDirectorySearch()} is {@code true} .
-
getDirectorySearchSessionForDirectory
DirectorySearchSession getDirectorySearchSessionForDirectory(Id directoryId) throws NotFoundException, OperationFailedException Gets the session for searching for directories within a given directory.- Parameters:
directoryId- theIdof the directory- Returns:
- a
DirectorySearchSession - Throws:
NotFoundException-directoryIdis not foundNullArgumentException-directoryIdis nullOperationFailedException- unable to complete requestUnimplementedException-supportsDirectorySearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDirectorySearch()} and {@code supportsVisibleFederation()} are {@code true} .
-
getDirectoryAdminSession
Gets the session for creating and removing files.- Returns:
- a
DirectoryAdminSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsDirectoryAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDirectoryAdmin()} is {@code true} .
-
getDirectoryAdminSessionForDirectory
DirectoryAdminSession getDirectoryAdminSessionForDirectory(Id directoryId) throws NotFoundException, OperationFailedException Gets the session for searching for creating and removing files in the given directory.- Parameters:
directoryId- theIdof the directory- Returns:
- a
DirectoryAdminSession - Throws:
NotFoundException-directoryIdis not foundNullArgumentException-directoryIdis nullOperationFailedException- unable to complete requestUnimplementedException-supportsDirectoryAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDirectoryAdmin()} and {@code supportsVisibleFederation()} are {@code true} .
-
getDirectoryNotificationSession
DirectoryNotificationSession getDirectoryNotificationSession(DirectoryReceiver directoryReceiver) throws OperationFailedException Gets the session for receiving messages about changes to directories.- Parameters:
directoryReceiver- the notification callback- Returns:
- a
DirectoryNotificationSession - Throws:
NullArgumentException-directoryReceiveris nullOperationFailedException- unable to complete requestUnimplementedException-supportsDirectoryNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDirectoryNotification()} is {@code true} .
-
getDirectoryNotificationSessionForDirectory
DirectoryNotificationSession getDirectoryNotificationSessionForDirectory(DirectoryReceiver directoryReceiver, Id directoryId) throws NotFoundException, OperationFailedException Gets the session for receiving messages about changes to directories in the given directory.- Parameters:
directoryReceiver- the notification callbackdirectoryId- theIdof the directory- Returns:
- a
DirectoryNotificationSession - Throws:
NotFoundException-directoryIdis not foundNullArgumentException-directoryReceiverordirectoryIdis nullOperationFailedException- unable to complete requestUnimplementedException-supportsDirectoryNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDirectoryNotification()} and {@code supportsVisibleFederation()} are {@code true} .
-
getFilingAllocationManager
Gets theFilingAllocationManager.- Returns:
- a
FilingAllocationManager - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsFilingAllocation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFilingAllocation()} is {@code true} .
-