|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blackboard.data.course.CourseQuota
public class CourseQuota
The CourseQuota
class provides convenience methods and accessor methods
that encapsulate common routines that are needed when using Course quotas.
Constructor Summary | |
---|---|
protected |
CourseQuota(Course course)
|
Method Summary | |
---|---|
static CourseQuota |
createInstance(Course course)
|
Course |
getCourse()
Accessor Methods |
long |
getCourseAbsoluteLimit()
This method looks at the individual absolute course quota as well as the absolute system level quota and will return the absolute course quota if it exists. |
long |
getCourseAbsoluteLimitRemainingSize()
Calculate the remaining size left in the course quota |
long |
getCourseSize()
Return the size of the current course. |
long |
getCourseSoftLimit()
This method looks at the individual soft course quota as well as the soft system level quota and will return the soft course quota if it exists. |
long |
getCourseUploadLimit()
This method looks at the individual course file upload limit as well as the system level file upload limit and will return the course limit if it exists. |
boolean |
getEnforceQuota()
Return whether quotas are enabled on the system level for the course or organization |
boolean |
getEnforceUploadLimit()
Return whether system upload limits are enabled for the course or organization |
long |
getSystemAbsoluteLimit()
Return the system level quota absolute limit (if set). |
long |
getSystemSoftLimit()
Return the system level quota soft limit (if set). |
long |
getSystemUploadLimit()
Return the system level quota upload limit (if set). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CourseQuota(Course course)
Method Detail |
---|
public static CourseQuota createInstance(Course course) throws KeyNotFoundException
KeyNotFoundException
public Course getCourse()
public boolean getEnforceQuota()
public boolean getEnforceUploadLimit()
public long getCourseSize()
public long getSystemAbsoluteLimit()
public long getSystemSoftLimit()
public long getSystemUploadLimit()
public long getCourseAbsoluteLimitRemainingSize()
public long getCourseAbsoluteLimit()
public long getCourseSoftLimit()
public long getCourseUploadLimit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |