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
Exception
public void tearDown() throws Exception
Exception
protected void addPortletModelViewPermission() throws Exception
Exception
protected abstract void doSetUp() throws Exception
Exception
protected String getPrimKey()
protected abstract String getResourceName()
protected String getRoleName()
protected void removePortletModelViewPermission() throws Exception
Exception