Interface AllocationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
All Known Subinterfaces:
AllocationLookupSession

public interface AllocationSession extends OsidSession

This session defines methods for accessing space allocation and quotas.

  • Method Details

    • getDirectoryPath

      String getDirectoryPath()
      Gets the absolute path of this directory.
      Returns:
      the absolute path of this directory
      Compliance:
      mandatory - This method must be implemented.
    • getDirectory

      Gets the directory associated with this session.
      Returns:
      the directory associated with this session
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canAccessFilingAllocations

      boolean canAccessFilingAllocations()
      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.
      Returns:
      false if filing allocation methods are not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getDirectoryAllocation

      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.
      Returns:
      the allocation
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • getDirectoryAllocations

      Gets the allocation of the data store across all users and include any allocations for sub-stores.
      Returns:
      the allocation list
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • getUserAllocation

      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.
      Returns:
      the allocation
      Throws:
      NotFoundException - agentId is not found
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.