Search in sources :

Example 16 with UserPropertiesV3

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);
}
Also used : UserPropertiesV3(org.onebusaway.users.model.properties.UserPropertiesV3)

Example 17 with UserPropertiesV3

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);
}
Also used : UserPropertiesV3(org.onebusaway.users.model.properties.UserPropertiesV3)

Aggregations

UserPropertiesV3 (org.onebusaway.users.model.properties.UserPropertiesV3)17 Bookmark (org.onebusaway.users.model.properties.Bookmark)6 UserPropertiesV2 (org.onebusaway.users.model.properties.UserPropertiesV2)3 Test (org.junit.Test)2 UserProperties (org.onebusaway.users.model.UserProperties)2 RouteFilter (org.onebusaway.users.model.properties.RouteFilter)2 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 GET (javax.ws.rs.GET)1 Path (javax.ws.rs.Path)1 Produces (javax.ws.rs.Produces)1 WebApplicationException (javax.ws.rs.WebApplicationException)1 Response (javax.ws.rs.core.Response)1 JsonGenerationException (org.codehaus.jackson.JsonGenerationException)1 JsonMappingException (org.codehaus.jackson.map.JsonMappingException)1 BookmarkBean (org.onebusaway.users.client.model.BookmarkBean)1 UserIndex (org.onebusaway.users.model.UserIndex)1 UserIndexKey (org.onebusaway.users.model.UserIndexKey)1 UserPropertiesV1 (org.onebusaway.users.model.UserPropertiesV1)1 UserPropertiesV4 (org.onebusaway.users.model.properties.UserPropertiesV4)1