Topic Text   Topic Comments (0)   Topic Properties   Topic Information as@as....
Topic title: Test Thursday March 17, 2016 19:22:05

Download topic text | View in monospace font | Tab width set to 8 (change to 4)

Files in topic:  
[Jump to] dashboard.diff   {+53,-0}

[Add General Comment] to topic.

File dashboard.diff (Revision 1.0) [Add File Comment] [Top]
 
1 diff --git a/amr-admin-app/src/main/resources/application.properties b/amr-admin-app/src/main/resources/application.properties
2 index 7a13062..9f70e9b 100644
3 --- a/amr-admin-app/src/main/resources/application.properties
4 +++ b/amr-admin-app/src/main/resources/application.properties
5 @@ -1,4 +1,4 @@
6 neo4j.server.url=http://localhost:7474
7 neo4j.server.user=neo4j
8 -neo4j.server.password=passw0rd
9 +neo4j.server.password=neo4j;
10 server.contextPath=/api/1.0/*
11 \ No newline at end of file
12 diff --git a/amr-admin-core/src/main/java/com/athenatics/admin/core/repository/DashboardRepository.java b/amr-admin-core/src/main/java/com/athenatics/admin/core/repository/DashboardRepository.java
13 index b0d0e95..797543f 100644
14 --- a/amr-admin-core/src/main/java/com/athenatics/admin/core/repository/DashboardRepository.java
15 +++ b/amr-admin-core/src/main/java/com/athenatics/admin/core/repository/DashboardRepository.java
16 @@ -6,6 +6,7 @@
17 */
18 package com.athenatics.admin.core.repository;
19
20 +import org.springframework.data.neo4j.annotation.Query;
21 import org.springframework.data.neo4j.repository.GraphRepository;
22 import com.athenatics.admin.model.dashboard.Dashboard;
23
24 @@ -15,5 +16,17 @@ import com.athenatics.admin.model.dashboard.Dashboard;
25 * Created: Mar 16, 2016
26 */
27 public interface DashboardRepository extends Repository, GraphRepository<Dashboard> {
28 -
29 +
30 + @Query("MATCH (dashboard:Dashboard) WHERE dashboard.dashboardName = {0} RETURN dashboard.dashboardId")
31 + String findDashboardIdByName(String dashboardName);
32 +
33 + @Query("MATCH (dashboard:Dashboard) WHERE dashboard.dashboardName = {0} RETURN dashboard")
34 + Dashboard findDashboardByName(String dashboardName);
35 +
36 + @Query("MATCH (dashboard:Dashboard) WHERE dashboard.dashboardId = {0} RETURN dashboard")
37 + Dashboard findDashboardById(String dashboardId);
38 +
39 + @Query("MATCH (dashboard:Dashboard) WHERE dashboard.dashboardId = {0} DETACH DELETE dashboard")
40 + String deleteDashboardbyId(String dashboardId);
41 +
42 }
43 diff --git a/amr-admin-model/src/main/java/com/athenatics/admin/model/dashboard/Dashboard.java b/amr-admin-model/src/main/java/com/athenatics/admin/model/dashboard/Dashboard.java
44 index 290af25..e68c6ed 100644
45 --- a/amr-admin-model/src/main/java/com/athenatics/admin/model/dashboard/Dashboard.java
46 +++ b/amr-admin-model/src/main/java/com/athenatics/admin/model/dashboard/Dashboard.java
47 @@ -1,6 +1,5 @@
48 package com.athenatics.admin.model.dashboard;
49
50 -import java.net.URL;
51 import java.util.HashSet;
52 import java.util.Set;
53 import org.neo4j.ogm.annotation.Relationship;
 
  
Legend:
Removed 
Changed
 Added

[Add General Comment] to topic.