/** * Returns the layout set ID of this layout set. * * @return the layout set ID of this layout set */ @Override public long getLayoutSetId() { return _layoutSet.getLayoutSetId(); }
@Override public Long get(LayoutSet layoutSet) { return layoutSet.getLayoutSetId(); }
private LayoutSetBranch _getLayoutSetBranch(LayoutSet layoutSet) throws PortalException { ServiceContext serviceContext = ServiceContextThreadLocal.getServiceContext(); if (serviceContext == null) { return null; } long layoutSetBranchId = ParamUtil.getLong( serviceContext, "layoutSetBranchId"); if (layoutSetBranchId > 0) { return LayoutSetBranchLocalServiceUtil.getLayoutSetBranch( layoutSetBranchId); } if (serviceContext.isSignedIn()) { return LayoutSetBranchLocalServiceUtil.getUserLayoutSetBranch( serviceContext.getUserId(), layoutSet.getGroupId(), layoutSet.isPrivateLayout(), layoutSet.getLayoutSetId(), layoutSetBranchId); } return LayoutSetBranchLocalServiceUtil.getMasterLayoutSetBranch( layoutSet.getGroupId(), layoutSet.isPrivateLayout()); }
public static LayoutSetSoap toSoapModel(LayoutSet model) { LayoutSetSoap soapModel = new LayoutSetSoap(); soapModel.setMvccVersion(model.getMvccVersion()); soapModel.setLayoutSetId(model.getLayoutSetId()); soapModel.setGroupId(model.getGroupId()); soapModel.setCompanyId(model.getCompanyId()); soapModel.setCreateDate(model.getCreateDate()); soapModel.setModifiedDate(model.getModifiedDate()); soapModel.setPrivateLayout(model.isPrivateLayout()); soapModel.setLogoId(model.getLogoId()); soapModel.setThemeId(model.getThemeId()); soapModel.setColorSchemeId(model.getColorSchemeId()); soapModel.setCss(model.getCss()); soapModel.setPageCount(model.getPageCount()); soapModel.setSettings(model.getSettings()); soapModel.setLayoutSetPrototypeUuid(model.getLayoutSetPrototypeUuid()); soapModel.setLayoutSetPrototypeLinkEnabled(model.isLayoutSetPrototypeLinkEnabled()); return soapModel; }
LayoutSetBranchLocalServiceUtil.getUserLayoutSetBranch( serviceContext.getUserId(), layout.getGroupId(), layout.isPrivateLayout(), layoutSet.getLayoutSetId(), layoutSetBranchId);
layoutSetId = layoutSet.getLayoutSetId();