mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V2.2 to HEAD
10963: Merged DEV/LARGE_COLLECTION_PROPERTIES_2.2.1 to V2.2 - PersonService: Lucene removal - Lucene optimizations (in progress) - Multi-valued and locale-specific properties persisted in alf_node_properties - Removal of unused AVM tables 10987: Oracle dialects and enhanced SQL patch support - Only support Alfresco's 9i and 10g dialects (with auto-switching) - SQL script patches can now apply selectively to ranges 11007: Test to check cached retrieval of QNames git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11206 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -217,24 +217,7 @@ public class LoaderRemoteServer implements LoaderRemote
|
||||
*/
|
||||
public int getNodeCount(String ticket)
|
||||
{
|
||||
Authentication authentication = AuthenticationUtil.getCurrentAuthentication();
|
||||
try
|
||||
{
|
||||
authenticationService.validate(ticket);
|
||||
// Make the call
|
||||
RetryingTransactionCallback<Integer> callback = new RetryingTransactionCallback<Integer>()
|
||||
{
|
||||
public Integer execute() throws Throwable
|
||||
{
|
||||
return nodeDaoService.getNodeCount();
|
||||
}
|
||||
};
|
||||
return retryingTransactionHelper.doInTransaction(callback, false, true);
|
||||
}
|
||||
finally
|
||||
{
|
||||
AuthenticationUtil.setCurrentAuthentication(authentication);
|
||||
}
|
||||
throw new UnsupportedOperationException("getNodeCount cannot be accurately determined at low cost.");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -242,24 +225,7 @@ public class LoaderRemoteServer implements LoaderRemote
|
||||
*/
|
||||
public int getNodeCount(String ticket, final StoreRef storeRef)
|
||||
{
|
||||
Authentication authentication = AuthenticationUtil.getCurrentAuthentication();
|
||||
try
|
||||
{
|
||||
authenticationService.validate(ticket);
|
||||
// Make the call
|
||||
RetryingTransactionCallback<Integer> callback = new RetryingTransactionCallback<Integer>()
|
||||
{
|
||||
public Integer execute() throws Throwable
|
||||
{
|
||||
return nodeDaoService.getNodeCount(storeRef);
|
||||
}
|
||||
};
|
||||
return retryingTransactionHelper.doInTransaction(callback, false, true);
|
||||
}
|
||||
finally
|
||||
{
|
||||
AuthenticationUtil.setCurrentAuthentication(authentication);
|
||||
}
|
||||
throw new UnsupportedOperationException("getNodeCount cannot be accurately determined at low cost.");
|
||||
}
|
||||
|
||||
public FileInfo[] uploadContent(
|
||||
|
Reference in New Issue
Block a user