Package ru.i_novus.common.file.storage
Class BaseFileStorage
- java.lang.Object
-
- ru.i_novus.common.file.storage.BaseFileStorage
-
- All Implemented Interfaces:
FileStorage,FsFileStorage
public abstract class BaseFileStorage extends Object implements FsFileStorage
-
-
Constructor Summary
Constructors Constructor Description BaseFileStorage()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<Node>getChildrenOf(String path)InputStreamgetContent(String path)StringgetRoot()protected abstract StringgetSpaceName()protected abstract StringgetWorkspaceName()booleanisExistContent(String name)voidremoveContent(String name)StringsaveContent(InputStream content, String path)StringsaveContentWithFullPath(InputStream content, String path)voidsetRoot(String root)
-
-
-
Method Detail
-
getWorkspaceName
protected abstract String getWorkspaceName()
-
getSpaceName
protected abstract String getSpaceName()
-
getContent
public InputStream getContent(String path)
- Specified by:
getContentin interfaceFileStorage
-
saveContent
public String saveContent(InputStream content, String path)
- Specified by:
saveContentin interfaceFileStorage
-
saveContentWithFullPath
public String saveContentWithFullPath(InputStream content, String path)
- Specified by:
saveContentWithFullPathin interfaceFsFileStorage
-
removeContent
public void removeContent(String name)
- Specified by:
removeContentin interfaceFileStorage
-
isExistContent
public boolean isExistContent(String name)
-
getRoot
public String getRoot()
-
setRoot
public void setRoot(String root)
-
-