|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileSystemService
Interface for FileSystemServiceImpl class.
FileSystemServiceImpl
Method Summary | |
---|---|
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 |
getCollabDocDirectory()
returns the doc root of the collab server |
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 |
getContextSessionDirectory()
Returns the root directory of the session in the current context. |
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 |
getMessagingDirectory(Course course)
Returns the root directory relative to the course. |
java.io.File |
getMessagingDirectory(Id courseId)
Returns the root directory relative to the course. |
java.io.File |
getMessagingDirectory(java.lang.String courseId)
Returns the messaging directory relative to the course. |
java.io.File |
getModuleDirectory(Id moduleId)
Returns the root directory relative to the module for given host. |
java.io.File |
getProductDirectory(java.lang.Integer productId)
Returns the root directory relative to the course. |
java.io.File |
getRecycleDirectory()
Returns the root directory of the "recycle bin" for the application. |
java.io.File |
getRecycleDirectory(Course course)
Returns the root directory of the "recycle bin" for a specific course. |
java.io.File |
getRecycleDirectory(java.io.File file)
Returns the appropriate recycle directory for a given file or directory. |
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 |
getWebAttemptDirectory(java.lang.String courseId,
java.lang.String 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 |
getWebContentDirectory(java.lang.String courseId,
java.lang.String contentId)
Returns the web based root directory relative to the course and content id. |
java.lang.String |
getWebContextSessionDirectory()
Returns the web based root directory of the session in the current context. |
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 |
getWebMessagingDirectory(Course course)
Returns the url to messages directory relative to the course. |
java.lang.String |
getWebMessagingDirectory(Id courseId)
Returns the url to messages directory relative to the course. |
java.lang.String |
getWebMessagingDirectory(java.lang.String courseId)
Returns the url to messaging url relative to the course. |
java.lang.String |
getWebModuleDirectory(Id moduleId)
Returns the web based root directory relative to the module for given host. |
java.lang.String |
getWebProductDirectory(java.lang.Integer productId)
Returns the web based root directory relative to the branding for given host. |
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 d irectory |
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 |
---|
java.io.File getCourseDirectory(java.lang.String courseId) throws FileSystemException
course
- Course
FileSystemException
java.io.File getCourseDirectory(Course course) throws FileSystemException
course
- Course
FileSystemException
java.lang.String getWebCourseDirectory(java.lang.String courseId) throws FileSystemException
courseId
- The ID of the course desired
FileSystemException
java.lang.String getWebCourseDirectory(Course course) throws FileSystemException
course
- The Course
desired
FileSystemException
java.io.File getRootCourseDirectory() throws FileSystemException
FileSystemException
java.lang.String getWebContentDirectory(java.lang.String courseId, Id contentId) throws FileSystemException
course
- Course
content
- Id Id
FileSystemException
java.lang.String getWebContentDirectory(Course course, Id contentId) throws FileSystemException
course
- Course
content
- Id Id
FileSystemException
java.lang.String getWebContentDirectory(java.lang.String courseId, java.lang.String contentId) throws FileSystemException
courseId
- String Course Id (not pk id)
contentId
- External String representation of content pk_id
FileSystemException
java.io.File getContentDirectory(java.lang.String courseId, Id contentId) throws FileSystemException
String
- Course
idcontent
- Id Id
FileSystemException
java.io.File getContentDirectory(Course course, Id contentId) throws FileSystemException
String
- Course
idcontent
- Id Id
FileSystemException
java.lang.String getWebAttemptDirectory(java.lang.String courseId, Id attemptId, AttemptFile.FileType fileType) throws FileSystemException
course
- Course
attempt
- Id Id
FileSystemException
java.lang.String getWebAttemptDirectory(java.lang.String courseId, java.lang.String attemptId, AttemptFile.FileType fileType) throws FileSystemException
course
- CourseId
external stringattempt
- Id Id
external string
FileSystemException
java.lang.String getWebAttemptDirectory(Course course, Id attemptId, AttemptFile.FileType fileType) throws FileSystemException
course
- Course
attempt
- Id Id
FileSystemException
java.io.File getAttemptDirectory(java.lang.String courseId, Id attemptId, AttemptFile.FileType fileType) throws FileSystemException
String
- Course
idattempt
- Id Id
FileSystemException
java.io.File getAttemptDirectory(Course course, Id attemptId, AttemptFile.FileType fileType) throws FileSystemException
String
- Course
idattempt
- Id Id
FileSystemException
java.io.File getBrandingDirectory(Id portalBrandingId) throws FileSystemException
brandingKey
- String
FileSystemException
java.lang.String getWebBrandingDirectory(Id portalBrandingId) throws FileSystemException
brandingKey
- String
FileSystemException
java.io.File getModuleDirectory(Id moduleId) throws FileSystemException
moduleId
- Id
FileSystemException
java.lang.String getWebModuleDirectory(Id moduleId) throws FileSystemException
moduleId
- Id
FileSystemException
java.io.File getProductDirectory(java.lang.Integer productId) throws FileSystemException
course
- Course
FileSystemException
java.lang.String getWebProductDirectory(java.lang.Integer productId) throws FileSystemException
brandingKey
- String
FileSystemException
java.io.File getSponsorsDirectory(Id sponsorsId) throws FileSystemException
FileSystemException
java.lang.String getWebSponsorsDirectory(Id sponsorsId) throws FileSystemException
FileSystemException
java.io.File getVIDataDirectory() throws FileSystemException
FileSystemException
java.io.File getVIDataDirectory(VirtualInstallation vi) throws FileSystemException
vi
- VirtualInstallation to be used in directory
FileSystemException
java.lang.String getWebVIDataDirectory() throws FileSystemException
FileSystemException
java.lang.String getWebVIDataDirectory(VirtualInstallation vi) throws FileSystemException
vi
- VirtualInstallation to be used in directory
FileSystemException
java.io.File getVISystemDataDirectory() throws FileSystemException
FileSystemException
java.lang.String getWebVISystemDataDirectory() throws FileSystemException
FileSystemException
java.io.File getSessionDirectory() throws FileSystemException
FileSystemException
java.lang.String getWebSessionDirectory() throws FileSystemException
FileSystemException
java.io.File getContextSessionDirectory() throws FileSystemException
FileSystemException
- if there is an error determining the current
session directoryjava.lang.String getWebContextSessionDirectory() throws FileSystemException
FileSystemException
- if there is an error determining the current
session directoryjava.io.File getTempDirectory() throws FileSystemException
FileSystemException
java.io.File getLogsDirectory() throws FileSystemException
FileSystemException
java.io.File getRecycleDirectory() throws FileSystemException
FileSystemException
java.io.File getRecycleDirectory(Course course) throws FileSystemException
FileSystemException
java.io.File getRecycleDirectory(java.io.File file) throws FileSystemException, java.io.IOException
FileSystemException
java.io.IOException
java.io.File getMessagingDirectory(java.lang.String courseId) throws FileSystemException
String
- Course
idcontent
- Id Id
FileSystemException
java.io.File getMessagingDirectory(Course course) throws FileSystemException
String
- Course
idcontent
- Id Id
FileSystemException
java.io.File getMessagingDirectory(Id courseId) throws FileSystemException
String
- Course
idcontent
- Id Id
FileSystemException
java.lang.String getWebMessagingDirectory(java.lang.String courseId) throws FileSystemException
String
- Course
id
FileSystemException
java.lang.String getWebMessagingDirectory(Course course) throws FileSystemException
String
- Course
id
FileSystemException
java.lang.String getWebMessagingDirectory(Id courseId) throws FileSystemException
String
- Course
id
FileSystemException
MultipartRequest processUpload(javax.servlet.http.HttpServletRequest req) throws java.io.IOException
msr
- stream readerboundary
- multi-part boundary string to parse forfileName
- name to save the file under
java.io.IOException
- thrown if the underlying io objects complainjava.io.File getCollabDocDirectory() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |