/** * Returns the color scheme ID of this layout set branch. * * @return the color scheme ID of this layout set branch */ @Override public String getColorSchemeId() { return _layoutSetBranch.getColorSchemeId(); }
/** * Returns the css of this layout set branch. * * @return the css of this layout set branch */ @Override public String getCss() { return _layoutSetBranch.getCss(); }
/** * Returns the layout set branch ID of this layout set branch. * * @return the layout set branch ID of this layout set branch */ @Override public long getLayoutSetBranchId() { return _layoutSetBranch.getLayoutSetBranchId(); }
public static LayoutSetBranchSoap toSoapModel(LayoutSetBranch model) { LayoutSetBranchSoap soapModel = new LayoutSetBranchSoap(); soapModel.setMvccVersion(model.getMvccVersion()); soapModel.setLayoutSetBranchId(model.getLayoutSetBranchId()); soapModel.setGroupId(model.getGroupId()); soapModel.setCompanyId(model.getCompanyId()); soapModel.setUserId(model.getUserId()); soapModel.setUserName(model.getUserName()); soapModel.setCreateDate(model.getCreateDate()); soapModel.setModifiedDate(model.getModifiedDate()); soapModel.setPrivateLayout(model.isPrivateLayout()); soapModel.setName(model.getName()); soapModel.setDescription(model.getDescription()); soapModel.setMaster(model.isMaster()); soapModel.setLogoId(model.getLogoId()); soapModel.setThemeId(model.getThemeId()); soapModel.setColorSchemeId(model.getColorSchemeId()); soapModel.setCss(model.getCss()); soapModel.setSettings(model.getSettings()); soapModel.setLayoutSetPrototypeUuid(model.getLayoutSetPrototypeUuid()); soapModel.setLayoutSetPrototypeLinkEnabled(model.isLayoutSetPrototypeLinkEnabled()); return soapModel; }
@Override public LayoutSet mergeLayoutSetRevisionIntoLayoutSet(LayoutSet layoutSet) { LayoutSetStagingHandler layoutSetStagingHandler = getLayoutSetStagingHandler(layoutSet); if (layoutSetStagingHandler == null) { return (LayoutSet)layoutSet.clone(); } layoutSet = layoutSetStagingHandler.getLayoutSet(); layoutSet = (LayoutSet)layoutSet.clone(); LayoutSetBranch layoutSetBranch = layoutSetStagingHandler.getLayoutSetBranch(); layoutSet.setLogoId(layoutSetBranch.getLogoId()); layoutSet.setThemeId(layoutSetBranch.getThemeId()); layoutSet.setColorSchemeId(layoutSetBranch.getColorSchemeId()); layoutSet.setCss(layoutSetBranch.getCss()); layoutSet.setSettings(layoutSetBranch.getSettings()); layoutSet.setLayoutSetPrototypeUuid( layoutSetBranch.getLayoutSetPrototypeUuid()); layoutSet.setLayoutSetPrototypeLinkEnabled( layoutSetBranch.isLayoutSetPrototypeLinkEnabled()); return layoutSet; }
@Override public void exportTheme( PortletDataContext portletDataContext, LayoutSetBranch layoutSetBranch) throws Exception { boolean exportThemeSettings = MapUtil.getBoolean( portletDataContext.getParameterMap(), PortletDataHandlerKeys.THEME_REFERENCE); if (_log.isDebugEnabled()) { _log.debug("Export theme settings " + exportThemeSettings); } if (!exportThemeSettings) { return; } StagedTheme stagedTheme = ModelAdapterUtil.adapt( layoutSetBranch.getTheme(), Theme.class, StagedTheme.class); if (!portletDataContext.isPerformDirectBinaryImport()) { Element layoutSetBranchElement = portletDataContext.getExportDataElement(layoutSetBranch); portletDataContext.addReferenceElement( layoutSetBranch, layoutSetBranchElement, stagedTheme, PortletDataContext.REFERENCE_TYPE_DEPENDENCY, true); } _exportThemeSettings( portletDataContext, stagedTheme.getThemeId(), layoutSetBranch.getColorSchemeId(), layoutSetBranch.getCss()); }
/** * Returns <code>true</code> if this layout set branch is master. * * @return <code>true</code> if this layout set branch is master; <code>false</code> otherwise */ @Override public boolean isMaster() { return _layoutSetBranch.isMaster(); }
/** * Returns the theme ID of this layout set branch. * * @return the theme ID of this layout set branch */ @Override public String getThemeId() { return _layoutSetBranch.getThemeId(); }
/** * Returns the layout set prototype uuid of this layout set branch. * * @return the layout set prototype uuid of this layout set branch */ @Override public String getLayoutSetPrototypeUuid() { return _layoutSetBranch.getLayoutSetPrototypeUuid(); }
/** * Returns the settings of this layout set branch. * * @return the settings of this layout set branch */ @Override public String getSettings() { return _layoutSetBranch.getSettings(); }
/** * Returns <code>true</code> if this layout set branch is layout set prototype link enabled. * * @return <code>true</code> if this layout set branch is layout set prototype link enabled; <code>false</code> otherwise */ @Override public boolean isLayoutSetPrototypeLinkEnabled() { return _layoutSetBranch.isLayoutSetPrototypeLinkEnabled(); }
/** * Returns the logo ID of this layout set branch. * * @return the logo ID of this layout set branch */ @Override public long getLogoId() { return _layoutSetBranch.getLogoId(); }
@Override public Theme getTheme() { return _layoutSetBranch.getTheme(); }
protected void setRecentLayoutSetBranchId( long userId, long layoutSetId, long layoutSetBranchId) throws PortalException { LayoutSetBranch layoutSetBranch = _layoutSetBranchLocalService.fetchLayoutSetBranch( layoutSetBranchId); if (layoutSetBranch == null) { return; } RecentLayoutSetBranch recentLayoutSetBranch = _recentLayoutSetBranchLocalService.fetchRecentLayoutSetBranch( userId, layoutSetId); if (layoutSetBranch.isMaster()) { if (recentLayoutSetBranch != null) { _recentLayoutSetBranchLocalService.deleteRecentLayoutSetBranch( recentLayoutSetBranch); } } else { if (recentLayoutSetBranch == null) { recentLayoutSetBranch = _recentLayoutSetBranchLocalService.addRecentLayoutSetBranch( userId, layoutSetBranchId, layoutSetId); } recentLayoutSetBranch.setLayoutSetBranchId(layoutSetBranchId); _recentLayoutSetBranchLocalService.updateRecentLayoutSetBranch( recentLayoutSetBranch); } ProxiedLayoutsThreadLocal.clearProxiedLayouts(); }
@Override public Long get(LayoutSetBranch layoutSetBranch) { return layoutSetBranch.getLayoutSetBranchId(); }
layoutSetBranchId); layoutSetBranchId = layoutSetBranch.getLayoutSetBranchId();
LayoutStagingUtil.getLayoutSetBranch(layout.getLayoutSet()); long layoutSetBranchId = layoutSetBranch.getLayoutSetBranchId();