Permalink
Browse files

Fixed copyright statements

  • Loading branch information...
1 parent 1836ca8 commit 0123db1819e4a478d6c1852bcb25b7d867d30528 @abuijze abuijze committed Feb 17, 2012
Showing with 1,552 additions and 730 deletions.
  1. +2 −2 companies-api/pom.xml
  2. +3 −2 companies-api/src/main/java/org/axonframework/samples/trader/company/api/CompanyCreatedEvent.java
  3. +5 −2 companies-api/src/main/java/org/axonframework/samples/trader/company/api/CreateCompanyCommand.java
  4. +2 −1 companies/pom.xml
  5. +2 −1 companies/src/main/java/org/axonframework/samples/trader/company/command/Company.java
  6. +6 −6 companies/src/main/java/org/axonframework/samples/trader/company/command/CompanyCommandHandler.java
  7. +2 −1 companies/src/main/resources/META-INF/spring/companies-context.xml
  8. +6 −5 ...ies/src/test/java/org/axonframework/samples/trader/company/command/CompanyCommandHandlerTest.java
  9. +2 −1 infrastructure/pom.xml
  10. +3 −1 infrastructure/src/main/java/org/axonframework/samples/trader/infra/mongo/CFMongoTemplate.java
  11. +3 −1 infrastructure/src/main/java/org/axonframework/samples/trader/infra/mongo/CFSagaMongoTemplate.java
  12. +2 −1 infrastructure/src/main/java/org/axonframework/samples/trader/infra/util/ProfilingAspect.java
  13. +2 −1 infrastructure/src/main/resources/META-INF/spring/configuration-context.xml
  14. +2 −1 infrastructure/src/main/resources/META-INF/spring/cqrs-infrastructure-context.xml
  15. +2 −1 infrastructure/src/main/resources/META-INF/spring/persistence-infrastructure-context.xml
  16. +2 −1 infrastructure/src/main/resources/trader.properties
  17. +2 −2 orders-api/pom.xml
  18. +3 −1 ...i/src/main/java/org/axonframework/samples/trader/orders/api/portfolio/CreatePortfolioCommand.java
  19. +3 −1 ...pi/src/main/java/org/axonframework/samples/trader/orders/api/portfolio/PortfolioCreatedEvent.java
  20. +5 −2 ...n/java/org/axonframework/samples/trader/orders/api/portfolio/item/AddItemsToPortfolioCommand.java
  21. +3 −1 ...nframework/samples/trader/orders/api/portfolio/item/CancelItemReservationForPortfolioCommand.java
  22. +3 −1 ...framework/samples/trader/orders/api/portfolio/item/ConfirmItemReservationForPortfolioCommand.java
  23. +3 −1 ...framework/samples/trader/orders/api/portfolio/item/ItemReservationCancelledForPortfolioEvent.java
  24. +3 −1 ...framework/samples/trader/orders/api/portfolio/item/ItemReservationConfirmedForPortfolioEvent.java
  25. +3 −1 ...framework/samples/trader/orders/api/portfolio/item/ItemToReserveNotAvailableInPortfolioEvent.java
  26. +3 −1 ...n/java/org/axonframework/samples/trader/orders/api/portfolio/item/ItemsAddedToPortfolioEvent.java
  27. +3 −1 .../src/main/java/org/axonframework/samples/trader/orders/api/portfolio/item/ItemsReservedEvent.java
  28. +2 −1 ...amework/samples/trader/orders/api/portfolio/item/NotEnoughItemsAvailableToReserveInPortfolio.java
  29. +3 −1 ...src/main/java/org/axonframework/samples/trader/orders/api/portfolio/item/ReserveItemsCommand.java
  30. +3 −1 ...amework/samples/trader/orders/api/portfolio/money/CancelMoneyReservationFromPortfolioCommand.java
  31. +6 −2 ...ework/samples/trader/orders/api/portfolio/money/ConfirmMoneyReservationFromPortfolionCommand.java
  32. +3 −1 ...a/org/axonframework/samples/trader/orders/api/portfolio/money/DepositMoneyToPortfolioCommand.java
  33. +3 −1 ...a/org/axonframework/samples/trader/orders/api/portfolio/money/MoneyDepositedToPortfolioEvent.java
  34. +3 −1 ...mework/samples/trader/orders/api/portfolio/money/MoneyReservationCancelledFromPortfolioEvent.java
  35. +5 −2 ...mework/samples/trader/orders/api/portfolio/money/MoneyReservationConfirmedFromPortfolioEvent.java
  36. +5 −2 .../org/axonframework/samples/trader/orders/api/portfolio/money/MoneyReservedFromPortfolioEvent.java
  37. +3 −1 ...org/axonframework/samples/trader/orders/api/portfolio/money/MoneyWithdrawnFromPortfolioEvent.java
  38. +5 −2 ...rk/samples/trader/orders/api/portfolio/money/NotEnoughMoneyInPortfolioToMakeReservationEvent.java
  39. +3 −1 ...org/axonframework/samples/trader/orders/api/portfolio/money/ReserveMoneyFromPortfolioCommand.java
  40. +3 −1 ...rg/axonframework/samples/trader/orders/api/portfolio/money/WithdrawMoneyFromPortfolioCommand.java
  41. +5 −2 ...java/org/axonframework/samples/trader/orders/api/transaction/AbstractStartTransactionCommand.java
  42. +3 −2 ...va/org/axonframework/samples/trader/orders/api/transaction/AbstractTransactionCancelledEvent.java
  43. +3 −1 ...va/org/axonframework/samples/trader/orders/api/transaction/AbstractTransactionConfirmedEvent.java
  44. +3 −2 ...ava/org/axonframework/samples/trader/orders/api/transaction/AbstractTransactionExecutedEvent.java
  45. +5 −3 ...xonframework/samples/trader/orders/api/transaction/AbstractTransactionPartiallyExecutedEvent.java
  46. +3 −2 ...java/org/axonframework/samples/trader/orders/api/transaction/AbstractTransactionStartedEvent.java
  47. +3 −1 ...in/java/org/axonframework/samples/trader/orders/api/transaction/BuyTransactionCancelledEvent.java
  48. +2 −1 ...in/java/org/axonframework/samples/trader/orders/api/transaction/BuyTransactionConfirmedEvent.java
  49. +2 −1 ...ain/java/org/axonframework/samples/trader/orders/api/transaction/BuyTransactionExecutedEvent.java
  50. +3 −1 ...org/axonframework/samples/trader/orders/api/transaction/BuyTransactionPartiallyExecutedEvent.java
  51. +2 −1 ...main/java/org/axonframework/samples/trader/orders/api/transaction/BuyTransactionStartedEvent.java
  52. +3 −1 ...c/main/java/org/axonframework/samples/trader/orders/api/transaction/CancelTransactionCommand.java
  53. +3 −1 .../main/java/org/axonframework/samples/trader/orders/api/transaction/ConfirmTransactionCommand.java
  54. +3 −1 ...main/java/org/axonframework/samples/trader/orders/api/transaction/ExecutedTransactionCommand.java
  55. +3 −1 ...n/java/org/axonframework/samples/trader/orders/api/transaction/SellTransactionCancelledEvent.java
  56. +3 −2 ...n/java/org/axonframework/samples/trader/orders/api/transaction/SellTransactionConfirmedEvent.java
  57. +2 −1 ...in/java/org/axonframework/samples/trader/orders/api/transaction/SellTransactionExecutedEvent.java
  58. +5 −2 ...rg/axonframework/samples/trader/orders/api/transaction/SellTransactionPartiallyExecutedEvent.java
  59. +5 −2 ...ain/java/org/axonframework/samples/trader/orders/api/transaction/SellTransactionStartedEvent.java
  60. +5 −2 ...main/java/org/axonframework/samples/trader/orders/api/transaction/StartBuyTransactionCommand.java
  61. +5 −2 ...ain/java/org/axonframework/samples/trader/orders/api/transaction/StartSellTransactionCommand.java
  62. +2 −1 ...rs-api/src/main/java/org/axonframework/samples/trader/orders/api/transaction/TransactionType.java
  63. +2 −2 orders/pom.xml
  64. +65 −21 orders/src/main/java/org/axonframework/samples/trader/orders/command/BuyTradeManagerSaga.java
  65. +27 −9 orders/src/main/java/org/axonframework/samples/trader/orders/command/Portfolio.java
  66. +21 −7 orders/src/main/java/org/axonframework/samples/trader/orders/command/PortfolioCommandHandler.java
  67. +61 −20 orders/src/main/java/org/axonframework/samples/trader/orders/command/SellTradeManagerSaga.java
  68. +3 −1 orders/src/main/java/org/axonframework/samples/trader/orders/command/TradeManagerSaga.java
  69. +30 −9 orders/src/main/java/org/axonframework/samples/trader/orders/command/Transaction.java
  70. +9 −2 orders/src/main/java/org/axonframework/samples/trader/orders/command/TransactionCommandHandler.java
  71. +2 −1 orders/src/main/resources/META-INF/spring/orders-context.xml
  72. +146 −62 orders/src/test/java/org/axonframework/samples/trader/orders/command/BuyTradeManagerSagaTest.java
  73. +103 −50 ...rs/src/test/java/org/axonframework/samples/trader/orders/command/PortfolioCommandHandlerTest.java
  74. +132 −51 orders/src/test/java/org/axonframework/samples/trader/orders/command/SellTradeManagerSagaTest.java
  75. +36 −26 ...src/test/java/org/axonframework/samples/trader/orders/command/TransactionCommandHandlingTest.java
  76. +11 −8 ...a/org/axonframework/samples/trader/orders/command/matchers/AddItemsToPortfolioCommandMatcher.java
  77. +14 −9 ...ework/samples/trader/orders/command/matchers/CancelItemReservationForPortfolioCommandMatcher.java
  78. +11 −8 ...ork/samples/trader/orders/command/matchers/CancelMoneyReservationFromPortfolioCommandMatcher.java
  79. +5 −3 ...ava/org/axonframework/samples/trader/orders/command/matchers/CancelTransactionCommandMatcher.java
  80. +14 −10 ...work/samples/trader/orders/command/matchers/ConfirmItemReservationForPortfolioCommandMatcher.java
  81. +11 −7 ...k/samples/trader/orders/command/matchers/ConfirmMoneyReservationFromPortfolionCommandMatcher.java
  82. +5 −3 ...va/org/axonframework/samples/trader/orders/command/matchers/ConfirmTransactionCommandMatcher.java
  83. +13 −11 ...t/java/org/axonframework/samples/trader/orders/command/matchers/CreateBuyOrderCommandMatcher.java
  84. +13 −10 .../java/org/axonframework/samples/trader/orders/command/matchers/CreateSellOrderCommandMatcher.java
  85. +7 −7 ...g/axonframework/samples/trader/orders/command/matchers/DepositMoneyToPortfolioCommandMatcher.java
  86. +11 −8 ...a/org/axonframework/samples/trader/orders/command/matchers/ExecutedTransactionCommandMatcher.java
  87. +9 −7 ...axonframework/samples/trader/orders/command/matchers/ReserveMoneyFromPortfolioCommandMatcher.java
  88. +11 −8 ...st/java/org/axonframework/samples/trader/orders/command/matchers/ReservedItemsCommandMatcher.java
  89. +2 −1 orders/src/test/resources/log4j.properties
  90. +2 −1 query/pom.xml
  91. +3 −2 query/src/main/java/org/axonframework/samples/trader/query/company/CompanyEntry.java
  92. +2 −1 query/src/main/java/org/axonframework/samples/trader/query/company/CompanyListener.java
  93. +2 −1 ...main/java/org/axonframework/samples/trader/query/company/repositories/CompanyQueryRepository.java
  94. +3 −1 query/src/main/java/org/axonframework/samples/trader/query/orderbook/OrderBookEntry.java
  95. +8 −2 query/src/main/java/org/axonframework/samples/trader/query/orderbook/OrderBookListener.java
  96. +3 −1 query/src/main/java/org/axonframework/samples/trader/query/orderbook/OrderEntry.java
  97. +3 −1 .../java/org/axonframework/samples/trader/query/orderbook/repositories/OrderBookQueryRepository.java
  98. +3 −1 query/src/main/java/org/axonframework/samples/trader/query/portfolio/ItemEntry.java
  99. +3 −1 query/src/main/java/org/axonframework/samples/trader/query/portfolio/PortfolioEntry.java
  100. +15 −7 query/src/main/java/org/axonframework/samples/trader/query/portfolio/PortfolioItemEventListener.java
  101. +13 −5 ...y/src/main/java/org/axonframework/samples/trader/query/portfolio/PortfolioMoneyEventListener.java
  102. +3 −1 .../java/org/axonframework/samples/trader/query/portfolio/repositories/PortfolioQueryRepository.java
  103. +3 −1 query/src/main/java/org/axonframework/samples/trader/query/tradeexecuted/TradeExecutedEntry.java
  104. +3 −1 ...g/axonframework/samples/trader/query/tradeexecuted/repositories/TradeExecutedQueryRepository.java
  105. +3 −1 query/src/main/java/org/axonframework/samples/trader/query/transaction/TransactionEntry.java
  106. +21 −4 query/src/main/java/org/axonframework/samples/trader/query/transaction/TransactionEventListener.java
  107. +2 −1 query/src/main/java/org/axonframework/samples/trader/query/transaction/TransactionState.java
  108. +3 −1 ...a/org/axonframework/samples/trader/query/transaction/repositories/TransactionQueryRepository.java
  109. +2 −1 query/src/main/resources/META-INF/spring/query-context.xml
  110. +5 −4 ...org/axonframework/samples/trader/query/company/repositories/CompanyRepositoryIntegrationTest.java
  111. +24 −10 .../test/java/org/axonframework/samples/trader/query/orderbook/OrderBookListenerIntegrationTest.java
  112. +16 −14 query/src/test/java/org/axonframework/samples/trader/query/portfolio/PortfolioEntryMatcher.java
  113. +7 −6 query/src/test/java/org/axonframework/samples/trader/query/portfolio/PortfolioEntryTest.java
  114. +11 −8 ...rc/test/java/org/axonframework/samples/trader/query/portfolio/PortfolioItemEventListenerTest.java
  115. +18 −8 query/src/test/java/org/axonframework/samples/trader/query/transaction/TransactionEntryMatcher.java
  116. +17 −11 ...rc/test/java/org/axonframework/samples/trader/query/transaction/TransactionEventListenerTest.java
  117. +16 −0 trade-engine-api/pom.xml
  118. +4 −2 ...pi/src/main/java/org/axonframework/samples/trader/tradeengine/api/order/AbstractOrderCommand.java
  119. +4 −3 ...rc/main/java/org/axonframework/samples/trader/tradeengine/api/order/AbstractOrderPlacedEvent.java
  120. +4 −3 ...api/src/main/java/org/axonframework/samples/trader/tradeengine/api/order/BuyOrderPlacedEvent.java
  121. +4 −2 ...i/src/main/java/org/axonframework/samples/trader/tradeengine/api/order/CreateBuyOrderCommand.java
  122. +3 −1 .../src/main/java/org/axonframework/samples/trader/tradeengine/api/order/CreateOrderBookCommand.java
  123. +4 −2 .../src/main/java/org/axonframework/samples/trader/tradeengine/api/order/CreateSellOrderCommand.java
  124. +3 −1 ...i/src/main/java/org/axonframework/samples/trader/tradeengine/api/order/OrderBookCreatedEvent.java
  125. +4 −2 ...pi/src/main/java/org/axonframework/samples/trader/tradeengine/api/order/SellOrderPlacedEvent.java
  126. +2 −1 ...-api/src/main/java/org/axonframework/samples/trader/tradeengine/api/order/TradeExecutedEvent.java
  127. +16 −0 trade-engine/pom.xml
  128. +4 −2 trade-engine/src/main/java/org/axonframework/samples/trader/tradeengine/command/Order.java
  129. +2 −1 trade-engine/src/main/java/org/axonframework/samples/trader/tradeengine/command/OrderBook.java
  130. +10 −9 ...e/src/main/java/org/axonframework/samples/trader/tradeengine/command/OrderBookCommandHandler.java
  131. +16 −0 trade-engine/src/main/resources/META-INF/spring/trade-engine-context.xml
  132. +49 −24 ...c/test/java/org/axonframework/samples/trader/tradeengine/command/OrderBookCommandHandlerTest.java
  133. +2 −1 users-api/pom.xml
  134. +3 −2 users-api/src/main/java/org/axonframework/samples/trader/users/api/AuthenticateUserCommand.java
  135. +3 −1 users-api/src/main/java/org/axonframework/samples/trader/users/api/CreateUserCommand.java
  136. +3 −1 users-api/src/main/java/org/axonframework/samples/trader/users/api/UserAccount.java
  137. +3 −1 users-api/src/main/java/org/axonframework/samples/trader/users/api/UserAuthenticatedEvent.java
  138. +3 −1 users-api/src/main/java/org/axonframework/samples/trader/users/api/UserCreatedEvent.java
  139. +2 −1 users-query/pom.xml
  140. +3 −1 users-query/src/main/java/org/axonframework/samples/trader/query/users/UserEntry.java
  141. +3 −1 users-query/src/main/java/org/axonframework/samples/trader/query/users/UserListener.java
  142. +3 −1 .../src/main/java/org/axonframework/samples/trader/query/users/repositories/UserQueryRepository.java
  143. +2 −1 users-query/src/main/resources/META-INF/spring/users-query-context.xml
  144. +2 −2 users/pom.xml
  145. +5 −2 ...src/main/java/org/axonframework/samples/trader/users/command/PortfolioManagementUserListener.java
  146. +3 −2 users/src/main/java/org/axonframework/samples/trader/users/command/User.java
  147. +3 −2 users/src/main/java/org/axonframework/samples/trader/users/command/UserCommandHandler.java
  148. +4 −3 users/src/main/java/org/axonframework/samples/trader/users/util/DigestUtils.java
  149. +2 −1 users/src/main/resources/META-INF/spring/users-context.xml
  150. +5 −5 ...t/java/org/axonframework/samples/trader/app/command/user/PortfolioManagementUserListenerTest.java
  151. +9 −8 users/src/test/java/org/axonframework/samples/trader/app/command/user/UserCommandHandlerTest.java
  152. +2 −2 web-ui/pom.xml
  153. +8 −4 web-ui/src/main/java/org/axonframework/samples/trader/webui/admin/AdminController.java
  154. +11 −6 web-ui/src/main/java/org/axonframework/samples/trader/webui/companies/CompanyController.java
  155. +6 −3 web-ui/src/main/java/org/axonframework/samples/trader/webui/dashboard/DashboardController.java
  156. +5 −3 ...src/main/java/org/axonframework/samples/trader/webui/init/CloudApplicationContextInitializer.java
  157. +7 −3 web-ui/src/main/java/org/axonframework/samples/trader/webui/init/DBInit.java
  158. +3 −1 web-ui/src/main/java/org/axonframework/samples/trader/webui/init/MongoController.java
  159. +3 −1 web-ui/src/main/java/org/axonframework/samples/trader/webui/init/RunDBInitializerWhenNeeded.java
  160. +3 −1 web-ui/src/main/java/org/axonframework/samples/trader/webui/order/AbstractOrder.java
  161. +2 −1 web-ui/src/main/java/org/axonframework/samples/trader/webui/order/BuyOrder.java
  162. +3 −1 web-ui/src/main/java/org/axonframework/samples/trader/webui/order/CreateOrder.java
  163. +3 −2 web-ui/src/main/java/org/axonframework/samples/trader/webui/order/OrderBookController.java
  164. +3 −1 web-ui/src/main/java/org/axonframework/samples/trader/webui/order/SellOrder.java
  165. +3 −2 ...i/src/main/java/org/axonframework/samples/trader/webui/security/TraderAuthenticationProvider.java
  166. +3 −2 web-ui/src/main/java/org/axonframework/samples/trader/webui/security/UserController.java
  167. +3 −2 web-ui/src/main/java/org/axonframework/samples/trader/webui/util/SecurityUtil.java
  168. +2 −1 web-ui/src/main/resources/META-INF/spring/security-context.xml
  169. +2 −1 web-ui/src/main/resources/log4j.properties
  170. +3 −2 web-ui/src/main/resources/messages.properties
  171. +2 −1 web-ui/src/main/webapp/WEB-INF/decorators.xml
  172. +2 −1 web-ui/src/main/webapp/WEB-INF/decorators/master.jsp
  173. +2 −1 web-ui/src/main/webapp/WEB-INF/dispatcher-servlet.xml
  174. +2 −1 web-ui/src/main/webapp/WEB-INF/jsp/admin/portfolio/detail.jsp
  175. +2 −1 web-ui/src/main/webapp/WEB-INF/jsp/admin/portfolio/list.jsp
  176. +2 −1 web-ui/src/main/webapp/WEB-INF/jsp/company/buy.jsp
  177. +2 −1 web-ui/src/main/webapp/WEB-INF/jsp/company/details.jsp
  178. +3 −2 web-ui/src/main/webapp/WEB-INF/jsp/company/form-include.jsp
  179. +5 −4 web-ui/src/main/webapp/WEB-INF/jsp/company/list.jsp
  180. +2 −1 web-ui/src/main/webapp/WEB-INF/jsp/company/sell.jsp
  181. +14 −13 web-ui/src/main/webapp/WEB-INF/jsp/dashboard/index.jsp
  182. +2 −1 web-ui/src/main/webapp/WEB-INF/jsp/data/collection.jsp
  183. +2 −1 web-ui/src/main/webapp/WEB-INF/jsp/data/collections.jsp
  184. +2 −1 web-ui/src/main/webapp/WEB-INF/jsp/data/info.jsp
  185. +2 −1 web-ui/src/main/webapp/WEB-INF/jsp/include.jsp
  186. +2 −1 web-ui/src/main/webapp/WEB-INF/jsp/index.jsp
  187. +2 −1 web-ui/src/main/webapp/WEB-INF/jsp/orderbook/list.jsp
  188. +2 −1 web-ui/src/main/webapp/WEB-INF/jsp/orderbook/orders.jsp
  189. +2 −1 web-ui/src/main/webapp/WEB-INF/jsp/user/detail.jsp
  190. +5 −4 web-ui/src/main/webapp/WEB-INF/jsp/user/list.jsp
  191. +3 −2 web-ui/src/main/webapp/WEB-INF/messages/fields.properties
  192. +3 −2 web-ui/src/main/webapp/WEB-INF/messages/validation.properties
  193. +2 −2 web-ui/src/main/webapp/WEB-INF/web.xml
  194. +4 −3 web-ui/src/main/webapp/index.html
  195. +2 −2 web-ui/src/main/webapp/login.jsp
  196. +16 −0 web-ui/src/main/webapp/style/main.css
  197. +8 −3 web-ui/src/test/java/org/axonframework/samples/trader/test/BasicWebDriverTest.java
View
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ Copyright (c) 2012. Gridshore
+ ~ Copyright (c) 2010-2012. Axon Framework
+ ~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
@@ -35,5 +36,4 @@
</dependency>
</dependencies>
-
</project>
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2010. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -25,6 +26,7 @@
* @author Jettro Coenradie
*/
public class CompanyCreatedEvent extends DomainEvent {
+
private String companyName;
private long companyValue;
private long amountOfShares;
@@ -50,5 +52,4 @@ public String getCompanyName() {
public long getCompanyValue() {
return companyValue;
}
-
}
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2010. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -24,12 +25,14 @@
* @author Jettro Coenradie
*/
public class CreateCompanyCommand {
+
private AggregateIdentifier userId;
private String companyName;
private long companyValue;
private long amountOfShares;
- public CreateCompanyCommand(AggregateIdentifier userId, String companyName, long companyValue, long amountOfShares) {
+ public CreateCompanyCommand(AggregateIdentifier userId, String companyName, long companyValue,
+ long amountOfShares) {
this.amountOfShares = amountOfShares;
this.companyName = companyName;
this.companyValue = companyValue;
View
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ Copyright (c) 2012. Gridshore
+ ~ Copyright (c) 2010-2012. Axon Framework
+ ~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2010. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2010. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -26,22 +27,21 @@
* @author Jettro Coenradie
*/
public class CompanyCommandHandler {
+
private Repository<Company> repository;
@CommandHandler
public void handleCreateCompany(CreateCompanyCommand command) {
Company company = new Company(new UUIDAggregateIdentifier(),
- command.getCompanyName(),
- command.getCompanyValue(),
- command.getAmountOfShares());
+ command.getCompanyName(),
+ command.getCompanyValue(),
+ command.getAmountOfShares());
repository.add(company);
-
}
@Autowired
@Qualifier("companyRepository")
public void setRepository(Repository<Company> companyRepository) {
this.repository = companyRepository;
}
-
}
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ Copyright (c) 2012. Gridshore
+ ~ Copyright (c) 2010-2012. Axon Framework
+ ~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2010. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -21,13 +22,13 @@
import org.axonframework.samples.trader.company.api.CreateCompanyCommand;
import org.axonframework.test.FixtureConfiguration;
import org.axonframework.test.Fixtures;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.*;
/**
* @author Jettro Coenradie
*/
public class CompanyCommandHandlerTest {
+
private FixtureConfiguration fixture;
@Before
@@ -44,7 +45,7 @@ public void testCreateCompany() {
CreateCompanyCommand command = new CreateCompanyCommand(userId, "TestItem", 1000, 10000);
fixture.given()
- .when(command)
- .expectEvents(new CompanyCreatedEvent("TestItem", 1000, 10000));
+ .when(command)
+ .expectEvents(new CompanyCreatedEvent("TestItem", 1000, 10000));
}
}
View
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ Copyright (c) 2012. Gridshore
+ ~ Copyright (c) 2010-2012. Axon Framework
+ ~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2011. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -26,6 +27,7 @@
* @author Jettro Coenradie
*/
public class CFMongoTemplate implements MongoTemplate {
+
private static final String DEFAULT_DOMAINEVENTS_COLLECTION = "domainevents";
private static final String DEFAULT_SNAPSHOTEVENTS_COLLECTION = "snapshotevents";
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2012. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -24,6 +25,7 @@
* @author Jettro Coenradie
*/
public class CFSagaMongoTemplate implements MongoTemplate {
+
static final String SAGA_ASSOCIATIONS = "sagaassociations";
static final String SAGA_COLLECTION = "sagacollection";
private MongoDbFactory mongoDbFactory;
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2010. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ Copyright (c) 2010. Gridshore
+ ~ Copyright (c) 2010-2012. Axon Framework
+ ~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ Copyright (c) 2010. Gridshore
+ ~ Copyright (c) 2010-2012. Axon Framework
+ ~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ Copyright (c) 2010. Gridshore
+ ~ Copyright (c) 2010-2012. Axon Framework
+ ~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
@@ -1,5 +1,6 @@
#
-# Copyright (c) 2010. Gridshore
+# Copyright (c) 2010-2012. Axon Framework
+#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
View
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ Copyright (c) 2012. Gridshore
+ ~ Copyright (c) 2010-2012. Axon Framework
+ ~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
@@ -35,5 +36,4 @@
</dependency>
</dependencies>
-
</project>
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2011. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -21,6 +22,7 @@
* @author Jettro Coenradie
*/
public class CreatePortfolioCommand {
+
private AggregateIdentifier userIdentifier;
public CreatePortfolioCommand(AggregateIdentifier userIdentifier) {
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2011. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -22,6 +23,7 @@
* @author Jettro Coenradie
*/
public class PortfolioCreatedEvent extends DomainEvent {
+
private AggregateIdentifier userIdentifier;
public PortfolioCreatedEvent(AggregateIdentifier userIdentifier) {
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2011. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -23,6 +24,7 @@
* @author Jettro Coenradie
*/
public class AddItemsToPortfolioCommand {
+
private AggregateIdentifier portfolioIdentifier;
private AggregateIdentifier orderBookIdentifier;
private long amountOfItemsToAdd;
@@ -34,7 +36,8 @@
* @param orderBookIdentifier Identifier of the OrderBook to add items for
* @param amountOfItemsToAdd AMount of items to add
*/
- public AddItemsToPortfolioCommand(AggregateIdentifier portfolioIdentifier, AggregateIdentifier orderBookIdentifier, long amountOfItemsToAdd) {
+ public AddItemsToPortfolioCommand(AggregateIdentifier portfolioIdentifier, AggregateIdentifier orderBookIdentifier,
+ long amountOfItemsToAdd) {
this.portfolioIdentifier = portfolioIdentifier;
this.orderBookIdentifier = orderBookIdentifier;
this.amountOfItemsToAdd = amountOfItemsToAdd;
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2011. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -24,6 +25,7 @@
* @author Jettro Coenradie
*/
public class CancelItemReservationForPortfolioCommand {
+
private AggregateIdentifier portfolioIdentifier;
private AggregateIdentifier orderBookIdentifier;
private AggregateIdentifier transactionIdentifier;
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2011. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -24,6 +25,7 @@
* @author Jettro Coenradie
*/
public class ConfirmItemReservationForPortfolioCommand {
+
private AggregateIdentifier portfolioIdentifier;
private AggregateIdentifier orderBookIdentifier;
private AggregateIdentifier transactionIdentifier;
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2011. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -22,6 +23,7 @@
* @author Jettro Coenradie
*/
public class ItemReservationCancelledForPortfolioEvent extends DomainEvent {
+
private AggregateIdentifier orderBookIdentifier;
private AggregateIdentifier transactionIdentifier;
private long amountOfCancelledItems;
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2011. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -22,6 +23,7 @@
* @author Jettro Coenradie
*/
public class ItemReservationConfirmedForPortfolioEvent extends DomainEvent {
+
private AggregateIdentifier orderBookIdentifier;
private AggregateIdentifier transactionIdentifier;
private long amountOfConfirmedItems;
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2011. Gridshore
+ * Copyright (c) 2010-2012. Axon Framework
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -22,6 +23,7 @@
* @author Jettro Coenradie
*/
public class ItemToReserveNotAvailableInPortfolioEvent extends DomainEvent {
+
private AggregateIdentifier orderBookIdentifier;
private AggregateIdentifier transactionIdentifier;
Oops, something went wrong.

0 comments on commit 0123db1

Please sign in to comment.