ALF-13441: WebDAV: activities should be raised/published

* WebDAV methods raise activities for file creation, modification, deletion.
* Repository property to enabled/disable activity feed generation is disabled by default.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@34748 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Matt Ward
2012-03-26 14:25:26 +00:00
parent bb8fd4c88b
commit b8e8b5f250
4 changed files with 28 additions and 9 deletions

View File

@@ -46,18 +46,16 @@ import org.springframework.extensions.surf.util.URLEncoder;
*/
public class WebDavServiceImpl implements WebDavService
{
public static final String WEBDAV_PREFIX = "webdav";
public static final String WEBDAV_PREFIX = "webdav";
private static Log logger = LogFactory.getLog(WebDavServiceImpl.class);
private boolean enabled = false;
private NodeService nodeService;
private DictionaryService dictionaryService;
private FileFolderService fileFolderService;
private FileFolderService fileFolderService;
// Root nodes
private MTNodesCache2 rootNode;
private boolean activitiesEnabled;
/**
@@ -185,5 +183,16 @@ public class WebDavServiceImpl implements WebDavService
public MTNodesCache2 getRootNode()
{
return rootNode;
}
}
@Override
public boolean activitiesEnabled()
{
return activitiesEnabled;
}
public void setActivitiesEnabled(boolean enabled)
{
activitiesEnabled = enabled;
}
}

View File

@@ -28,5 +28,13 @@ public interface WebDavService
* @return the URL of the node in webdav or "" if a URL cannot be built.
*/
public String getWebdavUrl(NodeRef nodeRef);
/**
* Determines whether activity post generation is enabled for WebDAV. When enabled,
* file creation, modification and deletion will create activities that can be viewed
* in the Share web client.
*
* @return true if activity generation is enabled.
*/
public boolean activitiesEnabled();
}