ALF-12866: WebDAV should use in-memory locking for transient locks

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@34167 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Matt Ward
2012-02-22 15:28:47 +00:00
parent a2bce3ac9a
commit bb1ffbd967
11 changed files with 468 additions and 347 deletions

View File

@@ -77,6 +77,7 @@ public class WebDAVHelper
private DictionaryService m_dictionaryService;
private MimetypeService m_mimetypeService;
private LockService m_lockService;
private LockStore m_lockStore;
private ActionService m_actionService;
private AuthenticationService m_authService;
private PermissionService m_permissionService;
@@ -88,7 +89,7 @@ public class WebDAVHelper
/**
* Class constructor
*/
protected WebDAVHelper(ServiceRegistry serviceRegistry, AuthenticationService authService)
protected WebDAVHelper(ServiceRegistry serviceRegistry, LockStore lockStore, AuthenticationService authService)
{
m_serviceRegistry = serviceRegistry;
@@ -103,6 +104,8 @@ public class WebDAVHelper
m_permissionService = m_serviceRegistry.getPermissionService();
m_authService = authService;
m_lockStore = lockStore;
}
/**
@@ -173,6 +176,14 @@ public class WebDAVHelper
{
return m_lockService;
}
/**
* @return Return the {@link LockStore lock store}.
*/
public final LockStore getLockStore()
{
return m_lockStore;
}
/**
* @return Return the action service