Search in sources :

Example 6 with AssetEntry

use of com.liferay.portlet.asset.model.AssetEntry in project liferay-ide by liferay.

the class SongLocalServiceImpl method updateAsset.

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);
}
Also used : AssetEntry(com.liferay.portlet.asset.model.AssetEntry) Song(org.liferay.jukebox.model.Song)

Aggregations

AssetEntry (com.liferay.portlet.asset.model.AssetEntry)6 KBArticle (com.liferay.knowledgebase.model.KBArticle)2 JSONObject (com.liferay.portal.kernel.json.JSONObject)1 Indexer (com.liferay.portal.kernel.search.Indexer)1 User (com.liferay.portal.model.User)1 AssetLink (com.liferay.portlet.asset.model.AssetLink)1 AssetEntryQuery (com.liferay.portlet.asset.service.persistence.AssetEntryQuery)1 Date (java.util.Date)1 Album (org.liferay.jukebox.model.Album)1 Artist (org.liferay.jukebox.model.Artist)1 Song (org.liferay.jukebox.model.Song)1