public abstract class BasePermissionTestCase
extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.liferay.portal.kernel.model.Group |
group |
protected com.liferay.portal.kernel.security.permission.PermissionChecker |
permissionChecker |
protected com.liferay.portal.kernel.service.ServiceContext |
serviceContext |
protected com.liferay.portal.kernel.model.User |
user |
| Constructor and Description |
|---|
BasePermissionTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPortletModelViewPermission() |
protected abstract void |
doSetUp() |
protected String |
getPrimKey() |
protected abstract String |
getResourceName() |
protected String |
getRoleName() |
protected void |
removePortletModelViewPermission() |
void |
setUp() |
void |
tearDown() |
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.Group group
protected com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker
protected com.liferay.portal.kernel.service.ServiceContext serviceContext
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.User user
public void setUp()
throws Exception
Exceptionpublic void tearDown()
throws Exception
Exceptionprotected void addPortletModelViewPermission()
throws Exception
Exceptionprotected abstract void doSetUp()
throws Exception
Exceptionprotected String getPrimKey()
protected abstract String getResourceName()
protected String getRoleName()
protected void removePortletModelViewPermission()
throws Exception
Exception