mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -36,6 +36,7 @@ location.license.shared=classpath*:/alfresco/extension/license/*.lic
|
||||
system.webdav.servlet.enabled=true
|
||||
system.webdav.storeName=${protocols.storeName}
|
||||
system.webdav.rootPath=${protocols.rootPath}
|
||||
system.webdav.activities.enabled=false
|
||||
|
||||
# Is the JBPM Deploy Process Servlet enabled?
|
||||
# Default is false. Should not be enabled in production environments as the
|
||||
|
@@ -22,6 +22,7 @@
|
||||
<property name="fileFolderService" ref="FileFolderService" />
|
||||
<property name="rootNode" ref="webdavRootNode" />
|
||||
<property name="enabled"><value>${system.webdav.servlet.enabled}</value></property>
|
||||
<property name="activitiesEnabled" value="${system.webdav.activities.enabled}"/>
|
||||
</bean>
|
||||
|
||||
<bean id="webdavLockStoreFactory" class="org.alfresco.repo.webdav.LockStoreFactoryImpl">
|
||||
|
@@ -47,17 +47,15 @@ import org.springframework.extensions.surf.util.URLEncoder;
|
||||
public class WebDavServiceImpl implements WebDavService
|
||||
{
|
||||
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;
|
||||
|
||||
// Root nodes
|
||||
private MTNodesCache2 rootNode;
|
||||
private boolean activitiesEnabled;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
@@ -186,4 +184,15 @@ public class WebDavServiceImpl implements WebDavService
|
||||
{
|
||||
return rootNode;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean activitiesEnabled()
|
||||
{
|
||||
return activitiesEnabled;
|
||||
}
|
||||
|
||||
public void setActivitiesEnabled(boolean enabled)
|
||||
{
|
||||
activitiesEnabled = enabled;
|
||||
}
|
||||
}
|
||||
|
@@ -29,4 +29,12 @@ public interface WebDavService
|
||||
*/
|
||||
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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user