Interface AllocationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
- All Known Subinterfaces:
AllocationLookupSession
This session defines methods for accessing space allocation and quotas.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can perform functions in this session.Gets the directory associated with this session.Gets the allocation of the data store across all users.Gets the allocation of the data store across all users and include any allocations for sub-stores.Gets the absolute path of this directory.Gets the user quota allocation of the data store for the current user.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
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 requestPermissionDeniedException- 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif filing allocation methods are not authorized,trueotherwise- 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 returnedAllocationmay indicate the limits of the file system.- Returns:
- the allocation
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- 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 requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getUserAllocation
Allocation getUserAllocation() throws NotFoundException, OperationFailedException, PermissionDeniedExceptionGets 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-agentIdis not foundOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-