mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added 'nodeArchiveService' bean
- Added tests around transaction visibility - TODO: Need to set the owner of archived and restored nodes git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2786 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -48,7 +48,13 @@ public abstract class TestWithUserUtils extends BaseSpringTest
|
||||
NodeRef rootNodeRef,
|
||||
NodeService nodeService,
|
||||
AuthenticationService authenticationService)
|
||||
{
|
||||
{
|
||||
// ignore if the user's authentication already exists
|
||||
if (authenticationService.authenticationExists(userName))
|
||||
{
|
||||
// ignore
|
||||
return;
|
||||
}
|
||||
QName children = ContentModel.ASSOC_CHILDREN;
|
||||
QName system = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "system");
|
||||
QName container = ContentModel.TYPE_CONTAINER;
|
||||
@@ -59,7 +65,7 @@ public abstract class TestWithUserUtils extends BaseSpringTest
|
||||
|
||||
HashMap<QName, Serializable> properties = new HashMap<QName, Serializable>();
|
||||
properties.put(ContentModel.PROP_USERNAME, userName);
|
||||
NodeRef goodUserPerson = nodeService.createNode(typesNodeRef, children, ContentModel.TYPE_PERSON, container, properties).getChildRef();
|
||||
nodeService.createNode(typesNodeRef, children, ContentModel.TYPE_PERSON, container, properties);
|
||||
|
||||
// Create the users
|
||||
|
||||
|
Reference in New Issue
Block a user