Skip to content

Instantly share code, notes, and snippets.

@brandizzi
Last active December 29, 2015 13:18
Show Gist options
  • Save brandizzi/7675932 to your computer and use it in GitHub Desktop.
Save brandizzi/7675932 to your computer and use it in GitHub Desktop.
String[] assetTagNames = AssetTagLocalServiceUtil.getTagNames(
className, classPK);
document.addText(Field.ASSET_TAG_NAMES, assetTagNames);
List<AssetTag> assetTags = AssetTagLocalServiceUtil.getTags(
className, classPK);
long[] assetTagsIds = StringUtil.split(
ListUtil.toString(assetTags, AssetTag.TAG_ID_ACCESSOR), 0L);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment