mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Updates to AVM virtualization view for the latest layout with DATA and METADATA folders.
Fixes to AVM filesystem transaction handling. Made SrvSession.beginTransaction() private and added beginReadTransaction() and beginWriteTransaction(). git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4580 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -468,6 +468,32 @@ public abstract class SrvSession
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a read transaction, if not already active
|
||||
*
|
||||
* @param transService TransactionService
|
||||
* @return boolean
|
||||
* @exception AlfrescoRuntimeException
|
||||
*/
|
||||
public final boolean beginReadTransaction( TransactionService transService)
|
||||
throws AlfrescoRuntimeException
|
||||
{
|
||||
return beginTransaction(transService, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a write transaction, if not already active
|
||||
*
|
||||
* @param transService TransactionService
|
||||
* @return boolean
|
||||
* @exception AlfrescoRuntimeException
|
||||
*/
|
||||
public final boolean beginWriteTransaction( TransactionService transService)
|
||||
throws AlfrescoRuntimeException
|
||||
{
|
||||
return beginTransaction(transService, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and start a transaction, if not already active
|
||||
*
|
||||
@@ -476,7 +502,7 @@ public abstract class SrvSession
|
||||
* @return boolean
|
||||
* @exception AlfrescoRuntimeException
|
||||
*/
|
||||
public final boolean beginTransaction(TransactionService transService, boolean readOnly)
|
||||
private final boolean beginTransaction(TransactionService transService, boolean readOnly)
|
||||
throws AlfrescoRuntimeException
|
||||
{
|
||||
boolean created = false;
|
||||
|
Reference in New Issue
Block a user