com.sap.workspaces.authoring

Class Quota

java.lang.Object
  extended by com.sap.workspaces.authoring.Quota

public class Quota
extends Object

Provides information about the workspace space usage quota and status for the purposes of implementing a workspace navigation UI

Since:
1.1 SP02

Field Summary
protected  int quota
           
protected  boolean quotaExceeded
           
protected  int spaceUsage
           
protected  Date spaceUsageLastUpdate
           
protected  boolean thresholdExceeded
           
 
Constructor Summary
Quota()
           
 
Method Summary
 int getQuota()
          Returns the space usage quota of the workspace
 int getSpaceUsage()
          Returns the space used by the workspace
 Date getSpaceUsageLastUpdate()
          Returns the date when the space usage counter was last updated
 boolean quotaExceeded()
          Checks if the workspace exceeds its space usage quota
 boolean thresholdExceeded()
          Checks if the workspace exceeds its quota threshold
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

spaceUsageLastUpdate

protected Date spaceUsageLastUpdate

quotaExceeded

protected boolean quotaExceeded

thresholdExceeded

protected boolean thresholdExceeded

spaceUsage

protected int spaceUsage

quota

protected int quota
Constructor Detail

Quota

public Quota()
Method Detail

getSpaceUsageLastUpdate

public Date getSpaceUsageLastUpdate()
Returns the date when the space usage counter was last updated

Returns:
The date when the space usage counter was last updated

quotaExceeded

public boolean quotaExceeded()
Checks if the workspace exceeds its space usage quota

Returns:
True if the workspace exceeds its space usage quota

thresholdExceeded

public boolean thresholdExceeded()
Checks if the workspace exceeds its quota threshold

Returns:
True if the workspace exceeds its quota threshold

getSpaceUsage

public int getSpaceUsage()
Returns the space used by the workspace

Returns:
The space used by the workspace in MB

getQuota

public int getQuota()
Returns the space usage quota of the workspace

Returns:
The space usage quota in MB


Copyright 2013 SAP AG Complete Copyright Notice