Class CompanyTestUtil
Object
com.liferay.portal.kernel.test.util.CompanyTestUtil
- Author:
- Manuel de la Peña
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.portal.kernel.model.Companystatic com.liferay.portal.kernel.model.CompanyaddCompany(boolean initialize) static com.liferay.portal.kernel.model.CompanyaddCompany(String name) static com.liferay.portal.kernel.model.CompanyaddCompanyWithWebId(boolean initialize, String webId) static com.liferay.portal.kernel.model.CompanyaddCompanyWithWebId(String webId) static voidresetCompanyLocales(long companyId, String languageIds, String defaultLanguageId) static voidresetCompanyLocales(long companyId, Collection<Locale> locales, Locale defaultLocale)
-
Constructor Details
-
CompanyTestUtil
public CompanyTestUtil()
-
-
Method Details
-
addCompany
- Throws:
Exception
-
addCompany
public static com.liferay.portal.kernel.model.Company addCompany(boolean initialize) throws Exception - Throws:
Exception
-
addCompany
- Throws:
Exception
-
addCompanyWithWebId
public static com.liferay.portal.kernel.model.Company addCompanyWithWebId(boolean initialize, String webId) throws Exception - Throws:
Exception
-
addCompanyWithWebId
public static com.liferay.portal.kernel.model.Company addCompanyWithWebId(String webId) throws Exception - Throws:
Exception
-
resetCompanyLocales
public static void resetCompanyLocales(long companyId, Collection<Locale> locales, Locale defaultLocale) throws Exception - Throws:
Exception
-
resetCompanyLocales
public static void resetCompanyLocales(long companyId, String languageIds, String defaultLanguageId) throws Exception - Throws:
Exception
-