Liferay 7.0-ce-b4

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  Group group
           
protected  PermissionChecker permissionChecker
           
protected  ServiceContext serviceContext
           
protected  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 Group group

permissionChecker

protected PermissionChecker permissionChecker

serviceContext

protected ServiceContext serviceContext

user

@DeleteAfterTestRun
protected 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-ce-b4