public class Repository extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Repository()
Argument-less constructor, used for in-memory kernel.
|
|
Repository(RevisionStore rs,
org.apache.jackrabbit.oak.spi.blob.BlobStore bs)
Alternate constructor, used for testing.
|
|
Repository(String homeDir) |
| Modifier and Type | Method and Description |
|---|---|
Id |
getBaseRevision(Id branchRevision) |
org.apache.jackrabbit.oak.spi.blob.BlobStore |
getBlobStore() |
StoredCommit |
getCommit(Id id) |
CommitBuilder |
getCommitBuilder(Id revId,
String msg) |
StoredCommit |
getHeadCommit() |
Id |
getHeadRevision() |
StoredNode |
getNode(Id revId,
String path) |
RevisionStore |
getRevisionStore() |
void |
init() |
boolean |
nodeExists(Id revId,
String path) |
void |
shutDown() |
public Repository(RevisionStore rs, org.apache.jackrabbit.oak.spi.blob.BlobStore bs)
rs - revision storebs - blob storeprotected Repository()
public RevisionStore getRevisionStore()
public org.apache.jackrabbit.oak.spi.blob.BlobStore getBlobStore()
public StoredCommit getHeadCommit() throws Exception
Exceptionpublic StoredCommit getCommit(Id id) throws NotFoundException, Exception
NotFoundExceptionExceptionpublic StoredNode getNode(Id revId, String path) throws NotFoundException, Exception
NotFoundExceptionExceptionpublic CommitBuilder getCommitBuilder(Id revId, String msg) throws Exception
ExceptionCopyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.