From 966746b2946ee6a788832e5b7d0cf67d1b6054cd Mon Sep 17 00:00:00 2001 From: Britt Park Date: Thu, 21 Sep 2006 22:54:58 +0000 Subject: [PATCH] Added .sandbox.store.foo-bar-baz tag during user sandbox store creation. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3878 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../java/org/alfresco/web/bean/wcm/AVMConstants.java | 1 + .../alfresco/web/bean/wcm/CreateWebsiteWizard.java | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/source/java/org/alfresco/web/bean/wcm/AVMConstants.java b/source/java/org/alfresco/web/bean/wcm/AVMConstants.java index c1de34427f..9f06f564ca 100644 --- a/source/java/org/alfresco/web/bean/wcm/AVMConstants.java +++ b/source/java/org/alfresco/web/bean/wcm/AVMConstants.java @@ -70,5 +70,6 @@ public final class AVMConstants public final static String PROP_SANDBOX_AUTHOR_PREVIEW = ".sandbox.author.preview"; public final static String PROP_DNS = ".dns."; public final static String PROP_WEBSITE_NAME = ".website.name"; + public final static String PROP_SANDBOX_STORE_PREFIX = ".sandbox.store."; public final static String SPACE_ICON_WEBSITE = "space-icon-website"; } diff --git a/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java b/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java index 46b844ae90..d3f34e5b77 100644 --- a/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java +++ b/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java @@ -353,6 +353,12 @@ public class CreateWebsiteWizard extends BaseWizardBean QName.createQName(null, AVMConstants.PROP_WEBSITE_NAME), new PropertyValue(DataTypeDefinition.TEXT, name)); + // tag the store, oddly enough, with its own store name for querying. + // when will the madness end. + this.avmService.setStoreProperty(userStore, + QName.createQName(null, AVMConstants.PROP_SANDBOX_STORE_PREFIX + userStore), + new PropertyValue(DataTypeDefinition.TEXT, null)); + // tag the store with the DNS name property tagStoreDNSPath(userStore); @@ -373,6 +379,11 @@ public class CreateWebsiteWizard extends BaseWizardBean QName.createQName(null, AVMConstants.PROP_SANDBOX_AUTHOR_PREVIEW), new PropertyValue(DataTypeDefinition.TEXT, null)); + // tag the store with its own store name for querying. + this.avmService.setStoreProperty(previewStore, + QName.createQName(null, AVMConstants.PROP_SANDBOX_STORE_PREFIX + previewStore), + new PropertyValue(DataTypeDefinition.TEXT, null)); + // tag the store with the DNS name property tagStoreDNSPath(previewStore);