OSID Logo
OSID Specifications
filing allocation package
Version 3.1.0
Interfaceosid.filing.allocation.Allocation
Implementsosid.Extensible
osid.Browsable
Used Byosid.filing.allocation.AllocationAdminSession
osid.filing.allocation.AllocationList
osid.filing.allocation.AllocationSession
Description

Allocation represents allocated resources in a file system.

MethodgetDirectoryPath
Description

Gets the absolute path to the directory responsible for these usage stats. The return may be a partition or volume containing the requested directory.

Returnstring path name
Compliancemandatory This method must be implemented.
MethodgetDirectory
Description

Gets the directory responsible for these usage stats. The return may be a partition, quota controlled directory, or volume containing the requested directory.

Returnosid.filing.Directory directory
Compliancemandatory This method must be implemented.
MethodisAssignedToUser
Description

Tests if this allocation is assigned to a specific user.

Returnboolean true if this allocation is assigned to a specific user, false if this allocation applied to all users
Compliancemandatory This method must be implemented.
MethodgetAgentId
Description

Gets the agent Id of the user.

Returnosid.id.Id the agent Id
ErrorsILLEGAL_STATE isAssignedToUser() is false
Compliancemandatory This method must be implemented.
MethodgetAgent
Description

Gets the agent of the user.

Returnosid.authentication.Agent the agent
ErrorsILLEGAL_STATE isAssignedToUser() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetTotalSpace
Description

Gets the total space in bytes of this allocation.

Returncardinal number of bytes in this allocation
Compliancemandatory This method must be implemented.
MethodgetUsedSpace
Description

Gets the used space in bytes of this allocation.

Returncardinal number of used bytes in this allocation
Compliancemandatory This method must be implemented.
MethodgetAvailableSpace
Description

Gets the available space in bytes of this allocation.

Returncardinal number of available bytes in this allocation
Compliancemandatory This method must be implemented.
MethodgetTotalFiles
Description

Gets the total number of files of this allocation.

Returncardinal number of files in this allocation
Compliancemandatory This method must be implemented.
MethodgetUsedFiles
Description

Gets the used number of files of this allocation.

Returncardinal number of used files in this allocation
Compliancemandatory This method must be implemented.
MethodgetAvailableFiles
Description

Gets the available number o files of this allocation.

Returncardinal number of available files in this allocation
Compliancemandatory This method must be implemented.
MethodgetAllocationRecord
Description

Gets the allocation record corresponding to the given Allocation record Type. This method is used to retrieve an object implementing the requested record. The allocationRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(allocationRecordType) is true.

Parametersosid.type.TypeallocationRecordType the allocation record type
Returnosid.filing.allocation.records.AllocationRecord the allocation record
ErrorsNULL_ARGUMENT allocationRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(allocationRecordType) is false
Compliancemandatory This method must be implemented.