Class AssetCategoriesImporter
java.lang.Object
com.liferay.commerce.initializer.util.AssetCategoriesImporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.liferay.asset.kernel.model.AssetCategory>importAssetCategories(com.liferay.portal.kernel.json.JSONArray jsonArray, String assetVocabularyName, ClassLoader classLoader, String imageDependenciesPath, long scopeGroupId, long userId) List<com.liferay.asset.kernel.model.AssetCategory>importAssetCategories(com.liferay.portal.kernel.json.JSONArray jsonArray, String assetVocabularyName, ClassLoader classLoader, String imageDependenciesPath, long scopeGroupId, long userId, boolean addGuestPermissions) protected voidupdateAssetVocabularyPermissions(com.liferay.asset.kernel.model.AssetVocabulary assetVocabulary) protected voidupdatePermissions(long companyId, String name, String primKey, com.liferay.portal.kernel.json.JSONArray jsonArray)
-
Constructor Details
-
AssetCategoriesImporter
public AssetCategoriesImporter()
-
-
Method Details
-
importAssetCategories
public List<com.liferay.asset.kernel.model.AssetCategory> importAssetCategories(com.liferay.portal.kernel.json.JSONArray jsonArray, String assetVocabularyName, ClassLoader classLoader, String imageDependenciesPath, long scopeGroupId, long userId) throws Exception - Throws:
Exception
-
importAssetCategories
public List<com.liferay.asset.kernel.model.AssetCategory> importAssetCategories(com.liferay.portal.kernel.json.JSONArray jsonArray, String assetVocabularyName, ClassLoader classLoader, String imageDependenciesPath, long scopeGroupId, long userId, boolean addGuestPermissions) throws Exception - Throws:
Exception
-
updateAssetVocabularyPermissions
protected void updateAssetVocabularyPermissions(com.liferay.asset.kernel.model.AssetVocabulary assetVocabulary) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updatePermissions
protected void updatePermissions(long companyId, String name, String primKey, com.liferay.portal.kernel.json.JSONArray jsonArray) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-