public class TransactionImpl extends Object implements org.fcrepo.kernel.Transaction
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TIMEOUT |
static String |
TIMEOUT_SYSTEM_PROPERTY |
| Constructor and Description |
|---|
TransactionImpl(javax.jcr.Session session,
String userName)
Create a transaction for the given Session
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPathToVersion(String absPath) |
void |
commit(org.fcrepo.kernel.services.VersionService vService) |
void |
expire() |
Date |
getCreated() |
Date |
getExpires() |
String |
getId() |
javax.jcr.Session |
getSession() |
org.fcrepo.kernel.Transaction.State |
getState() |
boolean |
isAssociatedWithUser(String userName)
Checks if this transaction is associated with a specific user.
|
void |
rollback() |
void |
updateExpiryDate() |
public static final long DEFAULT_TIMEOUT
public static final String TIMEOUT_SYSTEM_PROPERTY
public TransactionImpl(javax.jcr.Session session,
String userName)
session - public javax.jcr.Session getSession()
getSession in interface org.fcrepo.kernel.Transactionpublic Date getCreated()
getCreated in interface org.fcrepo.kernel.Transactionpublic String getId()
getId in interface org.fcrepo.kernel.Transactionpublic org.fcrepo.kernel.Transaction.State getState()
throws javax.jcr.RepositoryException
getState in interface org.fcrepo.kernel.Transactionjavax.jcr.RepositoryExceptionpublic Date getExpires()
getExpires in interface org.fcrepo.kernel.Transactionpublic void addPathToVersion(String absPath)
addPathToVersion in interface org.fcrepo.kernel.Transactionpublic void commit(org.fcrepo.kernel.services.VersionService vService)
throws javax.jcr.RepositoryException
commit in interface org.fcrepo.kernel.Transactionjavax.jcr.RepositoryExceptionpublic void expire()
expire in interface org.fcrepo.kernel.Transactionpublic boolean isAssociatedWithUser(String userName)
isAssociatedWithUser in interface org.fcrepo.kernel.TransactionuserName - the userpublic void rollback()
throws javax.jcr.RepositoryException
rollback in interface org.fcrepo.kernel.Transactionjavax.jcr.RepositoryExceptionpublic void updateExpiryDate()
updateExpiryDate in interface org.fcrepo.kernel.TransactionCopyright © 2013–2014 DuraSpace, Inc.. All rights reserved.