use of com.ableneo.liferay.portal.setup.domain.CustomFieldSetting in project liferay-db-setup-core by ableneo.
the class SetupUserGroups method setCustomFields.
private static void setCustomFields(final com.liferay.portal.kernel.model.UserGroup liferayUserGroup, final List<CustomFieldSetting> customFieldSettings, final UserGroup userGroup) {
if (liferayUserGroup == null) {
return;
}
Class clazz = com.liferay.portal.kernel.model.UserGroup.class;
for (CustomFieldSetting cfs : customFieldSettings) {
String resolverHint = "Custom value for userGroup " + userGroup.getName() + ", " + " Key " + cfs.getKey() + ", value " + cfs.getValue();
long company = SetupConfigurationThreadLocal.getRunInCompanyId();
CustomFieldSettingUtil.setExpandoValue(resolverHint, liferayUserGroup.getUserGroupId(), company, clazz, liferayUserGroup.getUserGroupId(), cfs.getKey(), cfs.getValue());
}
}
Aggregations