Added code to regenerate root folder file state if it expires. Fix for AR-1140.

Some fixes after merge.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4651 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2006-12-19 09:29:57 +00:00
parent b3933922b2
commit 372b3a8243
6 changed files with 166 additions and 33 deletions

View File

@@ -39,14 +39,20 @@ public class AVMSingleFileSearchContext extends SearchContext {
private boolean m_endOfSearch;
// Relative path to the file/folder
private String m_relativePath;
/**
* Class constructor
*
* @param fileDetails AVMNodeDescriptor
* @param relPath String
*/
public AVMSingleFileSearchContext( AVMNodeDescriptor fileDetails)
public AVMSingleFileSearchContext( AVMNodeDescriptor fileDetails, String relPath)
{
m_fileDetails = fileDetails;
m_fileDetails = fileDetails;
m_relativePath = relPath;
}
/**
@@ -102,6 +108,7 @@ public class AVMSingleFileSearchContext extends SearchContext {
attr += FileAttribute.Hidden;
info.setFileAttributes( attr);
info.setFileId( m_relativePath.hashCode());
// Set the end of search flag, indicate that the file informatin is valid