【发布时间】:2014-08-17 07:34:00
【问题描述】:
我的自定义资产在 Asset Publisher 中不可见。我根据this 指南创建了portlet 和服务层。所以我有Location 模型。创建或更新location后我更新条目:
public void addLocation(ActionRequest request, ActionResponse response)
throws Exception {
Location location = _updateLocation(request);
User user = PortalUtil.getUser(request);
AssetEntryLocalServiceUtil.updateEntry(user.getUserId(),
PortalUtil.getScopeGroupId(request), Location.class.getName(),
location.getLocationId(), new long[0], new String[] { "mycat1",
"mucat2" });
sendRedirect(request, response);
}
AssetEntry 存储在数据库中:
SELECT entryid, groupid, companyid, userid, username, createdate, modifieddate,
classnameid, classpk, classuuid, classtypeid, visible, startdate,
enddate, publishdate, expirationdate, mimetype, title, description,
summary, url, layoutuuid, height, width, priority, viewcount
FROM assetentry order by createdate desc limit 1;
结果:
结果的左侧 结果的右侧
如果资产存在于数据库中,为什么 Asset Publisher 不显示我的资产? 也许我应该指定一些布局,因为 Asset Publisher 不知道如何显示我的资产。
【问题讨论】: