* @throws EnMeNoResultsFoundException
*/
public void updateLocationFolder(final UnitLocationFolder locationFolderBean,
final String username, final String typeUpdate)
throws EnMeNoResultsFoundException {
final GeoPointFolder locationFolder = getLocationFolder(locationFolderBean
.getId(), username);
if (locationFolder == null) {
throw new EnMeNoResultsFoundException("location folder not found");
}
else {
if (typeUpdate.equals("name")) {
log.debug("updating folder name");
locationFolder.setFolderName(locationFolderBean.getName());
}
getGeoPointDao().saveOrUpdate(locationFolder);
createNotification(NotificationEnum.LOCATION_GMAP_CHANGED_NAME, "Folder name change to "
+ locationFolderBean.getName(), locationFolder.getUsers());
}
}