mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -181,9 +181,9 @@ public class AVMContext extends AlfrescoContext
|
|||||||
|
|
||||||
// Find the file state for the root folder
|
// 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
|
// 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
|
// Find the file state for the root folder
|
||||||
|
|
||||||
FileState rootState = fsTable.findFileState( FileName.DOS_SEPERATOR_STR);
|
FileState rootState = fsTable.findFileState( FileName.DOS_SEPERATOR_STR);
|
||||||
|
|
||||||
if ( rootState != null && rootState.hasPseudoFiles())
|
if ( rootState != null && rootState.hasPseudoFiles())
|
||||||
{
|
{
|
||||||
// Remove the pseudo folder for the store
|
// Remove the pseudo folder for the store
|
||||||
@@ -289,7 +290,7 @@ public class AVMContext extends AlfrescoContext
|
|||||||
|
|
||||||
FileState verState = fsTable.findFileState( pathStr.toString());
|
FileState verState = fsTable.findFileState( pathStr.toString());
|
||||||
|
|
||||||
if ( verState != null && verState.hasPseudoFiles())
|
if ( verState != null)
|
||||||
{
|
{
|
||||||
// Create the version folder name
|
// Create the version folder name
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user