@Override public AssetEntry getAssetEntry(String className, long classPK) throws PortalException { LayoutRevision layoutRevision = _layoutRevisionLocalService.getLayoutRevision(classPK); LayoutSetBranch layoutSetBranch = _layoutSetBranchLocalService.getLayoutSetBranch(layoutRevision.getLayoutSetBranchId()); User user = _userLocalService.getUserById(layoutRevision.getUserId()); AssetEntry assetEntry = _assetEntryLocalService.createAssetEntry(classPK); assetEntry.setGroupId(layoutRevision.getGroupId()); assetEntry.setCompanyId(user.getCompanyId()); assetEntry.setUserId(user.getUserId()); assetEntry.setUserName(user.getFullName()); assetEntry.setCreateDate(layoutRevision.getCreateDate()); assetEntry.setClassNameId(PortalUtil.getClassNameId(LayoutRevision.class.getName())); assetEntry.setClassPK(layoutRevision.getLayoutRevisionId()); StringBundler sb = new StringBundler(4); sb.append(layoutRevision.getHTMLTitle(LocaleUtil.getSiteDefault())); sb.append(" ["); sb.append(layoutSetBranch.getName()); sb.append("]"); assetEntry.setTitle(sb.toString()); return assetEntry; }