Interface AllocationLookupSession
- All Superinterfaces:
AllocationSession, AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods for accessing space allocation and quotas.
-
Method Summary
Modifier and TypeMethodDescriptionGets the user quota allocation of the data store for each user.getUserAllocationsByUtilization(long percentage) Gets the quota allocations of the data store for all users matching or exceeding the given utilization.getUserAllocationsForUser(Id agentId) Gets the user quota allocations of the data store for the given user including any subdirectories.Methods inherited from interface AllocationSession
canAccessFilingAllocations, getDirectory, getDirectoryAllocation, getDirectoryAllocations, getDirectoryPath, getUserAllocationModifier 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
-
getUserAllocationsForUser
AllocationList getUserAllocationsForUser(Id agentId) throws OperationFailedException, PermissionDeniedException Gets the user quota allocations of the data store for the given user including any subdirectories. 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.- Parameters:
agentId- the agentIdof the user- Returns:
- the allocation
- Throws:
NullArgumentException-agentIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getUserAllocations
Gets the user quota allocation of the data store for each 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:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getUserAllocationsByUtilization
AllocationList getUserAllocationsByUtilization(long percentage) throws OperationFailedException, PermissionDeniedException Gets the quota allocations of the data store for all users matching or exceeding the given utilization. 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.- Parameters:
percentage- the utilization percentage (0-100)- Returns:
- the allocation
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-