org.nuxeo.runtime.model.persistence.fs
Class FileSystemStorage
java.lang.Object
org.nuxeo.runtime.model.persistence.fs.FileSystemStorage
- All Implemented Interfaces:
- ContributionStorage
public class FileSystemStorage
- extends Object
- implements ContributionStorage
- Author:
- Bogdan Stefanescu
log
public static final Log log
FileSystemStorage
public FileSystemStorage()
safeRead
public static String safeRead(File file)
throws IOException
- Throws:
IOException
safeWrite
public static void safeWrite(File file,
String content)
throws IOException
- Throws:
IOException
safeCreate
public static boolean safeCreate(File file,
String content)
throws IOException
- Throws:
IOException
safeRemove
public static boolean safeRemove(File file)
throws IOException
- Throws:
IOException
loadMetadata
public static void loadMetadata(Contribution contrib)
addContribution
public Contribution addContribution(Contribution contribution)
throws Exception
- Specified by:
addContribution
in interface ContributionStorage
- Throws:
Exception
getContribution
public Contribution getContribution(String name)
- Specified by:
getContribution
in interface ContributionStorage
getContributions
public List<Contribution> getContributions()
- Specified by:
getContributions
in interface ContributionStorage
removeContribution
public boolean removeContribution(Contribution contrib)
throws Exception
- Specified by:
removeContribution
in interface ContributionStorage
- Throws:
Exception
updateContribution
public Contribution updateContribution(Contribution contribution)
throws Exception
- Specified by:
updateContribution
in interface ContributionStorage
- Throws:
Exception
Copyright © 2011 Nuxeo SAS. All Rights Reserved.