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 com.liferay.portal.kernel.model.Group |
addGroup()
|
static com.liferay.portal.kernel.model.Organization |
addOrganization()
|
static com.liferay.portal.kernel.model.Role |
addRole(int type)
|
static com.liferay.portal.kernel.model.User |
addUser(long[] organizationIds,
long[] roleIds,
long[] siteIds,
long[] userGroupIds)
|
static com.liferay.portal.kernel.model.UserGroup |
addUserGroup()
|
protected static com.liferay.portal.kernel.service.ServiceContext |
populateServiceContext(Class<?> clazz,
boolean includeCategorization)
|
static void |
updateUser(com.liferay.portal.kernel.model.User user,
long[] organizationIds,
long[] roleIds,
long[] siteIds,
long[] userGroupIds,
List<com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.model.Group addGroup()
throws Exception
- Throws:
Exception
addOrganization
public static com.liferay.portal.kernel.model.Organization addOrganization()
throws Exception
- Throws:
Exception
addRole
public static com.liferay.portal.kernel.model.Role addRole(int type)
throws Exception
- Throws:
Exception
addUser
public static com.liferay.portal.kernel.model.User addUser(long[] organizationIds,
long[] roleIds,
long[] siteIds,
long[] userGroupIds)
throws Exception
- Throws:
Exception
addUserGroup
public static com.liferay.portal.kernel.model.UserGroup addUserGroup()
throws Exception
- Throws:
Exception
updateUser
public static void updateUser(com.liferay.portal.kernel.model.User user,
long[] organizationIds,
long[] roleIds,
long[] siteIds,
long[] userGroupIds,
List<com.liferay.portal.kernel.model.UserGroupRole> userGroupRoles)
throws Exception
- Throws:
Exception
addExpandoMap
protected static Map<String,Serializable> addExpandoMap(Class<?> clazz)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
populateServiceContext
protected static com.liferay.portal.kernel.service.ServiceContext populateServiceContext(Class<?> clazz,
boolean includeCategorization)
throws Exception
- Throws:
Exception