|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.cms.filesystem.CSEntry
blackboard.cms.filesystem.CSDirectory
blackboard.cms.filesystem.CSCustomDirectory
public class CSCustomDirectory
A directory in the system. Custom Directories are 'special' directories that are managed by the Blackboard Content System. More specifically, the directory contents of a CSCustomDirectory cannot be changed, as they are managed explicitly by Blackboard Content System. For instance, the /users, /courses directories are type CSCustomDirectory
Methods are available for managing quotas for each directory. These quotas are the total space alloted by the owner for all files and sub-directories contained in the directory. Once the quota is reached, no new files can be added to the directory or subdirectories
| Field Summary |
|---|
| Fields inherited from class blackboard.cms.filesystem.CSDirectory |
|---|
NO_QUOTA |
| Method Summary | |
|---|---|
long |
getAvailableQuota()
Returns the amount of unused quota remaining on this directory in bytes. |
java.util.List |
getDirectoryContents()
Returns a List of all readable CSEntry objects which this Directory contains and are findable by navigating down the hiearchy directly. |
long |
getQuota()
Returns the quota for this directory in bytes. |
boolean |
isCustomDirectory()
Returns whether the directory is of type CSCustomDirectory |
boolean |
isQuotaLimited()
Returns true if this directory or any parent directory has a quota limit. |
void |
setQuota(long quota)
Sets the quota for this directory. |
| Methods inherited from class blackboard.cms.filesystem.CSEntry |
|---|
delete, deleteAccessControlEntry, getAccessControlEntries, getAccessControlEntry, getBaseName, getCreationTimestamp, getCSEntryMetadata, getFileSystemEntry, getFullPath, getLastUpdateTimestamp, getParentPath, getSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean isCustomDirectory()
isCustomDirectory in class CSDirectorypublic long getQuota()
getQuota in class CSDirectory
public void setQuota(long quota)
throws CSFileSystemException
setQuota in class CSDirectoryquota - a long representing the quota in number of bytes
CSFileSystemException
public long getAvailableQuota()
throws CSFileSystemException
getAvailableQuota in class CSDirectoryCSFileSystemException
public boolean isQuotaLimited()
throws CSFileSystemException
isQuotaLimited in class CSDirectoryCSFileSystemException
public java.util.List getDirectoryContents()
throws CSFileSystemException
List of all readable CSEntry objects which this Directory contains and are findable by navigating down the hiearchy directly.
getDirectoryContents in class CSDirectoryList of all readable CSEntry objects
CSFileSystemException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||