OSID Logo
OSID Specifications
filing allocation package
Version 3.1.0
Interfaceosid.filing.allocation.AllocationSession
Implementsosid.OsidSession
Implemented Byosid.filing.allocation.AllocationLookupSession
Used Byosid.filing.allocation.FilingAllocationManager
osid.filing.allocation.FilingAllocationProxyManager
Description

This session defines methods for accessing space allocation and quotas.

MethodgetDirectoryPath
Description

Gets the absolute path of this directory.

Returnstring the absolute path of this directory
Compliancemandatory This method must be implemented.
MethodgetDirectory
Description

Gets the directory associated with this session.

Returnosid.filing.Directory the directory associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanAccessFilingAllocations
Description

Tests if this user can perform functions in this session. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnboolean false if filing allocation methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetDirectoryAllocation
Description

Gets the allocation of the data store across all users. The directory available by the allocation may indicate a higher level directory than the one associated with this session. If no specific aclloation exists, the returned Allocation may indicate the limits of the file system.

Returnosid.filing.allocation.Allocation the allocation
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetDirectoryAllocations
Description

Gets the allocation of the data store across all users and include any allocations for sub-stores.

Returnosid.filing.allocation.AllocationList the allocation list
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetUserAllocation
Description

Gets the user quota allocation of the data store for the current user. The directory available by the allocation may indicate a higher level directory than the one requested if the one requested is a sub-directory inside the qoutad data store.

Returnosid.filing.allocation.Allocation the allocation
ErrorsNOT_FOUND agentId is not found
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.