|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for FileSystemServiceImpl class.
FileSystemServiceImpl| Method Summary | |
java.io.File |
getApplicationDirectory()
Returns the root of the application directory for persistant files. |
java.io.File |
getAttemptDirectory(Course course,
Id attemptId,
AttemptFile.FileType fileType)
Returns the root directory relative to the course and attempt id. |
java.io.File |
getAttemptDirectory(java.lang.String courseId,
Id attemptId,
AttemptFile.FileType fileType)
Returns the root directory relative to the course and attempt id. |
java.io.File |
getBrandingDirectory(Id portalBrandingId)
Returns the root directory relative to the branding for given host. |
java.io.File |
getContentDirectory(Course course,
Id contentId)
Returns the root directory relative to the course and content id. |
java.io.File |
getContentDirectory(java.lang.String courseId,
Id contentId)
Returns the root directory relative to the course and content id. |
java.io.File |
getCourseDirectory(Course course)
Returns the root directory relative to the course. |
java.io.File |
getCourseDirectory(java.lang.String courseId)
Returns the root directory relative to the course. |
java.io.File |
getLogsDirectory()
Returns the root of the logs directory for use within application. |
java.io.File |
getRecycleDirectory()
Returns the root directory of the "recycle bin" for the application. |
java.io.File |
getRootCourseDirectory()
Returns the root directory that all courses are stored in |
java.io.File |
getSessionDirectory()
Returns the root of the session directory registered for the application. |
java.io.File |
getSponsorsDirectory(Id sponsorsId)
Returns the root directory relative to the sponsors for given id. |
java.io.File |
getTempDirectory()
Returns a temp directory for use within application. |
java.io.File |
getVIDataDirectory()
Returns the root of the content directory. |
java.io.File |
getVIDataDirectory(VirtualInstallation vi)
Returns the root of the content directory. |
java.io.File |
getVISystemDataDirectory()
Returns the root of the systemdata directory. |
java.lang.String |
getWebAttemptDirectory(Course course,
Id attemptId,
AttemptFile.FileType fileType)
Returns the web based root directory relative to the course and attempt id. |
java.lang.String |
getWebAttemptDirectory(java.lang.String courseId,
Id attemptId,
AttemptFile.FileType fileType)
Returns the web based root directory relative to the course and attempt id. |
java.lang.String |
getWebBrandingDirectory(Id portalBrandingId)
Returns the web based root directory relative to the branding for given host. |
java.lang.String |
getWebContentDirectory(Course course,
Id contentId)
Returns the web based root directory relative to the course and content id. |
java.lang.String |
getWebContentDirectory(java.lang.String courseId,
Id contentId)
Returns the web based root directory relative to the course and content id. |
java.lang.String |
getWebCourseDirectory(Course course)
Returns the web-root based directory path to the course. |
java.lang.String |
getWebCourseDirectory(java.lang.String courseId)
Returns the web-root based directory path to the course. |
java.lang.String |
getWebSessionDirectory()
Returns the web based root of the session directory registered for the application. |
java.lang.String |
getWebSponsorsDirectory(Id sponsorsId)
Returns the web based root directory relative to the branding for given host. |
java.lang.String |
getWebVIDataDirectory()
Deprecated. This method never worked, because it points to an unavailable directory |
java.lang.String |
getWebVIDataDirectory(VirtualInstallation vi)
Deprecated. This method never worked, because it points to an unavailable directory |
java.lang.String |
getWebVISystemDataDirectory()
Returns the web based root of the systemdata directory. |
MultipartRequest |
processUpload(javax.servlet.http.HttpServletRequest req)
Reads the file from the multipart stream and saves out the stream as a File. |
| Method Detail |
public java.io.File getCourseDirectory(java.lang.String courseId)
throws FileSystemException
FileSystemException
public java.io.File getCourseDirectory(Course course)
throws FileSystemException
course - Course
FileSystemException
public java.lang.String getWebCourseDirectory(java.lang.String courseId)
throws FileSystemException
courseId - The ID of the course desired
FileSystemException
public java.lang.String getWebCourseDirectory(Course course)
throws FileSystemException
course - The Course desired
FileSystemException
public java.io.File getRootCourseDirectory()
throws FileSystemException
FileSystemException
public java.lang.String getWebContentDirectory(java.lang.String courseId,
Id contentId)
throws FileSystemException
FileSystemException
public java.lang.String getWebContentDirectory(Course course,
Id contentId)
throws FileSystemException
course - Course
FileSystemException
public java.io.File getContentDirectory(java.lang.String courseId,
Id contentId)
throws FileSystemException
FileSystemException
public java.io.File getContentDirectory(Course course,
Id contentId)
throws FileSystemException
FileSystemException
public java.lang.String getWebAttemptDirectory(java.lang.String courseId,
Id attemptId,
AttemptFile.FileType fileType)
throws FileSystemException
FileSystemException
public java.lang.String getWebAttemptDirectory(Course course,
Id attemptId,
AttemptFile.FileType fileType)
throws FileSystemException
course - Course
FileSystemException
public java.io.File getAttemptDirectory(java.lang.String courseId,
Id attemptId,
AttemptFile.FileType fileType)
throws FileSystemException
FileSystemException
public java.io.File getAttemptDirectory(Course course,
Id attemptId,
AttemptFile.FileType fileType)
throws FileSystemException
FileSystemException
public java.io.File getBrandingDirectory(Id portalBrandingId)
throws FileSystemException
FileSystemException
public java.lang.String getWebBrandingDirectory(Id portalBrandingId)
throws FileSystemException
FileSystemException
public java.io.File getSponsorsDirectory(Id sponsorsId)
throws FileSystemException
FileSystemException
public java.lang.String getWebSponsorsDirectory(Id sponsorsId)
throws FileSystemException
FileSystemException
public java.io.File getVIDataDirectory()
throws FileSystemException
FileSystemException
public java.io.File getVIDataDirectory(VirtualInstallation vi)
throws FileSystemException
vi - VirtualInstallation to be used in directory
FileSystemException
public java.lang.String getWebVIDataDirectory()
throws FileSystemException
FileSystemException
public java.lang.String getWebVIDataDirectory(VirtualInstallation vi)
throws FileSystemException
vi - VirtualInstallation to be used in directory
FileSystemException
public java.io.File getVISystemDataDirectory()
throws FileSystemException
FileSystemException
public java.lang.String getWebVISystemDataDirectory()
throws FileSystemException
FileSystemException
public java.io.File getSessionDirectory()
throws FileSystemException
FileSystemException
public java.lang.String getWebSessionDirectory()
throws FileSystemException
FileSystemException
public java.io.File getApplicationDirectory()
throws FileSystemException
FileSystemException
public java.io.File getTempDirectory()
throws FileSystemException
FileSystemException
public java.io.File getLogsDirectory()
throws FileSystemException
FileSystemException
public java.io.File getRecycleDirectory()
throws FileSystemException
FileSystemException
public MultipartRequest processUpload(javax.servlet.http.HttpServletRequest req)
throws java.io.IOException
java.io.IOException - thrown if the underlying io objects complain
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||