mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user