OSID Logo
OSID Specifications
filing allocation package
Version 3.0.0
Release Candidate Preview
Interfaceosid.filing.allocation.AllocationSession
Implementsosid.OsidSession
Description

This session defines methods for accessing space allocation and quotas.

MethodgetDirectoryPath
Description

Gets the absolute path of this directory.

Returnstringthe absolute path of this directory
CompliancemandatoryThis method must be implemented.
MethodgetDirectory
Description

Gets the directory associated with this session.

Returnosid.filing.Directorythe directory associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.Allocationthe allocation
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.AllocationListthe allocation list
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.Allocationthe allocation
ErrorsNOT_FOUND agentId is not found
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.