當前位置: 首頁>>代碼示例>>Java>>正文


Java AssetLinkConstants類代碼示例

本文整理匯總了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);
}
 
開發者ID:juliocamarero,項目名稱:jukebox-portlet,代碼行數:17,代碼來源:AlbumLocalServiceImpl.java

示例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);
}
 
開發者ID:juliocamarero,項目名稱:jukebox-portlet,代碼行數:17,代碼來源:SongLocalServiceImpl.java

示例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);
}
 
開發者ID:juliocamarero,項目名稱:jukebox-portlet,代碼行數:17,代碼來源:ArtistLocalServiceImpl.java

示例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);
}
 
開發者ID:juliocamarero,項目名稱:jukebox,代碼行數:17,代碼來源:AlbumLocalServiceImpl.java

示例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);
}
 
開發者ID:juliocamarero,項目名稱:jukebox,代碼行數:17,代碼來源:SongLocalServiceImpl.java

示例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);
}
 
開發者ID:juliocamarero,項目名稱:jukebox,代碼行數:17,代碼來源:ArtistLocalServiceImpl.java


注:本文中的com.liferay.portlet.asset.model.AssetLinkConstants類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。