com.liferay.portal.security.membershippolicy.util.test
Class MembershipPolicyTestUtil
java.lang.Object
com.liferay.portal.security.membershippolicy.util.test.MembershipPolicyTestUtil
public class MembershipPolicyTestUtil
- extends Object
|
Method Summary |
protected static Map<String,Serializable> |
addExpandoMap(Class<?> clazz)
|
static Group |
addGroup()
|
static Organization |
addOrganization()
|
static Role |
addRole(int type)
|
static User |
addUser(long[] organizationIds,
long[] roleIds,
long[] siteIds,
long[] userGroupIds)
|
static UserGroup |
addUserGroup()
|
protected static ServiceContext |
populateServiceContext(Class<?> clazz,
boolean includeCategorization)
|
static void |
updateUser(User user,
long[] organizationIds,
long[] roleIds,
long[] siteIds,
long[] userGroupIds,
List<UserGroupRole> userGroupRoles)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MembershipPolicyTestUtil
public MembershipPolicyTestUtil()
addGroup
public static Group addGroup()
throws Exception
- Throws:
Exception
addOrganization
public static Organization addOrganization()
throws Exception
- Throws:
Exception
addRole
public static Role addRole(int type)
throws Exception
- Throws:
Exception
addUser
public static User addUser(long[] organizationIds,
long[] roleIds,
long[] siteIds,
long[] userGroupIds)
throws Exception
- Throws:
Exception
addUserGroup
public static UserGroup addUserGroup()
throws Exception
- Throws:
Exception
updateUser
public static void updateUser(User user,
long[] organizationIds,
long[] roleIds,
long[] siteIds,
long[] userGroupIds,
List<UserGroupRole> userGroupRoles)
throws Exception
- Throws:
Exception
addExpandoMap
protected static Map<String,Serializable> addExpandoMap(Class<?> clazz)
throws PortalException
- Throws:
PortalException
populateServiceContext
protected static ServiceContext populateServiceContext(Class<?> clazz,
boolean includeCategorization)
throws Exception
- Throws:
Exception