use of org.motechproject.mds.domain.UserPreferences in project motech by motech.
the class UserPreferencesServiceImpl method removeUserPreferences.
@Override
@Transactional
public void removeUserPreferences(Long id, String username) {
Entity entity = getEntity(id);
UserPreferences userPreferences = allUserPreferences.retrieveByClassNameAndUsername(entity.getClassName(), username);
if (userPreferences != null) {
allUserPreferences.delete(userPreferences);
}
}
Aggregations