List of usage examples for com.liferay.portal.kernel.portlet BasePortletLayoutFinder BasePortletLayoutFinder
BasePortletLayoutFinder
From source file:com.liferay.blogs.portlet.test.PortletLayoutFinderTest.java
License:Open Source License
@Before public void setUp() throws Exception { _portletIds = new String[] { PortletProviderUtil.getPortletId(BlogsEntry.class.getName(), PortletProvider.Action.MANAGE), PortletProviderUtil.getPortletId(BlogsEntry.class.getName(), PortletProvider.Action.VIEW) }; _portletLayoutFinder = new BasePortletLayoutFinder() { @Override/*from w w w. j av a2s . com*/ protected String[] getPortletIds() { return _portletIds; } }; User user = TestPropsValues.getUser(); PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user); _originalPermissionChecker = PermissionThreadLocal.getPermissionChecker(); PermissionThreadLocal.setPermissionChecker(permissionChecker); }