expandoBridge.setAttribute(attributeName, Boolean.TRUE, false);
CompanyLocalServiceUtil.updateCompany(company);
ActionableDynamicQuery actionableDynamicQuery =
new UserActionableDynamicQuery() {
@Override
protected void addCriteria(DynamicQuery dynamicQuery) {
Property property = PropertyFactoryUtil.forName("createDate");
dynamicQuery.add(property.eqProperty("modifiedDate"));
}
@Override
protected void performAction(Object object)
throws PortalException, SystemException {
User user = (User)object;
user.setModifiedDate(new Date());
user.setLanguageId(PortletPropsValues.COMPANY_DEFAULT_LOCALE);
user.setTimeZoneId(
PortletPropsValues.COMPANY_DEFAULT_TIME_ZONE);
UserLocalServiceUtil.updateUser(user);
}
};
actionableDynamicQuery.setCompanyId(companyId);
actionableDynamicQuery.performActions();
}