mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fixed AVMStoreImpl to properly capture its creator.
Got rid of some unneeded imports in AVMSyncServiceImpl. Fixed build error in UIUserSandboxes. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3848 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -105,7 +105,12 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
fNextVersionID = 0;
|
||||
fRoot = null;
|
||||
AVMContext.fgInstance.fAVMStoreDAO.save(this);
|
||||
setProperty(ContentModel.PROP_CREATOR, new PropertyValue(null, "britt"));
|
||||
String creator = AVMContext.fgInstance.getAuthenticationComponent().getCurrentUserName();
|
||||
if (creator == null)
|
||||
{
|
||||
creator = AVMContext.fgInstance.getAuthenticationComponent().getSystemUserName();
|
||||
}
|
||||
setProperty(ContentModel.PROP_CREATOR, new PropertyValue(null, creator));
|
||||
setProperty(ContentModel.PROP_CREATED, new PropertyValue(null, new Date(System.currentTimeMillis())));
|
||||
// Make up the initial version record and save.
|
||||
long time = System.currentTimeMillis();
|
||||
@@ -116,7 +121,7 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
fRoot,
|
||||
fNextVersionID,
|
||||
time,
|
||||
"britt");
|
||||
creator);
|
||||
fNextVersionID++;
|
||||
AVMContext.fgInstance.fVersionRootDAO.save(versionRoot);
|
||||
}
|
||||
|
@@ -19,10 +19,8 @@ package org.alfresco.repo.avm;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.alfresco.service.cmr.avm.AVMBadArgumentException;
|
||||
import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
|
||||
@@ -113,7 +111,6 @@ public class AVMSyncServiceImpl implements AVMSyncService
|
||||
return result;
|
||||
}
|
||||
|
||||
// TODO We need getDirectlyListingDirect(descriptor, includeDeleted)
|
||||
/**
|
||||
* Internal recursive implementation of compare.
|
||||
* @param srcVersion The version of the source tree.
|
||||
|
Reference in New Issue
Block a user