use of org.onebusaway.users.model.UserProperties in project onebusaway-application-modules by camsys.
the class UserPropertiesServiceV3Impl method getProperties.
/**
**
* Private Methods
***
*/
private UserPropertiesV3 getProperties(User user) {
UserProperties props = user.getProperties();
UserPropertiesV3 v3 = _userPropertiesMigration.migrate(props, UserPropertiesV3.class);
if (props != v3)
user.setProperties(v3);
return v3;
}
use of org.onebusaway.users.model.UserProperties in project onebusaway-application-modules by camsys.
the class UserPropertiesServiceV4Impl method getProperties.
/**
**
* Private Methods
***
*/
private UserPropertiesV4 getProperties(User user) {
UserProperties props = user.getProperties();
UserPropertiesV4 v4 = _userPropertiesMigration.migrate(props, UserPropertiesV4.class);
if (props != v4)
user.setProperties(v4);
return v4;
}
use of org.onebusaway.users.model.UserProperties in project onebusaway-application-modules by camsys.
the class UserPropertiesServiceVersionedInvocationHandler method getPropertiesVersion.
private int getPropertiesVersion(User user) {
UserProperties props = user.getProperties();
if (props instanceof UserPropertiesV1)
return 1;
if (props instanceof UserPropertiesV2)
return 2;
if (props instanceof UserPropertiesV3)
return 3;
if (props instanceof UserPropertiesV4)
return 4;
_log.warn("unknown user properties version: " + props.getClass());
return 0;
}
use of org.onebusaway.users.model.UserProperties in project onebusaway-application-modules by camsys.
the class UserPropertiesServiceV2Impl method getProperties.
/**
**
* Private Methods
***
*/
private UserPropertiesV2 getProperties(User user) {
UserProperties props = user.getProperties();
UserPropertiesV2 v2 = _userPropertiesMigration.migrate(props, UserPropertiesV2.class);
if (props != v2)
user.setProperties(v2);
return v2;
}
Aggregations