本文整理汇总了Java中com.liferay.portlet.asset.model.AssetLinkConstants类的典型用法代码示例。如果您正苦于以下问题:Java AssetLinkConstants类的具体用法?Java AssetLinkConstants怎么用?Java AssetLinkConstants使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AssetLinkConstants类属于com.liferay.portlet.asset.model包,在下文中一共展示了AssetLinkConstants类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateAsset
import com.liferay.portlet.asset.model.AssetLinkConstants; //导入依赖的package包/类
public void updateAsset(
long userId, Album album, long[] assetCategoryIds,
String[] assetTagNames, long[] assetLinkEntryIds)
throws PortalException {
AssetEntry assetEntry = assetEntryLocalService.updateEntry(
userId, album.getGroupId(), album.getCreateDate(),
album.getModifiedDate(), Album.class.getName(), album.getAlbumId(),
album.getUuid(), 0, assetCategoryIds, assetTagNames, true, null,
null, null, ContentTypes.TEXT_HTML, album.getName(), null, null,
null, null, 0, 0, null, false);
assetLinkLocalService.updateLinks(
userId, assetEntry.getEntryId(), assetLinkEntryIds,
AssetLinkConstants.TYPE_RELATED);
}
示例2: updateAsset
import com.liferay.portlet.asset.model.AssetLinkConstants; //导入依赖的package包/类
public void updateAsset(
long userId, Song song, long[] assetCategoryIds,
String[] assetTagNames, long[] assetLinkEntryIds)
throws PortalException {
AssetEntry assetEntry = assetEntryLocalService.updateEntry(
userId, song.getGroupId(), song.getCreateDate(),
song.getModifiedDate(), Song.class.getName(), song.getSongId(),
song.getUuid(), 0, assetCategoryIds, assetTagNames, true, null,
null, null, ContentTypes.TEXT_HTML, song.getName(), null, null,
null, null, 0, 0, null, false);
assetLinkLocalService.updateLinks(
userId, assetEntry.getEntryId(), assetLinkEntryIds,
AssetLinkConstants.TYPE_RELATED);
}
示例3: updateAsset
import com.liferay.portlet.asset.model.AssetLinkConstants; //导入依赖的package包/类
public void updateAsset(
long userId, Artist artist, long[] assetCategoryIds,
String[] assetTagNames, long[] assetLinkEntryIds)
throws PortalException {
AssetEntry assetEntry = assetEntryLocalService.updateEntry(
userId, artist.getGroupId(), artist.getCreateDate(),
artist.getModifiedDate(), Artist.class.getName(),
artist.getArtistId(), artist.getUuid(), 0, assetCategoryIds,
assetTagNames, true, null, null, null, ContentTypes.TEXT_HTML,
artist.getName(), null, null, null, null, 0, 0, null, false);
assetLinkLocalService.updateLinks(
userId, assetEntry.getEntryId(), assetLinkEntryIds,
AssetLinkConstants.TYPE_RELATED);
}
示例4: updateAsset
import com.liferay.portlet.asset.model.AssetLinkConstants; //导入依赖的package包/类
public void updateAsset(
long userId, Album album, long[] assetCategoryIds,
String[] assetTagNames, long[] assetLinkEntryIds)
throws PortalException, SystemException {
AssetEntry assetEntry = assetEntryLocalService.updateEntry(
userId, album.getGroupId(), album.getCreateDate(),
album.getModifiedDate(), Album.class.getName(), album.getAlbumId(),
album.getUuid(), 0, assetCategoryIds, assetTagNames, true, null,
null, null, ContentTypes.TEXT_HTML, album.getName(), null, null,
null, null, 0, 0, null, false);
assetLinkLocalService.updateLinks(
userId, assetEntry.getEntryId(), assetLinkEntryIds,
AssetLinkConstants.TYPE_RELATED);
}
示例5: updateAsset
import com.liferay.portlet.asset.model.AssetLinkConstants; //导入依赖的package包/类
public void updateAsset(
long userId, Song song, long[] assetCategoryIds,
String[] assetTagNames, long[] assetLinkEntryIds)
throws PortalException, SystemException {
AssetEntry assetEntry = assetEntryLocalService.updateEntry(
userId, song.getGroupId(), song.getCreateDate(),
song.getModifiedDate(), Song.class.getName(), song.getSongId(),
song.getUuid(), 0, assetCategoryIds, assetTagNames, true, null,
null, null, ContentTypes.TEXT_HTML, song.getName(), null, null,
null, null, 0, 0, null, false);
assetLinkLocalService.updateLinks(
userId, assetEntry.getEntryId(), assetLinkEntryIds,
AssetLinkConstants.TYPE_RELATED);
}
示例6: updateAsset
import com.liferay.portlet.asset.model.AssetLinkConstants; //导入依赖的package包/类
public void updateAsset(
long userId, Artist artist, long[] assetCategoryIds,
String[] assetTagNames, long[] assetLinkEntryIds)
throws PortalException, SystemException {
AssetEntry assetEntry = assetEntryLocalService.updateEntry(
userId, artist.getGroupId(), artist.getCreateDate(),
artist.getModifiedDate(), Artist.class.getName(),
artist.getArtistId(), artist.getUuid(), 0, assetCategoryIds,
assetTagNames, true, null, null, null, ContentTypes.TEXT_HTML,
artist.getName(), null, null, null, null, 0, 0, null, false);
assetLinkLocalService.updateLinks(
userId, assetEntry.getEntryId(), assetLinkEntryIds,
AssetLinkConstants.TYPE_RELATED);
}