resourceLocalService.updateResources(serviceContext.getCompanyId(),
serviceContext.getScopeGroupId(), name, guestbookId,
serviceContext.getGroupPermissions(),
serviceContext.getGuestPermissions());
AssetEntry assetEntry = assetEntryLocalService.updateEntry(guestbook.getUserId(),
guestbook.getGroupId(), guestbook.getCreateDate(),
guestbook.getModifiedDate(), Guestbook.class.getName(),
guestbookId, guestbook.getUuid(), 0,
serviceContext.getAssetCategoryIds(),
serviceContext.getAssetTagNames(), true, null, null, null,
ContentTypes.TEXT_HTML, guestbook.getName(), null, null, null,
null, 0, 0, null, false);
assetLinkLocalService.updateLinks(serviceContext.getUserId(),
assetEntry.getEntryId(), serviceContext.getAssetLinkEntryIds(),
AssetLinkConstants.TYPE_RELATED);
Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(
Guestbook.class);