Skip to content

Commit

Permalink
LPD-29738 Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Jul 8, 2024
1 parent 39fc675 commit 976a812
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@ protected void doInvokeDeploy(HotDeployEvent hotDeployEvent)

CompanyLocalServiceUtil.forEachCompanyId(
companyId -> {
Portlet companyPortletModel = (Portlet)portlet.clone();
Portlet companyPortlet = (Portlet)portlet.clone();

companyPortletModel.setCompanyId(companyId);
companyPortlet.setCompanyId(companyId);

PortletLocalServiceUtil.checkPortlet(companyPortletModel);
PortletLocalServiceUtil.checkPortlet(companyPortlet);
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2671,26 +2671,26 @@ protected Portlet updatePortlet(
private void _deployRemotePortlet(long companyId, Portlet portlet)
throws PortalException {

Portlet companyPortletModel = (Portlet)portlet.clone();
Portlet companyPortlet = (Portlet)portlet.clone();

companyPortletModel.setCompanyId(companyId);
companyPortlet.setCompanyId(companyId);

PortletCategory portletCategory = (PortletCategory)WebAppPool.get(
companyPortletModel.getCompanyId(), WebKeys.PORTLET_CATEGORY);
companyPortlet.getCompanyId(), WebKeys.PORTLET_CATEGORY);

if (portletCategory == null) {
_log.error(
"Unable to register remote portlet for company " +
companyPortletModel.getCompanyId() +
companyPortlet.getCompanyId() +
" because it does not exist");

return;
}

_updatePortletCategory(portletCategory, companyPortletModel);
_updatePortletCategory(portletCategory, companyPortlet);

if (StartupHelperUtil.isDBWarmed()) {
checkPortlet(companyPortletModel);
checkPortlet(companyPortlet);
}
else {
DependencyManagerSyncUtil.registerSyncCallable(
Expand All @@ -2699,7 +2699,7 @@ private void _deployRemotePortlet(long companyId, Portlet portlet)
CompanyThreadLocal.setWithSafeCloseable(
companyId)) {

portletLocalService.checkPortlet(companyPortletModel);
portletLocalService.checkPortlet(companyPortlet);
}

return null;
Expand Down

0 comments on commit 976a812

Please sign in to comment.