Oracle® Content Services Web Services Java API Reference
10g Release 1 (10.1.1)

B19047-01


oracle.ifs.fdk
Interface QuotaManager


public interface QuotaManager

A facade interface for managing quotas and requesting quota increases


Method Summary
 void calculateConsumedQuota(long id)
          Initiate the calculation of consumed quota
 Item requestQuotaUpdate(long id, NamedValue[] wfParams, NamedValue[] attrs, AttributeRequest[] attributes)
          Request an update to the existing quota on a workspace for non-admin user.
 void updateQuota(long id, NamedValue[] attrs)
          Updates an existing quota.

 

Method Detail

calculateConsumedQuota

public void calculateConsumedQuota(long id)
                            throws FdkException
Initiate the calculation of consumed quota
Parameters:
id - The id of the target to calculate the quota for; must be the id of a Workspace or Domain.
Throws:
FdkException - if the operation fails.

requestQuotaUpdate

public Item requestQuotaUpdate(long id,
                               NamedValue[] wfParams,
                               NamedValue[] attrs,
                               AttributeRequest[] attributes)
                        throws FdkException
Request an update to the existing quota on a workspace for non-admin user.
Parameters:
id - The id of the workspace to set the quota for.
wfParams - The parameters (name/value) needed to start workflow.
attrs - The attributes to set . must include following Attributes:
  • notation: {Attribute name, Attribute type}
  • {Attributes.QUOTA_ALLOCATED, Long}
Returns:
a request if the operation was workflow enabled; otherwise null.
Throws:
FdkException - if the operation fails.

updateQuota

public void updateQuota(long id,
                        NamedValue[] attrs)
                 throws FdkException
Updates an existing quota. The user must have quota administration access.
Parameters:
id - The id of the target to set the quota for; must be the id of a Workspace or Domain.
attrs - The attributes to set . must include one or more of the following Attributes:
  • notation: {Attribute name, Attribute type}
  • {Attributes.QUOTA_ALLOCATED, Long}
  • {Attributes.DEFAULT_QUOTA_ALLOCATION, Long}
Throws:
FdkException - if the operation fails.

Oracle® Content Services Web Services Java API Reference
10g Release 1 (10.1.1)

B19047-01


Copyright © 2002, 2005, Oracle. All rights reserved.