From 3214b12e753a13b7859175990bff9d62c7614a3e Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Thu, 17 Aug 2006 10:55:46 +0000 Subject: [PATCH] . Fix to RSS Folder Patch to also apply the Guest user privileges to the new folder . Fix to bootstrap of content templates to NOT apply the uifacets aspect - as this means the properties they cannot be edited in the UI! - problem is that the dynamic properties framework is only expecting to see the uifacets aspect on a Space not Content, and so tried to show icons for it which blows up - will provide a patch shortly to correct the content templates on an installed system git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3536 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/patch/patch-services-context.xml | 3 +++ .../templates/content_template_examples.xml | 22 +++++++++--------- config/alfresco/templates/rss_templates.acp | Bin 1782 -> 1749 bytes .../patch/impl/RSSTemplatesFolderPatch.java | 14 +++++++++++ 4 files changed, 28 insertions(+), 11 deletions(-) diff --git a/config/alfresco/patch/patch-services-context.xml b/config/alfresco/patch/patch-services-context.xml index 0b535459fa..20cd126753 100644 --- a/config/alfresco/patch/patch-services-context.xml +++ b/config/alfresco/patch/patch-services-context.xml @@ -405,6 +405,9 @@ + + + diff --git a/config/alfresco/templates/content_template_examples.xml b/config/alfresco/templates/content_template_examples.xml index 161081c032..f993d5a5fe 100644 --- a/config/alfresco/templates/content_template_examples.xml +++ b/config/alfresco/templates/content_template_examples.xml @@ -2,7 +2,7 @@ - + @@ -16,7 +16,7 @@ - + @@ -30,7 +30,7 @@ - + @@ -44,7 +44,7 @@ - + @@ -58,7 +58,7 @@ - + @@ -72,7 +72,7 @@ - + @@ -86,7 +86,7 @@ - + @@ -100,7 +100,7 @@ - + @@ -114,7 +114,7 @@ - + @@ -128,7 +128,7 @@ - + @@ -142,7 +142,7 @@ - + diff --git a/config/alfresco/templates/rss_templates.acp b/config/alfresco/templates/rss_templates.acp index 6a9fcd3e4e07258cfdbff5408d26b3bb95c2234d..6ca240207fdf9d1d50d4d1a42737440d8960bfca 100644 GIT binary patch del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|0?f0000EHDn9` diff --git a/source/java/org/alfresco/repo/admin/patch/impl/RSSTemplatesFolderPatch.java b/source/java/org/alfresco/repo/admin/patch/impl/RSSTemplatesFolderPatch.java index 2292bfd091..e952e74bb5 100644 --- a/source/java/org/alfresco/repo/admin/patch/impl/RSSTemplatesFolderPatch.java +++ b/source/java/org/alfresco/repo/admin/patch/impl/RSSTemplatesFolderPatch.java @@ -32,6 +32,7 @@ import org.alfresco.service.cmr.admin.PatchException; import org.alfresco.service.cmr.repository.ChildAssociationRef; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.StoreRef; +import org.alfresco.service.cmr.security.PermissionService; import org.alfresco.service.cmr.view.ImporterService; import org.alfresco.service.cmr.view.Location; import org.alfresco.service.namespace.QName; @@ -66,6 +67,7 @@ public class RSSTemplatesFolderPatch extends AbstractPatch private ImporterBootstrap importerBootstrap; private ImporterService importerService; private MessageSource messageSource; + private PermissionService permissionService; protected NodeRef dictionaryNodeRef; protected Properties configuration; @@ -73,6 +75,11 @@ public class RSSTemplatesFolderPatch extends AbstractPatch private String rssTemplatesACP; + public void setPermissionService(PermissionService permissionService) + { + this.permissionService = permissionService; + } + public void setImporterBootstrap(ImporterBootstrap importerBootstrap) { this.importerBootstrap = importerBootstrap; @@ -212,6 +219,13 @@ public class RSSTemplatesFolderPatch extends AbstractPatch // create it createFolder(); + // apply Guest permission to the folder + permissionService.setPermission( + rssFolderNodeRef, + PermissionService.GUEST_AUTHORITY, + PermissionService.CONSUMER, + true); + // import the content try {