Skip to content
Browse files

- Added forgotten files

  • Loading branch information...
1 parent 22acc8a commit 50dfb2ec50f7b68138880fef5fa98aacfcd2c679 @alexbiehl alexbiehl committed
View
2 src/main/java/org/fhw/asta/kasse/client/widget/print/PrintWidgetImpl.java
@@ -1,7 +1,5 @@
package org.fhw.asta.kasse.client.widget.print;
-import org.fhw.asta.kasse.client.common.HTMLTableBuilder;
-
import com.google.gwt.core.client.GWT;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.uibinder.client.UiBinder;
View
31 src/main/java/org/fhw/asta/kasse/server/inject/modules/ServiceModule.java
@@ -0,0 +1,31 @@
+package org.fhw.asta.kasse.server.inject.modules;
+
+import org.fhw.asta.kasse.server.common.UserLdapNameProvider;
+import org.fhw.asta.kasse.server.service.ArticleServiceImpl;
+import org.fhw.asta.kasse.server.service.BillOrderServiceImpl;
+import org.fhw.asta.kasse.server.service.CheckoutServiceImpl;
+import org.fhw.asta.kasse.server.service.LetterHeadServiceImpl;
+import org.fhw.asta.kasse.server.service.UserServiceImpl;
+import org.fhw.asta.kasse.shared.service.article.ArticleService;
+import org.fhw.asta.kasse.shared.service.billorder.BillOrderService;
+import org.fhw.asta.kasse.shared.service.checkout.CheckoutService;
+import org.fhw.asta.kasse.shared.service.letterhead.LetterHeadService;
+import org.fhw.asta.kasse.shared.service.user.UserService;
+
+import com.google.inject.AbstractModule;
+
+public class ServiceModule extends AbstractModule {
+
+ @Override
+ protected void configure() {
+
+ bind(UserLdapNameProvider.class);
+
+ bind(ArticleService.class).to(ArticleServiceImpl.class);
+ bind(BillOrderService.class).to(BillOrderServiceImpl.class);
+ bind(CheckoutService.class).to(CheckoutServiceImpl.class);
+ bind(LetterHeadService.class).to(LetterHeadServiceImpl.class);
+ bind(UserService.class).to(UserServiceImpl.class);
+ }
+
+}
View
45 src/main/java/org/fhw/asta/kasse/server/service/ArticleServiceImpl.java
@@ -0,0 +1,45 @@
+package org.fhw.asta.kasse.server.service;
+
+import java.util.List;
+
+import org.fhw.asta.kasse.server.dao.ArticleDao;
+import org.fhw.asta.kasse.shared.model.Article;
+import org.fhw.asta.kasse.shared.model.Category;
+import org.fhw.asta.kasse.shared.service.article.ArticleService;
+
+import com.google.common.base.Optional;
+import com.google.inject.Inject;
+import com.google.inject.Singleton;
+
+@Singleton
+public class ArticleServiceImpl implements ArticleService {
+
+ @Inject
+ private ArticleDao dao;
+
+ @Override
+ public List<Article> getArticles() {
+ return this.dao.getAllArticles();
+ }
+
+ @Override
+ public List<Article> getArticleComponents(Article article) {
+ return this.dao.getArticleComponents(article);
+ }
+
+ @Override
+ public Optional<Article> getArticleById(String id) {
+ return this.dao.getArticleById(id);
+ }
+
+ @Override
+ public List<Category> getCategories() {
+ return this.dao.getAllCategories();
+ }
+
+ @Override
+ public List<Article> getArticlesByCategory(String id) {
+ return this.dao.getArticlesByCategory(id);
+ }
+
+}
View
19 src/main/java/org/fhw/asta/kasse/server/servlet/ArticleServiceServlet.java
@@ -0,0 +1,19 @@
+package org.fhw.asta.kasse.server.servlet;
+
+import org.fhw.asta.kasse.shared.service.article.ArticleService;
+
+import com.google.gwt.user.server.rpc.RemoteServiceServlet;
+import com.google.inject.Inject;
+import com.google.inject.Singleton;
+
+@Singleton
+public class ArticleServiceServlet extends RemoteServiceServlet {
+
+ private static final long serialVersionUID = 1L;
+
+ @Inject
+ public ArticleServiceServlet(ArticleService articleService) {
+ super(articleService);
+ }
+
+}
View
19 src/main/java/org/fhw/asta/kasse/server/servlet/BillOrderServiceServlet.java
@@ -0,0 +1,19 @@
+package org.fhw.asta.kasse.server.servlet;
+
+import org.fhw.asta.kasse.shared.service.billorder.BillOrderService;
+
+import com.google.gwt.user.server.rpc.RemoteServiceServlet;
+import com.google.inject.Inject;
+import com.google.inject.Singleton;
+
+@Singleton
+public class BillOrderServiceServlet extends RemoteServiceServlet {
+
+ private static final long serialVersionUID = 1L;
+
+ @Inject
+ public BillOrderServiceServlet(BillOrderService billorderService) {
+ super(billorderService);
+ }
+
+}
View
19 src/main/java/org/fhw/asta/kasse/server/servlet/CheckoutServiceServlet.java
@@ -0,0 +1,19 @@
+package org.fhw.asta.kasse.server.servlet;
+
+import org.fhw.asta.kasse.shared.service.checkout.CheckoutService;
+
+import com.google.gwt.user.server.rpc.RemoteServiceServlet;
+import com.google.inject.Inject;
+import com.google.inject.Singleton;
+
+@Singleton
+public class CheckoutServiceServlet extends RemoteServiceServlet {
+
+ private static final long serialVersionUID = 1L;
+
+ @Inject
+ public CheckoutServiceServlet(CheckoutService checkoutService) {
+ super(checkoutService);
+ }
+
+}
View
19 src/main/java/org/fhw/asta/kasse/server/servlet/LetterheadServiceServlet.java
@@ -0,0 +1,19 @@
+package org.fhw.asta.kasse.server.servlet;
+
+import org.fhw.asta.kasse.shared.service.letterhead.LetterHeadService;
+
+import com.google.gwt.user.server.rpc.RemoteServiceServlet;
+import com.google.inject.Inject;
+import com.google.inject.Singleton;
+
+@Singleton
+public class LetterheadServiceServlet extends RemoteServiceServlet {
+
+ private static final long serialVersionUID = 1L;
+
+ @Inject
+ public LetterheadServiceServlet(LetterHeadService lettheadService) {
+ super(lettheadService);
+ }
+
+}
View
19 src/main/java/org/fhw/asta/kasse/server/servlet/UserServiceServlet.java
@@ -0,0 +1,19 @@
+package org.fhw.asta.kasse.server.servlet;
+
+import org.fhw.asta.kasse.shared.service.user.UserService;
+
+import com.google.gwt.user.server.rpc.RemoteServiceServlet;
+import com.google.inject.Inject;
+import com.google.inject.Singleton;
+
+@Singleton
+public class UserServiceServlet extends RemoteServiceServlet {
+
+ private static final long serialVersionUID = 1L;
+
+ @Inject
+ public UserServiceServlet(UserService userService) {
+ super(userService);
+ }
+
+}
View
52 src/main/java/org/fhw/asta/kasse/shared/model/BillOrderData.java
@@ -0,0 +1,52 @@
+package org.fhw.asta.kasse.shared.model;
+
+import java.io.Serializable;
+import java.util.List;
+
+import org.fhw.asta.kasse.shared.basket.BasketItem;
+
+public class BillOrderData implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ private BillOrder billOrder;
+
+ private List<BasketItem> basket;
+
+ private Person issuer;
+
+ private Person receipient;
+
+ public BillOrder getBillOrder() {
+ return billOrder;
+ }
+
+ public void setBillOrder(BillOrder billOrder) {
+ this.billOrder = billOrder;
+ }
+
+ public List<BasketItem> getBasket() {
+ return basket;
+ }
+
+ public void setBasket(List<BasketItem> basket) {
+ this.basket = basket;
+ }
+
+ public Person getIssuer() {
+ return issuer;
+ }
+
+ public void setIssuer(Person issuer) {
+ this.issuer = issuer;
+ }
+
+ public Person getReceipient() {
+ return receipient;
+ }
+
+ public void setReceipient(Person receipient) {
+ this.receipient = receipient;
+ }
+
+}

0 comments on commit 50dfb2e

Please sign in to comment.
Something went wrong with that request. Please try again.