Class CPDefinitionsImporter
java.lang.Object
com.liferay.commerce.initializer.util.CPDefinitionsImporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.liferay.portal.kernel.service.ServiceContext
getServiceContext
(long scopeGroupId, long userId) List<com.liferay.commerce.product.model.CPDefinition>
importCPDefinitions
(com.liferay.portal.kernel.json.JSONArray jsonArray, String assetVocabularyName, long catalogGroupId, long commerceChannelId, long[] commerceInventoryWarehouseIds, ClassLoader classLoader, String imageDependenciesPath, long scopeGroupId, long userId) void
importCPDefinitions
(File cpDefinitionsFile, String assetVocabularyName, long catalogGroupId, long commerceChannelId, long[] commerceInventoryWarehouseIds, ClassLoader classLoader, String imageDependenciesPath, long scopeGroupId, long userId)
-
Constructor Details
-
CPDefinitionsImporter
public CPDefinitionsImporter()
-
-
Method Details
-
importCPDefinitions
public void importCPDefinitions(File cpDefinitionsFile, String assetVocabularyName, long catalogGroupId, long commerceChannelId, long[] commerceInventoryWarehouseIds, ClassLoader classLoader, String imageDependenciesPath, long scopeGroupId, long userId) throws Exception - Throws:
Exception
-
importCPDefinitions
public List<com.liferay.commerce.product.model.CPDefinition> importCPDefinitions(com.liferay.portal.kernel.json.JSONArray jsonArray, String assetVocabularyName, long catalogGroupId, long commerceChannelId, long[] commerceInventoryWarehouseIds, ClassLoader classLoader, String imageDependenciesPath, long scopeGroupId, long userId) throws Exception - Throws:
Exception
-
getServiceContext
protected com.liferay.portal.kernel.service.ServiceContext getServiceContext(long scopeGroupId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-