* @param acl the acl
* @return the string containing a boolean that verify if note will be empty
*/
public static String startUpdate(String user, String acl) {
boolean isEmpty = true;
UpdateManager updateManager = null;
try {
updateManager = new UpdateManager();
SessionManager.saveSession(user, updateManager);
updateManager.setUpdateManager(user, true, acl);
updateManager.getAllNotes();
} catch (SQLException sqlException) {
LOGGER.error(sqlException.getMessage());
} catch (Exception exception) {
LOGGER.error(exception.getMessage());
}
isEmpty = updateManager.isEmpty();
LOGGER.debug("Start Upload - current ACL isEmpty: " + isEmpty);
return String.valueOf(isEmpty);
}