final NotificationTimestamp notificationTimestamp = NotificationTimestamp.fromType(notificationType);
String currentUserTimestamp = userProperties.getPropertyValue(notificationTimestamp.getValue());
if (currentUserTimestamp == null) {
userProperties.addPropertyValue(notificationTimestamp.getValue(), Long.toString(new Date().getTime()));
}
userProperties.addPropertyValue(notificationType.getValue(), notificationInterval.getValue());
}
public Map<NotificationType, NotificationInterval> getNotificationDelays(final String user) {
//FIXME: everything on this path can be null
final Collection<PropertyValue> valueCollection = MetaProjectManager.getManager().getMetaProject().getUser(user).getPropertyValues();