Removed unnecessary checks for empty pseudo folder list, and create the root folder file state if required in the

AVM callback listeners.
Fixes a problem where the virtualization view does not update when new stores/versions are created when the database is
empty on startup, AR-1134.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4622 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2006-12-15 18:15:20 +00:00
parent fdb092052e
commit 4b028c66ee

View File

@@ -181,9 +181,9 @@ public class AVMContext extends AlfrescoContext
// Find the file state for the root folder
FileState rootState = fsTable.findFileState( FileName.DOS_SEPERATOR_STR);
FileState rootState = fsTable.findFileState( FileName.DOS_SEPERATOR_STR, true, true);
if ( rootState != null && rootState.hasPseudoFiles())
if ( rootState != null)
{
// Add a pseudo folder for the new store
@@ -228,6 +228,7 @@ public class AVMContext extends AlfrescoContext
// Find the file state for the root folder
FileState rootState = fsTable.findFileState( FileName.DOS_SEPERATOR_STR);
if ( rootState != null && rootState.hasPseudoFiles())
{
// Remove the pseudo folder for the store
@@ -289,7 +290,7 @@ public class AVMContext extends AlfrescoContext
FileState verState = fsTable.findFileState( pathStr.toString());
if ( verState != null && verState.hasPseudoFiles())
if ( verState != null)
{
// Create the version folder name