本文整理匯總了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);
}