Added logger to AVMRepository, by the way. Web-site summary now shows

the correct number of users.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3882 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-09-22 05:08:33 +00:00
parent 798ed97aef
commit 1fe792cb65

View File

@@ -213,8 +213,8 @@ public class AVMBrowseBean implements IContextListener
AVMStoreDescriptor store = this.avmService.getAVMStore(stagingStore); AVMStoreDescriptor store = this.avmService.getAVMStore(stagingStore);
if (store != null) if (store != null)
{ {
// TODO: count user stores with correct query // count user stores
int users = avmService.queryStoresPropertyKeys(QName.createQName(null, storeRoot + "-%" + AVMConstants.STORE_MAIN)).size(); int users = avmService.queryStoresPropertyKeys(QName.createQName(null, AVMConstants.PROP_SANDBOX_STORE_PREFIX + storeRoot + "-%" + AVMConstants.STORE_MAIN)).size();
summary.append(msg.getString(MSG_CREATED_ON)).append(": ") summary.append(msg.getString(MSG_CREATED_ON)).append(": ")
.append(Utils.getDateFormat(fc).format(new Date(store.getCreateDate()))) .append(Utils.getDateFormat(fc).format(new Date(store.getCreateDate())))
.append("<p>"); .append("<p>");