. 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
This commit is contained in:
Kevin Roast
2006-08-17 10:55:46 +00:00
parent 3877dffcd4
commit 3214b12e75
4 changed files with 28 additions and 11 deletions

View File

@@ -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
{