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:
Gary Spencer
2006-12-12 14:07:07 +00:00
parent 3e6468bd02
commit f2c5192a7f
15 changed files with 1474 additions and 315 deletions

View File

@@ -571,7 +571,7 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
{
// Get the file information for the node
session.beginTransaction(transactionService, true);
session.beginReadTransaction(transactionService);
finfo = cifsHelper.getFileInformation(nodeRef);
// DEBUG
@@ -587,7 +587,7 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
{
// Start a transaction
session.beginTransaction(transactionService, true);
session.beginReadTransaction(transactionService);
String[] paths = FileName.splitPath( path);
@@ -684,7 +684,7 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
// Create the transaction
sess.beginTransaction(transactionService, true);
sess.beginReadTransaction(transactionService);
// If the state table is available see if we can speed up the search using either cached
// file information or find the folder node to be searched without having to walk the path
@@ -887,7 +887,7 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
// Get the node for the folder path
sess.beginTransaction(transactionService, true);
sess.beginReadTransaction(transactionService);
fstate.setNodeRef( getNodeForPath( tree, paths[0]));
// Add pseudo files to the folder
@@ -908,7 +908,7 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
{
// Create the transaction
sess.beginTransaction(transactionService, true);
sess.beginReadTransaction(transactionService);
// Get the node for the folder path
@@ -950,7 +950,7 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
{
// Create the transaction
sess.beginTransaction(transactionService, true);
sess.beginReadTransaction(transactionService);
// Get the file information to check if the file/folder exists
@@ -1006,7 +1006,7 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
{
// Create the transaction
sess.beginTransaction(transactionService, false);
sess.beginWriteTransaction(transactionService);
try
{
@@ -1213,7 +1213,7 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
{
// Create the transaction
sess.beginTransaction(transactionService, false);
sess.beginWriteTransaction(transactionService);
try
{
@@ -1327,7 +1327,7 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
{
// Create the transaction
sess.beginTransaction(transactionService, false);
sess.beginWriteTransaction(transactionService);
try
{
@@ -1434,7 +1434,7 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
{
// Create the transaction
sess.beginTransaction(transactionService, false);
sess.beginWriteTransaction(transactionService);
// get the device root
@@ -1522,7 +1522,7 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
{
// Create the transaction
sess.beginTransaction(transactionService, false);
sess.beginWriteTransaction(transactionService);
// Get the associated file state
@@ -1614,7 +1614,7 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
{
// Create the transaction
sess.beginTransaction(transactionService, false);
sess.beginWriteTransaction(transactionService);
// Get the device context
@@ -1690,7 +1690,8 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
public void renameFile(SrvSession sess, TreeConnection tree, String oldName, String newName) throws IOException
{
// Create the transaction
sess.beginTransaction(transactionService, false);
sess.beginWriteTransaction(transactionService);
try
{

View File

@@ -285,7 +285,7 @@ public class ContentIOControlHandler implements IOControlHandler
{
// Start a transaction
sess.beginTransaction( getTransactionService(), true);
sess.beginReadTransaction( getTransactionService());
// Get the file name from the request
@@ -531,7 +531,7 @@ public class ContentIOControlHandler implements IOControlHandler
// Start a transaction
sess.beginTransaction( getTransactionService(), true);
sess.beginReadTransaction( getTransactionService());
// Get an authentication ticket for the client, or validate the existing ticket. The ticket can be used when
// generating URLs for the client-side application so that the user does not have to re-authenticate

View File

@@ -84,7 +84,7 @@ public class CheckInOutDesktopAction extends DesktopAction {
// Start a transaction
params.getSession().beginTransaction( transService, false);
params.getSession().beginWriteTransaction( transService);
// Process the list of target nodes

View File

@@ -274,7 +274,7 @@ public class JavaScriptDesktopAction extends DesktopAction {
// Start a transaction
TransactionService transService = getServiceRegistry().getTransactionService();
params.getSession().beginTransaction( transService, false);
params.getSession().beginWriteTransaction( transService);
// Access the script service
@@ -293,7 +293,7 @@ public class JavaScriptDesktopAction extends DesktopAction {
// Start a transaction
params.getSession().beginTransaction( transService, false);
params.getSession().beginWriteTransaction( transService);
// Run the script