@Override public Long get(LayoutBranch layoutBranch) { return layoutBranch.getLayoutBranchId(); }
/** * Returns <code>true</code> if this layout branch is master. * * @return <code>true</code> if this layout branch is master; <code>false</code> otherwise */ @Override public boolean isMaster() { return _layoutBranch.isMaster(); }
@Override public int compareTo(LayoutBranch layoutBranch) { return _layoutBranch.compareTo(layoutBranch); }
public static LayoutBranchSoap toSoapModel(LayoutBranch model) { LayoutBranchSoap soapModel = new LayoutBranchSoap(); soapModel.setMvccVersion(model.getMvccVersion()); soapModel.setLayoutBranchId(model.getLayoutBranchId()); soapModel.setGroupId(model.getGroupId()); soapModel.setCompanyId(model.getCompanyId()); soapModel.setUserId(model.getUserId()); soapModel.setUserName(model.getUserName()); soapModel.setLayoutSetBranchId(model.getLayoutSetBranchId()); soapModel.setPlid(model.getPlid()); soapModel.setName(model.getName()); soapModel.setDescription(model.getDescription()); soapModel.setMaster(model.isMaster()); return soapModel; }
/** * Returns the group ID of this layout branch. * * @return the group ID of this layout branch */ @Override public long getGroupId() { return _layoutBranch.getGroupId(); }
/** * Returns the layout set branch ID of this layout branch. * * @return the layout set branch ID of this layout branch */ @Override public long getLayoutSetBranchId() { return _layoutBranch.getLayoutSetBranchId(); }
/** * Returns the master of this layout branch. * * @return the master of this layout branch */ @Override public boolean getMaster() { return _layoutBranch.getMaster(); }
/** * Returns the company ID of this layout branch. * * @return the company ID of this layout branch */ @Override public long getCompanyId() { return _layoutBranch.getCompanyId(); }
/** * Returns the description of this layout branch. * * @return the description of this layout branch */ @Override public String getDescription() { return _layoutBranch.getDescription(); }
@Override public ExpandoBridge getExpandoBridge() { return _layoutBranch.getExpandoBridge(); }
@Override public Object clone() { return new LayoutBranchWrapper((LayoutBranch)_layoutBranch.clone()); }
/** * Returns the layout branch ID of this layout branch. * * @return the layout branch ID of this layout branch */ @Override public long getLayoutBranchId() { return _layoutBranch.getLayoutBranchId(); }
protected void setRecentLayoutBranchId( long userId, long layoutSetBranchId, long plid, long layoutBranchId) throws PortalException { LayoutBranch layoutBranch = _layoutBranchLocalService.fetchLayoutBranch( layoutBranchId); if (layoutBranch == null) { return; } RecentLayoutBranch recentLayoutBranch = _recentLayoutBranchLocalService.fetchRecentLayoutBranch( userId, layoutSetBranchId, plid); if (layoutBranch.isMaster()) { if (recentLayoutBranch != null) { _recentLayoutBranchLocalService.deleteRecentLayoutBranch( recentLayoutBranch); } } else { if (recentLayoutBranch == null) { recentLayoutBranch = _recentLayoutBranchLocalService.addRecentLayoutBranch( userId, layoutBranchId, layoutSetBranchId, plid); } recentLayoutBranch.setLayoutBranchId(layoutBranchId); _recentLayoutBranchLocalService.updateRecentLayoutBranch( recentLayoutBranch); } ProxiedLayoutsThreadLocal.clearProxiedLayouts(); }
protected long getRecentLayoutBranchId( long userId, long layoutSetBranchId, long plid) throws PortalException { RecentLayoutBranch recentLayoutBranch = _recentLayoutBranchLocalService.fetchRecentLayoutBranch( userId, layoutSetBranchId, plid); if (recentLayoutBranch != null) { return recentLayoutBranch.getLayoutBranchId(); } try { LayoutBranch masterLayoutBranch = _layoutBranchLocalService.getMasterLayoutBranch( layoutSetBranchId, plid); return masterLayoutBranch.getLayoutBranchId(); } catch (NoSuchLayoutBranchException nslbe) { // LPS-52675 if (_log.isDebugEnabled()) { _log.debug(nslbe, nslbe); } } return 0; }
layoutBranch.getLayoutBranchId(), LayoutRevisionConstants.DEFAULT_PARENT_LAYOUT_REVISION_ID, false, layout.getPlid(), LayoutConstants.DEFAULT_PLID,
layoutSetBranchId, plid); layoutBranchId = layoutBranch.getLayoutBranchId();