Skip to content

Commit f331d99

Browse files
authored
Cleanup (#72)
1 parent ea4c669 commit f331d99

File tree

13 files changed

+0
-104
lines changed

13 files changed

+0
-104
lines changed

dashboard-web-app/pom.xml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
<groupId>org.springframework.boot</groupId>
1717
<artifactId>spring-boot-starter-parent</artifactId>
1818
<version>2.1.7.RELEASE</version>
19-
<!--
20-
<version>1.5.8.RELEASE</version>
21-
-->
2219
</parent>
2320

2421
<properties>
@@ -325,39 +322,6 @@
325322
</configuration>
326323
</plugin>
327324

328-
329-
<!--
330-
<plugin>
331-
<groupId>org.apache.maven.plugins</groupId>
332-
<artifactId>maven-checkstyle-plugin</artifactId>
333-
<version>2.17</version>
334-
<executions>
335-
<execution>
336-
<id>validate</id>
337-
<phase>validate</phase>
338-
<configuration>
339-
<configLocation>${project.basedir}/checkstyle.xml</configLocation>
340-
<encoding>UTF-8</encoding>
341-
<consoleOutput>true</consoleOutput>
342-
<failsOnError>true</failsOnError>
343-
<failOnViolation>true</failOnViolation>
344-
<includeTestSourceDirectory>true</includeTestSourceDirectory>
345-
<resourceIncludes>**/*</resourceIncludes>
346-
</configuration>
347-
<goals>
348-
<goal>check</goal>
349-
</goals>
350-
</execution>
351-
</executions>
352-
<configuration>
353-
<linkXRef>false</linkXRef>
354-
</configuration>
355-
<inherited>true</inherited>
356-
</plugin>
357-
358-
-->
359-
360-
361325
<plugin>
362326
<groupId>org.springframework.boot</groupId>
363327
<artifactId>spring-boot-maven-plugin</artifactId>

dashboard-web-app/src/main/java/org/inventory/hub/controller/ProductsInventoryController.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ public Map<String, Object> home() {
4141
return model;
4242
}
4343

44-
/**
45-
* HTTP GET
46-
*/
4744
@RequestMapping(value = "/api/products/{productName}",
4845
method = RequestMethod.GET, produces = {MediaType.APPLICATION_JSON_VALUE})
4946
public ResponseEntity<?> getProduct(@PathVariable("productName") String productName) {
@@ -88,9 +85,6 @@ private static <E> Collection<E> makeCollection(Iterable<E> iter) {
8885
return list;
8986
}
9087

91-
/**
92-
* HTTP GET ALL
93-
*/
9488
@RequestMapping(value = "/api/products", method = RequestMethod.GET, produces = {MediaType.APPLICATION_JSON_VALUE})
9589
public ResponseEntity<?> getProducts() {
9690
try {
@@ -165,9 +159,6 @@ public ResponseEntity<?> getProducts() {
165159
}
166160
}
167161

168-
/**
169-
* HTTP GET ALL
170-
*/
171162
@RequestMapping(value = "/api/locations", method = RequestMethod.GET, produces = {MediaType.APPLICATION_JSON_VALUE})
172163
public ResponseEntity<?> getLocations() {
173164
try {

dashboard-web-app/src/main/java/org/inventory/hub/controller/TransactionsController.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ public class TransactionsController {
2121
public TransactionsController() {
2222
}
2323

24-
/**
25-
* HTTP GET ALL
26-
*/
2724
@RequestMapping(value = "/api/transactions", method = RequestMethod.GET, produces = {MediaType.APPLICATION_JSON_VALUE})
2825
public ResponseEntity<?> getTransactions() {
2926

dashboard-web-app/src/main/java/org/inventory/hub/dao/ProductsInventoryRepository.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
import org.inventory.hub.model.ProductsInventory;
1010
import org.springframework.stereotype.Repository;
1111

12-
// import java.util.List;
13-
1412
@Repository
1513
public interface ProductsInventoryRepository extends ReactiveCosmosRepository<ProductsInventory, String> {
16-
// List<ProductsInventory> findByProductName(String productName);
1714
}

dashboard-web-app/src/main/java/org/inventory/hub/event/PointOfTransaction.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
public class PointOfTransaction {
1212

13-
// @JsonProperty(value = "id")
14-
// private String id;
15-
1613
@JsonProperty(value = "location")
1714
private String location;
1815

@@ -29,14 +26,6 @@ public PointOfTransaction(){
2926

3027
}
3128

32-
// public String getId(){
33-
// return id;
34-
// }
35-
//
36-
// public void setId(String id){
37-
// this.id = id;
38-
// }
39-
4029
public String getLocation(){
4130
return location;
4231
}

dashboard-web-app/src/main/java/org/inventory/hub/event/TransactionsFIFO.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public void addFirst (Transaction transaction) {
4141
if (webSocket != null) {
4242
String message = "{ \"name\":\"" + transaction.toString() + "\"}";
4343
System.out.println("Sending to /topic/reply with message = " + message);
44-
//webSocket.convertAndSend("/app/message", message);
4544
webSocket.convertAndSend("/topic/reply", message);
4645
}
4746
else

dashboard-web-app/src/main/java/org/inventory/hub/event/WebSocketController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public class WebSocketController {
2424
@SendTo("/topic/reply")
2525
public String processMessageFromClient(@Payload String message) throws Exception {
2626
System.out.println("Process Message From Client == " + message);
27-
// String name = new Gson().fromJson(message, Map.class).get("name").toString();
2827
return message;
2928
}
3029

dashboard-web-app/src/main/resources/static/Views/Home.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@
4747
</div>
4848
</div>
4949
<table id="product-table" cellpadding="10" cellspacing="5" border="2" valign="top" style="text-align:right; padding-right: 5px; padding-left: 5px">
50-
<!--
51-
<tr><td>There are no items...</td></tr>
52-
-->
5350
<tr>
5451
<th ng-hide="locations === null"></th>
5552
<th ng-repeat="(key, value) in locations | orderBy:key:true"> {{key}} </th>

dashboard-web-app/src/main/resources/static/app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ function disconnect() {
4343

4444
function showGreeting(message) {
4545
console.log("Received = " + message);
46-
// $("#greetings").append("<tr><td>" + message + "</td></tr>");
4746
$("#greetings").prepend("<tr><td>" + message + "</td></tr>");
4847

4948
}

dashboard-web-app/src/main/resources/static/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
<script src="libs/sockjs/sockjs.min.js" type="text/javascript"></script>
6565
<script src="libs/stomp-websocket/lib/stomp.min.js" type="text/javascript"></script>
6666
<script src="libs/lodash/dist/lodash.min.js"></script>
67-
<!-- <script src="Scripts/receiver.js" type="text/javascript"></script>-->
6867
<script src="Scripts/receiverCtrl.js" type="text/javascript"></script>
6968
<script src="Scripts/receiverSvc.js" type="text/javascript"></script>
7069

function-apps/Notify-Inventory/src/main/java/org/inventory/hub/NotifyInventoryUpdate.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,3 @@ static final class PointOfTransactionLocation {
7373
}
7474

7575
}
76-
77-
/*
78-
// @EventHubTrigger(name = "dataInput", eventHubName = "TRANSACTIONS_EVENT_HUB_NAME",
79-
// connection = "TRANSACTIONS_EVENT_HUB_CONNECTION_STRING",
80-
// consumerGroup = "TRANSACTIONS_EVENT_HUB_CONSUMER_GROUP_NAME") String dataInput,
81-
//
82-
// context.getLogger().info("Java Event Hub Notification trigger processed a request: " + dataInput);
83-
//
84-
// JSONObject eventHubMessage = new JSONObject(dataInput);
85-
// eventHubMessage.put("id", java.util.UUID.randomUUID().toString());
86-
// context.getLogger().info("message: " + eventHubMessage.toString());
87-
// dataOutput.setValue(eventHubMessage.toString());
88-
//
89-
// JSONArray jsonArray = new JSONArray(document);
90-
// JSONObject eventHubMessage = jsonArray.getJSONObject(0);
91-
92-
*/

function-apps/Point-Of-Transaction/pom.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,6 @@
5656
<artifactId>gson</artifactId>
5757
<version>2.8.2</version>
5858
</dependency>
59-
<!--<dependency>
60-
<groupId>com.microsoft.azure</groupId>
61-
<artifactId>azure-eventhubs</artifactId>
62-
<version>1.0.0</version>
63-
</dependency>
64-
<dependency>
65-
<groupId>com.microsoft.azure</groupId>
66-
<artifactId>azure-documentdb</artifactId>
67-
<version>LATEST</version>
68-
</dependency>-->
6959

7060
<!-- Test -->
7161
<dependency>
@@ -85,11 +75,6 @@
8575
<artifactId>json</artifactId>
8676
<version>20171018</version>
8777
</dependency>
88-
<!--<dependency>
89-
<groupId>com.google.code.gson</groupId>
90-
<artifactId>gson</artifactId>
91-
<version>2.8.2</version>
92-
</dependency>-->
9378
</dependencies>
9479

9580
<build>

function-apps/Point-Of-Transaction/src/main/java/org/inventory/hub/POT.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ public void sell(@TimerTrigger(name = "timerInfo", schedule = "*/30 * * * * *")
4747
Output.setValue(gson.toJson(transactionEvent));
4848
}
4949

50-
/**
51-
* actual application-payload, ex: a telemetry event
52-
*/
5350
/**
5451
* actual application-payload, ex: an inventory update
5552
*/

0 commit comments

Comments
 (0)