|
||||||||||
| 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
public class CSDirectory
A directory in the system. 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 | |
|---|---|
static long |
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 |
| Field Detail |
|---|
public static long NO_QUOTA
| Method Detail |
|---|
public boolean isCustomDirectory()
public long getQuota()
public void setQuota(long quota)
throws CSFileSystemException
quota - a long representing the quota in number of bytes
CSFileSystemException
public long getAvailableQuota()
throws CSFileSystemException
CSFileSystemException
public boolean isQuotaLimited()
throws CSFileSystemException
CSFileSystemException
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.
List of all readable CSEntry objects
CSFileSystemException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||