mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merged RM 2.3 to trunk RM 2.3.0.x
112691 abozianu: MNT-14728 : CLONE for HF - RM: Not all files are found when searching for a keyword using advanced search. - partial workaround (the elements can be scrolled down but the total result number is still wrong) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3.0.x@112697 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -412,8 +412,29 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class RMFilteringResultSet extends FilteringResultSet
|
||||||
|
{
|
||||||
|
private long numberFound;
|
||||||
|
|
||||||
|
public RMFilteringResultSet(ResultSet unfiltered, BitSet inclusionMask)
|
||||||
|
{
|
||||||
|
super(unfiltered, inclusionMask);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public long getNumberFound()
|
||||||
|
{
|
||||||
|
return numberFound;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void setNumberFound(long numberFound)
|
||||||
|
{
|
||||||
|
this.numberFound = numberFound;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
BitSet inclusionMask = new BitSet(returnedObject.length());
|
BitSet inclusionMask = new BitSet(returnedObject.length());
|
||||||
FilteringResultSet filteringResultSet = new FilteringResultSet(returnedObject, inclusionMask);
|
RMFilteringResultSet filteringResultSet = new RMFilteringResultSet(returnedObject, inclusionMask);
|
||||||
|
|
||||||
List<ConfigAttributeDefintion> supportedDefinitions = extractSupportedDefinitions(config);
|
List<ConfigAttributeDefintion> supportedDefinitions = extractSupportedDefinitions(config);
|
||||||
|
|
||||||
@@ -524,6 +545,9 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
filteringResultSet.setNumberFound(returnedObject.getNumberFound());
|
||||||
|
|
||||||
return filteringResultSet;
|
return filteringResultSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user