Skip to content

Commit

Permalink
LPS-56048 Remove references from sample data
Browse files Browse the repository at this point in the history
  • Loading branch information
adolfopa authored and brianchandotcom committed Aug 5, 2015
1 parent 1dea477 commit 805ca5f
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.liferay.portal.model.Company;
import com.liferay.portal.model.Layout;
import com.liferay.portal.model.LayoutConstants;
import com.liferay.portal.model.LayoutTypePortlet;
import com.liferay.portal.model.ListTypeConstants;
import com.liferay.portal.model.Organization;
import com.liferay.portal.model.OrganizationConstants;
Expand All @@ -36,7 +35,6 @@
import com.liferay.portal.service.OrganizationLocalServiceUtil;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.UserLocalServiceUtil;
import com.liferay.portal.util.PortletKeys;

import java.util.Calendar;

Expand Down Expand Up @@ -82,12 +80,6 @@ public static void addSampleData(long companyId) throws Exception {
null, null, LayoutConstants.TYPE_PORTLET, false, "/extranet",
new ServiceContext());

LayoutTypePortlet layoutTypePortlet =
(LayoutTypePortlet)extranetLayout.getLayoutType();

layoutTypePortlet.addPortletId(
0, PortletKeys.MESSAGE_BOARDS, "column-2", -1, false);

LayoutLocalServiceUtil.updateLayout(
extranetLayout.getGroupId(), false, extranetLayout.getLayoutId(),
extranetLayout.getTypeSettings());
Expand All @@ -98,11 +90,6 @@ public static void addSampleData(long companyId) throws Exception {
null, null, LayoutConstants.TYPE_PORTLET, false, "/intranet",
new ServiceContext());

layoutTypePortlet = (LayoutTypePortlet)intranetLayout.getLayoutType();

layoutTypePortlet.addPortletId(
0, PortletKeys.MESSAGE_BOARDS, "column-2", -1, false);

LayoutLocalServiceUtil.updateLayout(
intranetLayout.getGroupId(), true, intranetLayout.getLayoutId(),
intranetLayout.getTypeSettings());
Expand Down

0 comments on commit 805ca5f

Please sign in to comment.