com.sap.workspaces.workspace

Interface IQuota


public interface IQuota

Provides information about the workspace space usage quota and status

Since:
1.1

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 was last updated
 int getThreshold()
          Returns the quota threshold of the workspace
 boolean quotaExceeded()
          Checks if the workspace exceeds its space usage quota
 void requestSpace(com.sap.security.api.IUser user, String reason, int space)
          Sends an email request for additional space for a workspace.
 boolean thresholdExceeded()
          Checks if the workspace exceeds its quota threshold
 

Method Detail

quotaExceeded

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

Returns:
True if the workspace exceeds its space usage quota

thresholdExceeded

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

Returns:
True if the workspace exceeds its quota threshold

getSpaceUsageLastUpdate

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

Returns:
The date when the space usage was last updated

getThreshold

int getThreshold()
Returns the quota threshold of the workspace

Returns:
The quota threshold in MB

getQuota

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

Returns:
The space usage quota in MB

getSpaceUsage

int getSpaceUsage()
Returns the space used by the workspace

Returns:
The space used by the workspace in MB

requestSpace

void requestSpace(com.sap.security.api.IUser user,
                  String reason,
                  int space)
                  throws WorkspacesRuntimeException
Sends an email request for additional space for a workspace. The request is sent to the email address defined in "System Administration E-Mails" configuration property.

Parameters:
user - the user who sends the request
reason - the reason for the request
space - requested disk space(MB)
Throws:
WorkspacesRuntimeException
Since:
1.1 SP02


Copyright 2013 SAP AG Complete Copyright Notice