public abstract class TestWithUserUtils
extends java.lang.Object
| Constructor and Description |
|---|
TestWithUserUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
authenticateUser(java.lang.String userName,
java.lang.String password,
MutableAuthenticationService authenticationService,
AuthenticationComponent authenticationComponent)
Authenticate as the given user.
|
static void |
authenticateUser(java.lang.String userName,
java.lang.String password,
org.alfresco.service.cmr.repository.NodeRef rootNodeRef,
AuthenticationService authenticationService)
Authenticate the user with the specified password
|
static void |
createUser(java.lang.String userName,
java.lang.String password,
org.alfresco.service.cmr.repository.NodeRef rootNodeRef,
org.alfresco.service.cmr.repository.NodeService nodeService,
MutableAuthenticationService authenticationService)
Create a new user, including the corresponding person node.
|
static void |
createUser(java.lang.String userName,
java.lang.String password,
java.lang.String email,
org.alfresco.service.cmr.repository.NodeRef rootNodeRef,
org.alfresco.service.cmr.repository.NodeService nodeService,
MutableAuthenticationService authenticationService) |
static void |
deleteUser(java.lang.String user_name,
java.lang.String pwd,
org.alfresco.service.cmr.repository.NodeRef ref,
org.alfresco.service.cmr.repository.NodeService service,
MutableAuthenticationService service2) |
static java.lang.String |
getCurrentUser(AuthenticationService authenticationService)
Get the current user node reference
|
public static void createUser(java.lang.String userName,
java.lang.String password,
org.alfresco.service.cmr.repository.NodeRef rootNodeRef,
org.alfresco.service.cmr.repository.NodeService nodeService,
MutableAuthenticationService authenticationService)
userName - the user namepassword - the passwordrootNodeRef - the root node referencenodeService - the node serviceauthenticationService - the authentication servicepublic static void createUser(java.lang.String userName,
java.lang.String password,
java.lang.String email,
org.alfresco.service.cmr.repository.NodeRef rootNodeRef,
org.alfresco.service.cmr.repository.NodeService nodeService,
MutableAuthenticationService authenticationService)
public static void authenticateUser(java.lang.String userName,
java.lang.String password,
org.alfresco.service.cmr.repository.NodeRef rootNodeRef,
AuthenticationService authenticationService)
userName - the user namepassword - the passwordrootNodeRef - the root node referenceauthenticationService - the authentication servicepublic static void authenticateUser(java.lang.String userName,
java.lang.String password,
MutableAuthenticationService authenticationService,
AuthenticationComponent authenticationComponent)
public static java.lang.String getCurrentUser(AuthenticationService authenticationService)
authenticationService - the authentication servicepublic static void deleteUser(java.lang.String user_name,
java.lang.String pwd,
org.alfresco.service.cmr.repository.NodeRef ref,
org.alfresco.service.cmr.repository.NodeService service,
MutableAuthenticationService service2)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.