From 902c65765ba9ee137244d1cc3f7b33560b21f3ed Mon Sep 17 00:00:00 2001
From: Cleverson Sacramento
Date: Fri, 27 Jun 2014 11:34:50 -0300
Subject: [PATCH] Ajustes no arquétipo
---
archetype/html-rest/src/main/resources/archetype-resources/src/main/java/rest/BookmarkREST.java | 7 +++++++
archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/bookmark-list.html | 1 +
archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/index.html | 2 +-
archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/js/controller/bookmark-edit.js | 1 +
archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/js/controller/bookmark-list.js | 17 ++++++++++++-----
archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/js/proxy/bookmark.js | 6 ++++--
6 files changed, 26 insertions(+), 8 deletions(-)
diff --git a/archetype/html-rest/src/main/resources/archetype-resources/src/main/java/rest/BookmarkREST.java b/archetype/html-rest/src/main/resources/archetype-resources/src/main/java/rest/BookmarkREST.java
index 957099f..4122fe2 100644
--- a/archetype/html-rest/src/main/resources/archetype-resources/src/main/java/rest/BookmarkREST.java
+++ b/archetype/html-rest/src/main/resources/archetype-resources/src/main/java/rest/BookmarkREST.java
@@ -88,6 +88,13 @@ public class BookmarkREST {
bc.delete(id);
}
+ @DELETE
+ @LoggedIn
+ @Transactional
+ public void delete(List ids) {
+ bc.delete(ids);
+ }
+
private void checkId(Bookmark entity) {
if (entity.getId() != null) {
throw new BadRequestException();
diff --git a/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/bookmark-list.html b/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/bookmark-list.html
index a16e65c..aa43f24 100644
--- a/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/bookmark-list.html
+++ b/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/bookmark-list.html
@@ -38,6 +38,7 @@
+
diff --git a/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/index.html b/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/index.html
index 4360f94..db6afcc 100644
--- a/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/index.html
+++ b/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/index.html
@@ -1,5 +1,5 @@
-
+