class DocumentServiceImpl extends RemoteServiceServlet implements DocumentService {

	@Override
	public void deleteNotes(long[] ids) throws ServerException {
		ServiceUtil.validateSession(getThreadLocalRequest());

		DocumentNoteDAO dao = (DocumentNoteDAO) Context.get().getBean(DocumentNoteDAO.class);
		for (long id : ids)
			try {
				dao.delete(id);
			} catch (PersistenceException e) {
				log.error(e.getMessage(), e);
			}
	}

}