OSID Logo
OSID Specifications
filing allocation package
Version 3.1.0
Interfaceosid.filing.allocation.FilingAllocationManager
Implementsosid.OsidManager
osid.filing.allocation.FilingAllocationProfile
Used Byosid.filing.FilingManager
Description

The filing allocation manager provides access sessions to retrieve and manage allocations. The sessions included in this manager are:

  • AllocationSession: a session for accessing usage information and quotas for the current user
  • AllocationLookupSession: a session for accessing usage information and quotas
  • AllocationAdminSession a session for assigning quotas
  • AllocationNotificationSession: a session for subscribing to usage warnings and quota changes
MethodgetAllocationSession
Description

Gets the session for accessing usage and quotas.

Returnosid.filing.allocation.AllocationSession an AllocationSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsAllocation() is false
Complianceoptional This method must be implemented if supportsAllocation() is true.
MethodgetAllocationSessionForDirectory
Description

Gets the session for accessing usage and quotas for a given directory. If the path is an alias, the target directory is used. The path indicates the file alias and the real path indicates the target directory.

ParametersstringdirectoryPath the pathname to the directory
Returnosid.filing.allocation.AllocationSession an AllocationSession
ErrorsINVALID_ARGUMENT directoryPath is not a directory or an alias to a directory
NOT_FOUND directoryPath is not found
NULL_ARGUMENT directoryPath is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsAllocation() is false
Complianceoptional This method must be implemented if supportsAllocation() and supportsVisibleFederation() are true.
MethodgetAllocationLookupSession
Description

Gets the session for accessing usage and quotas.

Returnosid.filing.allocation.AllocationLookupSession an AllocationLookupSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsAllocationLookup() is false
Complianceoptional This method must be implemented if supportsAllocationLookup() is true.
MethodgetAllocationLookupSessionForDirectory
Description

Gets the session for accessing usage and quotas for a given directory. If the path is an alias, the target directory is used. The path indicates the file alias and the real path indicates the target directory.

ParametersstringdirectoryPath the pathname to the directory
Returnosid.filing.allocation.AllocationLookupSession an AllocationLookupSession
ErrorsINVALID_ARGUMENT directoryPath is not a directory or an alias to a directory
NOT_FOUND directoryPath is not found
NULL_ARGUMENT directoryPath is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsAllocationLookup() is false
Complianceoptional This method must be implemented if supportsAllocationLookup() and supportsVisibleFederation() are true.
MethodgetAllocationAdminSession
Description

Gets the session for assigning quotas.

Returnosid.filing.allocation.AllocationAdminSession an AllocationAdminSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsAllocationAdmin() is false
Complianceoptional This method must be implemented if supportsAllocationAdmin() is true.
MethodgetAllocationAdminSessionForDirectory
Description

Gets the session for assigning quotas for the given directory. If the path is an alias, the target directory is used. The path indicates the file alias and the real path indicates the target directory.

ParametersstringdirectoryPath the pathname to the directory
Returnosid.filing.allocation.AllocationAdminSession an AllocationAdminSession
ErrorsINVALID_ARGUMENT directoryPath is not a directory or an alias to a directory
NOT_FOUND directoryPath is not found
NULL_ARGUMENT directoryPath is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsAllocationAdmin() is false
Complianceoptional This method must be implemented if supportsAllocationAdmin() and supportsVisibleFederation() are true.
MethodgetAllocationNotificationSession
Description

Gets the session for receiving messages about changes to directories.

Parametersosid.filing.allocation.AllocationReceiverallocationReceiver the notification callback
Returnosid.filing.allocation.AllocationNotificationSession an AllocationNotificationSession
ErrorsNULL_ARGUMENT allocationReceiver is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsAllocationNotification() is false
Complianceoptional This method must be implemented if supportsDirectoryNotification() is true.
MethodgetAllocationNotificationSessionForDirectory
Description

Gets the session for receiving messages about usage warnings and quota changes for the given directory. If the path is an alias, the target directory is used. The path indicates the file alias and the real path indicates the target directory.

Parametersosid.filing.allocation.AllocationReceiverallocationReceiver the notification callback
stringdirectoryPath the pathname to the directory
Returnosid.filing.allocation.AllocationNotificationSession an AllocationNotificationSession
ErrorsINVALID_ARGUMENT directoryPath is not a directory or an alias to a directory
NOT_FOUND directoryPath is not found
NULL_ARGUMENT allocationReceiver or directoryPath is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsAllocationNotification() is false
Complianceoptional This method must be implemented if supportsAllocationNotification() and supportsVisibleFederation() are true.