mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
78551: Merged V4.2-BUG-FIX (4.2.4) to HEAD-BUG-FIX (5.0/Cloud) 77501: Merged DEV to V4.2-BUG-FIX (4.2.4) 76291 : MNT-11511 : All tags are not displayed in repository when the number of nodes taggable is over 1000 - Using tagscope api at search for tags quantity in repository git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@82595 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -17,6 +17,9 @@
|
|||||||
<app:icon>space-icon-default</app:icon>
|
<app:icon>space-icon-default</app:icon>
|
||||||
<cm:title>${spaces.company_home.name}</cm:title>
|
<cm:title>${spaces.company_home.name}</cm:title>
|
||||||
<cm:description>${spaces.company_home.description}</cm:description>
|
<cm:description>${spaces.company_home.description}</cm:description>
|
||||||
|
<view:aspects>
|
||||||
|
<cm:tagscope/>
|
||||||
|
</view:aspects>
|
||||||
<cm:contains>
|
<cm:contains>
|
||||||
<cm:folder view:childName="${spaces.dictionary.childname}">
|
<cm:folder view:childName="${spaces.dictionary.childname}">
|
||||||
<view:acl view:inherit="false">
|
<view:acl view:inherit="false">
|
||||||
|
@@ -456,4 +456,7 @@ patch.genericBootstrap.result.deferred=The patch has been deferred
|
|||||||
patch.asynchrounse.checking=Checking for the asynchronous patch ...
|
patch.asynchrounse.checking=Checking for the asynchronous patch ...
|
||||||
|
|
||||||
patch.renameSiteAuthorityDisplayName.description=Update authority display name for sites
|
patch.renameSiteAuthorityDisplayName.description=Update authority display name for sites
|
||||||
patch.renameSiteAuthorityDisplayName.result=Updating of display names was completed
|
patch.renameSiteAuthorityDisplayName.result=Updating of display names was completed
|
||||||
|
|
||||||
|
patch.addTagScopeAspect.description=Add tagscode aspect to the Company Home folder
|
||||||
|
patch.addTagScopeAspect.result=tagscope aspect added to the Company Home folder successfully
|
@@ -3205,6 +3205,32 @@
|
|||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
<bean id="patch.addTagScopeAspect"
|
||||||
|
class="org.alfresco.repo.admin.patch.impl.AddTagScopeAspect"
|
||||||
|
parent="basePatch">
|
||||||
|
<property name="id">
|
||||||
|
<value>patch.addTagScopeAspect</value>
|
||||||
|
</property>
|
||||||
|
<property name="description">
|
||||||
|
<value>patch.addTagScopeAspect.description</value>
|
||||||
|
</property>
|
||||||
|
<property name="fixesFromSchema">
|
||||||
|
<value>0</value>
|
||||||
|
</property>
|
||||||
|
<property name="fixesToSchema">
|
||||||
|
<value>6065</value>
|
||||||
|
</property>
|
||||||
|
<property name="targetSchema">
|
||||||
|
<value>6066</value>
|
||||||
|
</property>
|
||||||
|
<property name="repository">
|
||||||
|
<ref bean="repositoryHelper"/>
|
||||||
|
</property>
|
||||||
|
<property name="taggingService">
|
||||||
|
<ref bean="TaggingService"/>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
<bean id="patch.siteAdministrators" class="org.alfresco.repo.admin.patch.impl.AddGroupAuthorityPatch" parent="basePatch" >
|
<bean id="patch.siteAdministrators" class="org.alfresco.repo.admin.patch.impl.AddGroupAuthorityPatch" parent="basePatch" >
|
||||||
<property name="id"><value>patch.siteAdministrators</value></property>
|
<property name="id"><value>patch.siteAdministrators</value></property>
|
||||||
<property name="description"><value>patch.siteAdministrators.description</value></property>
|
<property name="description"><value>patch.siteAdministrators.description</value></property>
|
||||||
@@ -3295,6 +3321,7 @@
|
|||||||
<!-- Do we deferr running the surf-config folder patch? -->
|
<!-- Do we deferr running the surf-config folder patch? -->
|
||||||
<property name="deferred"><value>${system.patch.surfConfigFolder.deferred}</value></property>
|
<property name="deferred"><value>${system.patch.surfConfigFolder.deferred}</value></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="patch.renameSiteAuthorityDisplayName"
|
<bean id="patch.renameSiteAuthorityDisplayName"
|
||||||
class="org.alfresco.repo.admin.patch.impl.RenameSiteAuthorityDisplayName"
|
class="org.alfresco.repo.admin.patch.impl.RenameSiteAuthorityDisplayName"
|
||||||
parent="basePatch">
|
parent="basePatch">
|
||||||
|
@@ -0,0 +1,45 @@
|
|||||||
|
package org.alfresco.repo.admin.patch.impl;
|
||||||
|
|
||||||
|
import org.alfresco.repo.admin.patch.AbstractPatch;
|
||||||
|
import org.alfresco.repo.model.Repository;
|
||||||
|
import org.alfresco.service.cmr.tagging.TaggingService;
|
||||||
|
import org.springframework.extensions.surf.util.I18NUtil;
|
||||||
|
|
||||||
|
public class AddTagScopeAspect extends AbstractPatch
|
||||||
|
{
|
||||||
|
/** The title we give to the batch process in progress messages / JMX. */
|
||||||
|
private static final String SUCCESS_MSG = "patch.addTagScopeAspect.result";
|
||||||
|
|
||||||
|
/** Services */
|
||||||
|
private TaggingService taggingService;
|
||||||
|
|
||||||
|
/** Repository object */
|
||||||
|
private Repository repository;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the tagging service.
|
||||||
|
*
|
||||||
|
* @param taggingService
|
||||||
|
* the tagging service
|
||||||
|
*/
|
||||||
|
public void setTaggingService(TaggingService taggingService)
|
||||||
|
{
|
||||||
|
this.taggingService = taggingService;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param repository repository object
|
||||||
|
*/
|
||||||
|
public void setRepository(Repository repository)
|
||||||
|
{
|
||||||
|
this.repository = repository;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String applyInternal() throws Exception
|
||||||
|
{
|
||||||
|
taggingService.addTagScope(repository.getCompanyHome());
|
||||||
|
return I18NUtil.getMessage(SUCCESS_MSG);
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user