|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.cms.filesystem.ContentSystemHelperImpl
public class ContentSystemHelperImpl
Implementation for Content System Helper class.
ContentSystemHelper| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface blackboard.platform.filesystem.ContentSystemHelper |
|---|
blackboard.platform.filesystem.ContentSystemHelper.DocstoreLocation |
| Constructor Summary | |
|---|---|
ContentSystemHelperImpl()
|
|
| Method Summary | |
|---|---|
java.io.File |
copyFileToCSWithAutomaticRename(java.lang.String csFileLocation,
java.io.File tempDir,
java.io.File tempFile)
|
void |
copyLocalFileToCS(java.io.File fileToCopy,
java.lang.String destinationDirectory,
boolean overwrite)
This method wraps a call to CSFileExporter so that all copy methods to and from CS are gathered in one interface. |
void |
copyToLocalFileSystem(java.lang.String source,
java.io.File target)
Perists source to designated target. |
void |
copyToLocalFileSystem(java.lang.String source,
java.lang.String target)
|
blackboard.platform.filesystem.ContentSystemHelper.DocstoreLocation |
getDocstoreLocationByPath(java.lang.String location)
|
java.lang.String |
getFileName(java.lang.String path)
|
long |
getFileSize(java.lang.String path)
|
java.lang.String |
getLocation(java.lang.String path)
Return the actual location of the file (as in CSEntry.getFullPath() ) |
void |
removePrincipal(java.lang.String principal)
Removes references to the provided principal |
void |
writeToLocalOutputStream(java.lang.String source,
java.io.OutputStream os)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentSystemHelperImpl()
| Method Detail |
|---|
public void copyToLocalFileSystem(java.lang.String source,
java.io.File target)
throws blackboard.platform.filesystem.FileSystemException
copyToLocalFileSystem in interface blackboard.platform.filesystem.ContentSystemHelpersource - target -
blackboard.platform.filesystem.FileSystemException
public void writeToLocalOutputStream(java.lang.String source,
java.io.OutputStream os)
throws blackboard.platform.filesystem.FileSystemException
writeToLocalOutputStream in interface blackboard.platform.filesystem.ContentSystemHelperblackboard.platform.filesystem.FileSystemException
public void copyToLocalFileSystem(java.lang.String source,
java.lang.String target)
throws blackboard.platform.filesystem.FileSystemException
copyToLocalFileSystem in interface blackboard.platform.filesystem.ContentSystemHelperblackboard.platform.filesystem.FileSystemException
public void copyLocalFileToCS(java.io.File fileToCopy,
java.lang.String destinationDirectory,
boolean overwrite)
throws blackboard.platform.filesystem.FileSystemException
copyLocalFileToCS in interface blackboard.platform.filesystem.ContentSystemHelperfileToCopy - destinationDirectory - overwrite -
blackboard.platform.filesystem.FileSystemExceptionFileExporter,
CSFileExporter
public java.io.File copyFileToCSWithAutomaticRename(java.lang.String csFileLocation,
java.io.File tempDir,
java.io.File tempFile)
throws blackboard.platform.filesystem.FileSystemException
copyFileToCSWithAutomaticRename in interface blackboard.platform.filesystem.ContentSystemHelperblackboard.platform.filesystem.FileSystemExceptionpublic long getFileSize(java.lang.String path)
getFileSize in interface blackboard.platform.filesystem.ContentSystemHelperpublic java.lang.String getFileName(java.lang.String path)
getFileName in interface blackboard.platform.filesystem.ContentSystemHelperpublic java.lang.String getLocation(java.lang.String path)
getLocation in interface blackboard.platform.filesystem.ContentSystemHelperpath -
public void removePrincipal(java.lang.String principal)
throws blackboard.platform.filesystem.FileSystemException
removePrincipal in interface blackboard.platform.filesystem.ContentSystemHelperprincipal -
blackboard.platform.filesystem.FileSystemExceptionpublic blackboard.platform.filesystem.ContentSystemHelper.DocstoreLocation getDocstoreLocationByPath(java.lang.String location)
getDocstoreLocationByPath in interface blackboard.platform.filesystem.ContentSystemHelper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||