diff --git a/config/alfresco/bootstrap/spaces.xml b/config/alfresco/bootstrap/spaces.xml
index ed90644478..77c6bb8d08 100644
--- a/config/alfresco/bootstrap/spaces.xml
+++ b/config/alfresco/bootstrap/spaces.xml
@@ -17,6 +17,9 @@
space-icon-default
${spaces.company_home.name}
${spaces.company_home.description}
+
+
+
diff --git a/config/alfresco/messages/patch-service.properties b/config/alfresco/messages/patch-service.properties
index f412fafc56..b9acfe9751 100644
--- a/config/alfresco/messages/patch-service.properties
+++ b/config/alfresco/messages/patch-service.properties
@@ -456,4 +456,7 @@ patch.genericBootstrap.result.deferred=The patch has been deferred
patch.asynchrounse.checking=Checking for the asynchronous patch ...
patch.renameSiteAuthorityDisplayName.description=Update authority display name for sites
-patch.renameSiteAuthorityDisplayName.result=Updating of display names was completed
\ No newline at end of file
+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
\ No newline at end of file
diff --git a/config/alfresco/patch/patch-services-context.xml b/config/alfresco/patch/patch-services-context.xml
index 71782e7793..083ee2997f 100644
--- a/config/alfresco/patch/patch-services-context.xml
+++ b/config/alfresco/patch/patch-services-context.xml
@@ -3205,6 +3205,32 @@
+
+
+ patch.addTagScopeAspect
+
+
+ patch.addTagScopeAspect.description
+
+
+ 0
+
+
+ 6065
+
+
+ 6066
+
+
+
+
+
+
+
+
+
patch.siteAdministrators
patch.siteAdministrators.description
@@ -3295,6 +3321,7 @@
${system.patch.surfConfigFolder.deferred}
+
diff --git a/source/java/org/alfresco/repo/admin/patch/impl/AddTagScopeAspect.java b/source/java/org/alfresco/repo/admin/patch/impl/AddTagScopeAspect.java
new file mode 100644
index 0000000000..5ad83de9ff
--- /dev/null
+++ b/source/java/org/alfresco/repo/admin/patch/impl/AddTagScopeAspect.java
@@ -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);
+ }
+}
\ No newline at end of file