com.liferay.portal.kernel.test.util
Class UserTestUtil
java.lang.Object
com.liferay.portal.kernel.test.util.UserTestUtil
public class UserTestUtil
- extends Object
|
Method Summary |
static User |
addCompanyAdminUser(Company company)
|
static User |
addGroupAdminUser(Group group)
|
static User |
addGroupOwnerUser(Group group)
|
static User |
addGroupUser(Group group,
String roleName)
|
static User |
addOmniAdminUser()
|
static User |
addOrganizationAdminUser(Organization organization)
|
static User |
addOrganizationOwnerUser(Organization organization)
|
static User |
addOrganizationUser(Organization organization,
String roleName)
|
static User |
addUser()
|
static User |
addUser(boolean secure)
|
static User |
addUser(Company company)
|
static User |
addUser(long... groupIds)
|
static User |
addUser(long groupId,
Locale locale)
|
static User |
addUser(long companyId,
long userId,
String screenName,
Locale locale,
String firstName,
String lastName,
long[] groupIds,
ServiceContext serviceContext)
|
static User |
addUser(String screenName,
Locale locale,
String firstName,
String lastName,
long[] groupIds)
|
static User |
addUser(String screenName,
long... groupIds)
|
static void |
addUserGroupRole(long userId,
long groupId,
String roleName)
|
static User |
getAdminUser(long companyId)
|
static User |
updateUser(User user)
|
static User |
updateUser(User user,
ServiceContext serviceContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserTestUtil
public UserTestUtil()
addCompanyAdminUser
public static User addCompanyAdminUser(Company company)
throws Exception
- Throws:
Exception
addGroupAdminUser
public static User addGroupAdminUser(Group group)
throws Exception
- Throws:
Exception
addGroupOwnerUser
public static User addGroupOwnerUser(Group group)
throws Exception
- Throws:
Exception
addGroupUser
public static User addGroupUser(Group group,
String roleName)
throws Exception
- Throws:
Exception
addOmniAdminUser
public static User addOmniAdminUser()
throws Exception
- Throws:
Exception
addOrganizationAdminUser
public static User addOrganizationAdminUser(Organization organization)
throws Exception
- Throws:
Exception
addOrganizationOwnerUser
public static User addOrganizationOwnerUser(Organization organization)
throws Exception
- Throws:
Exception
addOrganizationUser
public static User addOrganizationUser(Organization organization,
String roleName)
throws Exception
- Throws:
Exception
addUser
public static User addUser()
throws Exception
- Throws:
Exception
addUser
public static User addUser(boolean secure)
throws Exception
- Throws:
Exception
addUser
public static User addUser(Company company)
throws Exception
- Throws:
Exception
addUser
public static User addUser(long... groupIds)
throws Exception
- Throws:
Exception
addUser
public static User addUser(long groupId,
Locale locale)
throws Exception
- Throws:
Exception
addUser
public static User addUser(long companyId,
long userId,
String screenName,
Locale locale,
String firstName,
String lastName,
long[] groupIds,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addUser
public static User addUser(String screenName,
Locale locale,
String firstName,
String lastName,
long[] groupIds)
throws Exception
- Throws:
Exception
addUser
public static User addUser(String screenName,
long... groupIds)
throws Exception
- Throws:
Exception
addUserGroupRole
public static void addUserGroupRole(long userId,
long groupId,
String roleName)
throws Exception
- Throws:
Exception
getAdminUser
public static User getAdminUser(long companyId)
throws PortalException
- Throws:
PortalException
updateUser
public static User updateUser(User user)
throws Exception
- Throws:
Exception
updateUser
public static User updateUser(User user,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception