Class FsFileStorePlugin
java.lang.Object
io.vertigo.datastore.plugins.filestore.fs.FsFileStorePlugin
- All Implemented Interfaces:
io.vertigo.core.node.component.Activeable,io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Plugin,FileStorePlugin
public final class FsFileStorePlugin
extends Object
implements FileStorePlugin, io.vertigo.core.node.component.Activeable
Permet de gérer les accès atomiques à n'importe quel type de stockage SQL/
non SQL pour les traitements de FileInfo.
- Author:
- pchretien, npiedeloup, skerdudou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSave a file.voiddelete(FileInfoURI uri) Delete a file.récupère la valeur de documentRoot.Get's the FileInfo Class that are handled by the particular plugingetName()read(FileInfoURI uri) Load a file by its URI.voidstart()voidstop()voidSave a file.
-
Constructor Details
-
FsFileStorePlugin
@Inject public FsFileStorePlugin(Optional<String> name, String storeDtDefinitionName, String path, String fileInfoClassName, io.vertigo.commons.transaction.VTransactionManager transactionManager) Constructor.- Parameters:
name- Store namestoreDtDefinitionName- Nom du dt de stockagepath- le chemin jndi pour récupérer le paramètre path dans le contexttransactionManager- Manager des transactions
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceio.vertigo.core.node.component.Activeable
-
stop
public void stop()- Specified by:
stopin interfaceio.vertigo.core.node.component.Activeable
-
getName
- Specified by:
getNamein interfaceFileStorePlugin- Returns:
- Store name
-
read
Load a file by its URI.- Specified by:
readin interfaceFileStorePlugin- Parameters:
uri- FileURI requested- Returns:
- FileInfo for this uri (null if not found).
-
create
Save a file. Input FileInfo must have an empty URI : insert mode- Specified by:
createin interfaceFileStorePlugin- Parameters:
fileInfo- File to save (creation)- Returns:
- the created FileInfo
-
update
Save a file. Input FileInfo must have an URI : update mode- Specified by:
updatein interfaceFileStorePlugin- Parameters:
fileInfo- File to save (modification)
-
delete
Delete a file.- Specified by:
deletein interfaceFileStorePlugin- Parameters:
uri- File's URI to remove
-
getFileInfoClass
Description copied from interface:FileStorePluginGet's the FileInfo Class that are handled by the particular plugin- Specified by:
getFileInfoClassin interfaceFileStorePlugin- Returns:
-
getDocumentRoot
récupère la valeur de documentRoot.- Returns:
- valeur de documentRoot
-