当前位置: 首页>>代码示例>>Java>>正文


Java AssetTagLocalServiceUtil.getGroupTags方法代码示例

本文整理汇总了Java中com.liferay.portlet.asset.service.AssetTagLocalServiceUtil.getGroupTags方法的典型用法代码示例。如果您正苦于以下问题:Java AssetTagLocalServiceUtil.getGroupTags方法的具体用法?Java AssetTagLocalServiceUtil.getGroupTags怎么用?Java AssetTagLocalServiceUtil.getGroupTags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.liferay.portlet.asset.service.AssetTagLocalServiceUtil的用法示例。


在下文中一共展示了AssetTagLocalServiceUtil.getGroupTags方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setupAssets

import com.liferay.portlet.asset.service.AssetTagLocalServiceUtil; //导入方法依赖的package包/类
protected void setupAssets(String fileName) throws Exception {
	List<AssetTag> assetTags = AssetTagLocalServiceUtil.getGroupTags(
		groupId);

	for (AssetTag assetTag : assetTags) {
		AssetTagLocalServiceUtil.deleteAssetTag(assetTag);
	}

	RepositoryLocalServiceUtil.deleteRepositories(groupId);

	JournalArticleLocalServiceUtil.deleteArticles(groupId);

	DDMTemplateLocalServiceUtil.deleteTemplates(groupId);

	DDMStructureLocalServiceUtil.deleteStructures(groupId);

	JSONObject jsonObject = getJSONObject(fileName);

	if (jsonObject != null) {
		JSONArray assetsJSONArray = jsonObject.getJSONArray("assets");

		setupAssets(assetsJSONArray);
	}

	addDLFileEntries(_DL_DOCUMENTS_DIR_NAME);

	addJournalArticles(
		StringPool.BLANK, StringPool.BLANK, _JOURNAL_ARTICLES_DIR_NAME);

	addDDMStructures(StringPool.BLANK, _JOURNAL_DDM_STRUCTURES_DIR_NAME);

	addDDMTemplates(StringPool.BLANK, _JOURNAL_DDM_TEMPLATES_DIR_NAME);
}
 
开发者ID:rivetlogic,项目名称:liferay-evernote,代码行数:34,代码来源:FileSystemImporter.java

示例2: setupAssets

import com.liferay.portlet.asset.service.AssetTagLocalServiceUtil; //导入方法依赖的package包/类
protected void setupAssets(String fileName) throws Exception {
	if (!isCompanyGroup()) {
		List<AssetTag> assetTags = AssetTagLocalServiceUtil.getGroupTags(
			groupId);

		for (AssetTag assetTag : assetTags) {
			AssetTagLocalServiceUtil.deleteAssetTag(assetTag);
		}

		RepositoryLocalServiceUtil.deleteRepositories(groupId);

		JournalArticleLocalServiceUtil.deleteArticles(groupId);

		DDMTemplateLocalServiceUtil.deleteTemplates(groupId);

		DDMStructureLocalServiceUtil.deleteStructures(groupId);
	}

	JSONObject jsonObject = getJSONObject(fileName);

	if (jsonObject != null) {
		JSONArray assetsJSONArray = jsonObject.getJSONArray("assets");

		setupAssets(assetsJSONArray);
	}

	addDLFileEntries(_DL_DOCUMENTS_DIR_NAME);

	addApplicationDisplayTemplates(_APPLICATION_DISPLAY_TEMPLATE_DIR_NAME);

	addDDLStructures(_DDL_STRUCTURE_DIR_NAME);

	addDDMStructures(StringPool.BLANK, _JOURNAL_DDM_STRUCTURES_DIR_NAME);

	addDDMTemplates(StringPool.BLANK, _JOURNAL_DDM_TEMPLATES_DIR_NAME);

	addJournalArticles(
		StringPool.BLANK, StringPool.BLANK, _JOURNAL_ARTICLES_DIR_NAME);

	addLayoutTemplate(_LAYOUT_TEMPLATE_DIR_NAME);
}
 
开发者ID:rivetlogic,项目名称:liferay-voice-command,代码行数:42,代码来源:FileSystemImporter.java


注:本文中的com.liferay.portlet.asset.service.AssetTagLocalServiceUtil.getGroupTags方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。