Interface FilingAllocationManager
- All Superinterfaces:
AutoCloseable, Closeable, FilingAllocationProfile, OsidManager, OsidManager, OsidProfile, Sourceable
The filing allocation manager provides access sessions to retrieve and manage allocations. The sessions included in this manager are:
-
AllocationSession: a session for accessing usage information and quotas for the current user -
AllocationLookupSession: a session for accessing usage information and quotas -
AllocationAdminSessiona session for assigning quotas -
AllocationNotificationSession: a session for subscribing to usage warnings and quota changes
-
Method Summary
Modifier and TypeMethodDescriptionGets the session for assigning quotas.getAllocationAdminSessionForDirectory(String directoryPath) Gets the session for assigning quotas for the given directory.Gets the session for accessing usage and quotas.getAllocationLookupSessionForDirectory(String directoryPath) Gets the session for accessing usage and quotas for a given directory.getAllocationNotificationSession(AllocationReceiver allocationReceiver) Gets the session for receiving messages about changes to directories.getAllocationNotificationSessionForDirectory(AllocationReceiver allocationReceiver, String directoryPath) Gets the session for receiving messages about usage warnings and quota changes for the given directory.Gets the session for accessing usage and quotas.getAllocationSessionForDirectory(String directoryPath) Gets the session for accessing usage and quotas for a given directory.Methods inherited from interface FilingAllocationProfile
getAllocationRecordTypes, supportsAllocation, supportsAllocationAdmin, supportsAllocationLookup, supportsAllocationNotification, supportsAllocationRecordType, supportsVisibleFederationModifier and TypeMethodDescriptionGets the supported allocation record types.booleanTests if filing allocation is supported.booleanTests if quota administration is supported.booleanTests if filing allocation lookup is supported.booleanTests if an allocation notification service is supported.booleansupportsAllocationRecordType(Type allocationRecordType) Tests if the given allocation record type is supported.booleanTests if any dictionary federation is exposed.Methods inherited from interface OsidManager
closeMethods inherited from interface OsidManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime) Rolls back this service to a point in time.Methods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypeModifier and TypeMethodDescriptionGets this service branch.Gets theBranch Idrepresenting this service branch.Gets a description of this service implementation.Gets a display name for this service implementation.getId()Gets an identifier for this service implementation.Gets the locales supported in this service.Gets the proxy recordTypessupported in this service.Gets the date this service implementation was released.Gets the version of this service implementation.booleanTest for support of a journal branching service.booleanTest for support of a journaling rollback service.booleansupportsOSIDVersion(Version version) Test for support of an OSID specification version.booleansupportsProxyRecordType(Type proxyRecordType) Test for support of a proxy type.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.
-
Method Details
-
getAllocationSession
Gets the session for accessing usage and quotas.- Returns:
- an
AllocationSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsAllocation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAllocation()} is {@code true} .
-
getAllocationSessionForDirectory
AllocationSession getAllocationSessionForDirectory(String directoryPath) throws NotFoundException, OperationFailedException Gets the session for accessing usage and quotas for a given directory. If the path is an alias, the target directory is used. The path indicates the file alias and the real path indicates the target directory.- Parameters:
directoryPath- the pathname to the directory- Returns:
- an
AllocationSession - Throws:
InvalidArgumentException-directoryPathis not a directory or an alias to a directoryNotFoundException-directoryPathis not foundNullArgumentException-directoryPathis nullOperationFailedException- unable to complete requestUnimplementedException-supportsAllocation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAllocation()} and {@code supportsVisibleFederation()} are {@code true} .
-
getAllocationLookupSession
Gets the session for accessing usage and quotas.- Returns:
- an
AllocationLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsAllocationLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAllocationLookup()} is {@code true} .
-
getAllocationLookupSessionForDirectory
AllocationLookupSession getAllocationLookupSessionForDirectory(String directoryPath) throws NotFoundException, OperationFailedException Gets the session for accessing usage and quotas for a given directory. If the path is an alias, the target directory is used. The path indicates the file alias and the real path indicates the target directory.- Parameters:
directoryPath- the pathname to the directory- Returns:
- an
AllocationLookupSession - Throws:
InvalidArgumentException-directoryPathis not a directory or an alias to a directoryNotFoundException-directoryPathis not foundNullArgumentException-directoryPathis nullOperationFailedException- unable to complete requestUnimplementedException-supportsAllocationLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAllocationLookup()} and {@code supportsVisibleFederation()} are {@code true} .
-
getAllocationAdminSession
Gets the session for assigning quotas.- Returns:
- an
AllocationAdminSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsAllocationAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAllocationAdmin()} is {@code true} .
-
getAllocationAdminSessionForDirectory
AllocationAdminSession getAllocationAdminSessionForDirectory(String directoryPath) throws NotFoundException, OperationFailedException Gets the session for assigning quotas for the given directory. If the path is an alias, the target directory is used. The path indicates the file alias and the real path indicates the target directory.- Parameters:
directoryPath- the pathname to the directory- Returns:
- an
AllocationAdminSession - Throws:
InvalidArgumentException-directoryPathis not a directory or an alias to a directoryNotFoundException-directoryPathis not foundNullArgumentException-directoryPathis nullOperationFailedException- unable to complete requestUnimplementedException-supportsAllocationAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAllocationAdmin()} and {@code supportsVisibleFederation()} are {@code true} .
-
getAllocationNotificationSession
AllocationNotificationSession getAllocationNotificationSession(AllocationReceiver allocationReceiver) throws OperationFailedException Gets the session for receiving messages about changes to directories.- Parameters:
allocationReceiver- the notification callback- Returns:
- an
AllocationNotificationSession - Throws:
NullArgumentException-allocationReceiveris nullOperationFailedException- unable to complete requestUnimplementedException-supportsAllocationNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDirectoryNotification()} is {@code true} .
-
getAllocationNotificationSessionForDirectory
AllocationNotificationSession getAllocationNotificationSessionForDirectory(AllocationReceiver allocationReceiver, String directoryPath) throws NotFoundException, OperationFailedException Gets the session for receiving messages about usage warnings and quota changes for the given directory. If the path is an alias, the target directory is used. The path indicates the file alias and the real path indicates the target directory.- Parameters:
allocationReceiver- the notification callbackdirectoryPath- the pathname to the directory- Returns:
- an
AllocationNotificationSession - Throws:
InvalidArgumentException-directoryPathis not a directory or an alias to a directoryNotFoundException-directoryPathis not foundNullArgumentException-allocationReceiverordirectoryPathis nullOperationFailedException- unable to complete requestUnimplementedException-supportsAllocationNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAllocationNotification()} and {@code supportsVisibleFederation()} are {@code true} .
-