Class FileSystemStorage
java.lang.Object
org.nuxeo.runtime.model.persistence.fs.FileSystemStorage
- All Implemented Interfaces:
ContributionStorage
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final DocumentBuilderFactory
protected final File
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddContribution
(Contribution contribution) getContribution
(String name) static void
loadMetadata
(Contribution contrib) boolean
removeContribution
(Contribution contrib) static boolean
safeCreate
(File file, String content) static String
static boolean
safeRemove
(File file) static void
updateContribution
(Contribution contribution)
-
Field Details
-
factory
-
root
-
-
Constructor Details
-
FileSystemStorage
public FileSystemStorage()
-
-
Method Details
-
safeRead
-
safeWrite
-
safeCreate
-
safeRemove
-
loadMetadata
-
addContribution
- Specified by:
addContribution
in interfaceContributionStorage
-
getContribution
- Specified by:
getContribution
in interfaceContributionStorage
-
getContributions
- Specified by:
getContributions
in interfaceContributionStorage
-
removeContribution
- Specified by:
removeContribution
in interfaceContributionStorage
-
updateContribution
- Specified by:
updateContribution
in interfaceContributionStorage
-