Liferay 7.0-ga1 portal-test-integration

com.liferay.portal.service.permission.test
Class BasePermissionTestCase

java.lang.Object
  extended by com.liferay.portal.service.permission.test.BasePermissionTestCase

public abstract class BasePermissionTestCase
extends Object


Field Summary
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 Summary
BasePermissionTestCase()
           
 
Method Summary
protected  void addPortletModelViewPermission()
           
protected abstract  void doSetUp()
           
protected  String getPrimKey()
           
protected abstract  String getResourceName()
           
protected  String getRoleName()
           
protected  void removePortletModelViewPermission()
           
 void setUp()
           
 void tearDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

group

@DeleteAfterTestRun
protected com.liferay.portal.kernel.model.Group group

permissionChecker

protected com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker

serviceContext

protected com.liferay.portal.kernel.service.ServiceContext serviceContext

user

@DeleteAfterTestRun
protected com.liferay.portal.kernel.model.User user
Constructor Detail

BasePermissionTestCase

public BasePermissionTestCase()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

addPortletModelViewPermission

protected void addPortletModelViewPermission()
                                      throws Exception
Throws:
Exception

doSetUp

protected abstract void doSetUp()
                         throws Exception
Throws:
Exception

getPrimKey

protected String getPrimKey()

getResourceName

protected abstract String getResourceName()

getRoleName

protected String getRoleName()

removePortletModelViewPermission

protected void removePortletModelViewPermission()
                                         throws Exception
Throws:
Exception

Liferay 7.0-ga1 portal-test-integration