public interface IRepositoryWriter
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupOldVersions()
Clean-up the file versions older than a month For full fledged SCM
system, use external e.g.
|
ICollection |
createCollection(String path)
This method creates a new empty collection at the specified path.
|
IResource |
createResource(String path)
This method creates a new empty resource at the specified path.
|
IResource |
createResource(String path,
byte[] content)
This method creates a new resource at the specified path and fills it
with the specified content.
|
IResource |
createResource(String path,
byte[] content,
boolean isBinary,
String contentType)
This method creates a new empty resource at the specified path.
|
IResource |
createResource(String path,
byte[] content,
boolean isBinary,
String contentType,
boolean override)
This method creates a new empty, or override resource at the specified path.
|
void |
dispose()
Disposes of this repository.
|
void |
removeCollection(String path)
This method removes the collection with the specified path from the
repository.
|
void |
removeResource(String path)
This method removes the resource at the specified path from the
repository.
|
ICollection createCollection(String path) throws RepositoryWriteException
The returned value is an instance of ICollection which
represents the newly created collection.
path - ICollection locationICollection instanceRepositoryWriteException - in case the ICollection cannot be createdvoid removeCollection(String path) throws RepositoryWriteException
path - the ICollection locationRepositoryWriteException - in case the ICollection cannot be removedIResource createResource(String path) throws RepositoryWriteException
The returned value is an instance of IResource that
represents the newly created resource.
path - the IResource locationIResource instanceRepositoryWriteException - in case IResource cannot be createdIResource createResource(String path, byte[] content) throws RepositoryWriteException
The returned value is an instance of IResource that
represents the newly created resource.
path - the IResource locationcontent - the raw contentIResource instanceRepositoryWriteException - in case IResource cannot be createdIResource createResource(String path, byte[] content, boolean isBinary, String contentType) throws RepositoryWriteException
The returned value is an instance of IResource that
represents the newly created resource.
path - the IResource locationcontent - the raw contentisBinary - whether it is binarycontentType - the type of the contentIResource instanceRepositoryWriteException - in case the IResource cannot be createdIResource createResource(String path, byte[] content, boolean isBinary, String contentType, boolean override) throws RepositoryWriteException
The returned value is an instance of IResource that
represents the newly created resource.
path - the IResource locationcontent - the raw contentisBinary - whether it is binarycontentType - the type of the contentoverride - whether to override existingIResource instanceRepositoryWriteException - in case the IResource cannot be createdvoid removeResource(String path) throws RepositoryWriteException
path - the IResource locationRepositoryWriteException - in case the IResource cannot be removedvoid dispose()
Calling this method allows for the repository to release all allocated resources.
Calling this method more than once will be a no-op.
void cleanupOldVersions()
throws RepositoryWriteException
RepositoryWriteException - in case the old versions cannot be cleaned upCopyright © 2010–2018 Eclipse Foundation. All rights reserved.