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
This commit is contained in:
Britt Park
2006-09-21 22:54:58 +00:00
parent 4fdd41694e
commit 966746b294
2 changed files with 12 additions and 0 deletions

View File

@@ -70,5 +70,6 @@ public final class AVMConstants
public final static String PROP_SANDBOX_AUTHOR_PREVIEW = ".sandbox.author.preview"; public final static String PROP_SANDBOX_AUTHOR_PREVIEW = ".sandbox.author.preview";
public final static String PROP_DNS = ".dns."; public final static String PROP_DNS = ".dns.";
public final static String PROP_WEBSITE_NAME = ".website.name"; 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"; public final static String SPACE_ICON_WEBSITE = "space-icon-website";
} }

View File

@@ -353,6 +353,12 @@ public class CreateWebsiteWizard extends BaseWizardBean
QName.createQName(null, AVMConstants.PROP_WEBSITE_NAME), QName.createQName(null, AVMConstants.PROP_WEBSITE_NAME),
new PropertyValue(DataTypeDefinition.TEXT, 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 // tag the store with the DNS name property
tagStoreDNSPath(userStore); tagStoreDNSPath(userStore);
@@ -373,6 +379,11 @@ public class CreateWebsiteWizard extends BaseWizardBean
QName.createQName(null, AVMConstants.PROP_SANDBOX_AUTHOR_PREVIEW), QName.createQName(null, AVMConstants.PROP_SANDBOX_AUTHOR_PREVIEW),
new PropertyValue(DataTypeDefinition.TEXT, null)); 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 // tag the store with the DNS name property
tagStoreDNSPath(previewStore); tagStoreDNSPath(previewStore);