@Override public List<PortletConfiguration> getByPortalPage(final Long portalPageId) { return portletConfigurationStore.getByPortalPage(portalPageId); }
@Override @Nonnull public List<Long> load(@Nonnull final Long portletPageId) { List<PortletConfiguration> configs = delegateStore.getByPortalPage(portletPageId); if (configs != null) { List<Long> ownedSearchRequestIds = new ArrayList<Long>(configs.size()); for (final PortletConfiguration config : configs) { ownedSearchRequestIds.add(config.getId()); } return ImmutableList.copyOf(ownedSearchRequestIds); } else { return ImmutableList.of(); } } }
public void consume(@NotNull final PortalPage pp) for (PortletConfiguration pc : portletConfigurationStore.getByPortalPage(pp.getId()))
final Map<Long, PortletConfiguration> oldPortlets = portletSeqToMap(portletConfigurationStore.getByPortalPage(portalPageId)); final Map<Long, PortletConfiguration> newPortlets = portletSeqToMap(getPortletsFromDashboardState(dashboardState));