Class ConfigurationFactoryUtil
java.lang.Object
com.liferay.osgi.util.configuration.ConfigurationFactoryUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Throwable>
voidexecuteAsCompany(com.liferay.portal.kernel.service.CompanyLocalService companyLocalService, Map<String, Object> properties, com.liferay.petra.function.UnsafeConsumer<Long, E> unsafeConsumer) static longgetCompanyId(com.liferay.portal.kernel.service.CompanyLocalService companyLocalService, Map<String, Object> properties) static StringgetExternalReferenceCode(String factoryPid, List<String> servicePids) static StringgetExternalReferenceCode(Map<String, Object> properties) static String
-
Constructor Details
-
ConfigurationFactoryUtil
public ConfigurationFactoryUtil()
-
-
Method Details
-
executeAsCompany
public static <E extends Throwable> void executeAsCompany(com.liferay.portal.kernel.service.CompanyLocalService companyLocalService, Map<String, Object> properties, com.liferay.petra.function.UnsafeConsumer<Long, throws EE> unsafeConsumer) - Throws:
E extends Throwable
-
getCompanyId
public static long getCompanyId(com.liferay.portal.kernel.service.CompanyLocalService companyLocalService, Map<String, Object> properties) throws IllegalStateException- Throws:
IllegalStateException
-
getExternalReferenceCode
public static String getExternalReferenceCode(Map<String, Object> properties) throws IllegalStateException- Throws:
IllegalStateException
-
getExternalReferenceCode
public static String getExternalReferenceCode(String factoryPid, List<String> servicePids) throws IllegalStateException - Throws:
IllegalStateException
-
getFactoryPidFromPid
-