use of org.onebusaway.users.model.properties.UserPropertiesV3 in project onebusaway-application-modules by camsys.
the class UserPropertiesServiceV3Impl method updateApiKeyContactInfo.
@Override
public void updateApiKeyContactInfo(User user, String contactName, String contactCompany, String contactEmail, String contactDetails) {
UserPropertiesV3 properties = getProperties(user);
properties.setContactName(contactName);
properties.setContactCompany(contactCompany);
properties.setContactEmail(contactEmail);
properties.setContactDetails(contactDetails);
user.setProperties(properties);
_userDao.saveOrUpdateUser(user);
}
use of org.onebusaway.users.model.properties.UserPropertiesV3 in project onebusaway-application-modules by camsys.
the class UserPropertiesServiceV3Impl method setRememberUserPreferencesEnabled.
@Override
public void setRememberUserPreferencesEnabled(User user, boolean rememberPreferencesEnabled) {
UserPropertiesV3 properties = getProperties(user);
properties.setRememberPreferencesEnabled(rememberPreferencesEnabled);
if (!rememberPreferencesEnabled)
properties.clear();
_userDao.saveOrUpdateUser(user);
}
Aggregations