From: Roland Haeder Date: Fri, 4 Sep 2015 09:30:40 +0000 (+0200) Subject: Added upcoming remote interface X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=066004ba48314f1d98b088c5de499e92e9974a1f;p=pizzaservice-ejb.git Added upcoming remote interface Signed-off-by:Roland Häder --- diff --git a/.gitignore b/.gitignore index ace7419..1b7e7ce 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,7 @@ /build/ /dist/ /*.properties -/PizzaService-ejb/dist/ \ No newline at end of file +/PizzaService-ejb/build/ +/PizzaService-ejb/dist/ +/PizzaService-ejb/nbproject/private/ +/PizzaService-war/nbproject/private/ \ No newline at end of file diff --git a/PizzaService-ejb/lib/MySQLDriver/mysql-connector-java-5.1.23-bin.jar b/PizzaService-ejb/lib/MySQLDriver/mysql-connector-java-5.1.23-bin.jar new file mode 100644 index 0000000..1f90414 Binary files /dev/null and b/PizzaService-ejb/lib/MySQLDriver/mysql-connector-java-5.1.23-bin.jar differ diff --git a/PizzaService-ejb/lib/cdi-api.jar b/PizzaService-ejb/lib/cdi-api.jar new file mode 100644 index 0000000..1fa239e Binary files /dev/null and b/PizzaService-ejb/lib/cdi-api.jar differ diff --git a/PizzaService-ejb/lib/commons-codec-1.10.jar b/PizzaService-ejb/lib/commons-codec-1.10.jar new file mode 100644 index 0000000..1d7417c Binary files /dev/null and b/PizzaService-ejb/lib/commons-codec-1.10.jar differ diff --git a/PizzaService-ejb/lib/commons-lang3-3.4.jar b/PizzaService-ejb/lib/commons-lang3-3.4.jar new file mode 100644 index 0000000..8ec91d4 Binary files /dev/null and b/PizzaService-ejb/lib/commons-lang3-3.4.jar differ diff --git a/PizzaService-ejb/lib/log4j-web-2.3.jar b/PizzaService-ejb/lib/log4j-web-2.3.jar new file mode 100644 index 0000000..e87ef9a Binary files /dev/null and b/PizzaService-ejb/lib/log4j-web-2.3.jar differ diff --git a/PizzaService-ejb/nbproject/build-impl.xml b/PizzaService-ejb/nbproject/build-impl.xml index 930387c..85601fd 100644 --- a/PizzaService-ejb/nbproject/build-impl.xml +++ b/PizzaService-ejb/nbproject/build-impl.xml @@ -809,11 +809,17 @@ exists or setup the property manually. For example like this: + + + + + + @@ -826,37 +832,57 @@ exists or setup the property manually. For example like this: + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + @@ -1241,6 +1267,7 @@ exists or setup the property manually. For example like this: --> + diff --git a/PizzaService-ejb/nbproject/genfiles.properties b/PizzaService-ejb/nbproject/genfiles.properties index 3d72619..4e22f01 100644 --- a/PizzaService-ejb/nbproject/genfiles.properties +++ b/PizzaService-ejb/nbproject/genfiles.properties @@ -1,8 +1,8 @@ -build.xml.data.CRC32=60d20eb4 +build.xml.data.CRC32=d34e9153 build.xml.script.CRC32=cabe2e92 build.xml.stylesheet.CRC32=5910fda3@1.51.1 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=60d20eb4 -nbproject/build-impl.xml.script.CRC32=2a012160 +nbproject/build-impl.xml.data.CRC32=d34e9153 +nbproject/build-impl.xml.script.CRC32=c8941b11 nbproject/build-impl.xml.stylesheet.CRC32=6096d939@1.51.1 diff --git a/PizzaService-ejb/nbproject/project.properties b/PizzaService-ejb/nbproject/project.properties index 725afd7..dcae3cd 100644 --- a/PizzaService-ejb/nbproject/project.properties +++ b/PizzaService-ejb/nbproject/project.properties @@ -21,32 +21,41 @@ dist.javadoc.dir=${dist.dir}/javadoc endorsed.classpath=\ ${libs.javaee-endorsed-api-6.0.classpath} excludes= -file.reference.jcore.jar=lib/jcore.jar -file.reference.jsfcore.jar=lib/jsfcore.jar -file.reference.jshop.jar=lib/jshop.jar +file.reference.cdi-api.jar=lib\\cdi-api.jar +file.reference.commons-codec-1.10.jar=lib\\commons-codec-1.10.jar +file.reference.commons-lang3-3.4.jar=lib\\commons-lang3-3.4.jar +file.reference.jcore.jar=lib\\jcore.jar +file.reference.jsfcore.jar=lib\\jsfcore.jar +file.reference.jshop.jar=lib\\jshop.jar file.reference.log4j-api-2.3.jar=lib\\log4j-api-2.3.jar file.reference.log4j-core-2.3.jar=lib\\log4j-core-2.3.jar +file.reference.log4j-web-2.3.jar=lib\\log4j-web-2.3.jar includes=** j2ee.compile.on.save=true j2ee.deploy.on.save=true j2ee.platform=1.7 -j2ee.platform.classpath=${j2ee.server.middleware}/mq/lib/jaxm-api.jar:${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/javax.batch-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.inject.jar:${j2ee.server.home}/modules/javax.interceptor-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar +j2ee.platform.classpath=${j2ee.server.middleware}/mq/lib/jaxm-api.jar:${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/javax.batch-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.inject.jar:${j2ee.server.home}/modules/javax.interceptor-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar -j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar -j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar +j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar +j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar j2ee.platform.wsit.classpath= j2ee.server.type=gfv3ee6 jar.compress=false jar.name=PizzaService-ejb.jar jars.in.ejbjar=false javac.classpath=\ + ${reference.jshop.jar}:\ ${reference.PizzaService-lib.jar}:\ + ${file.reference.cdi-api.jar}:\ + ${file.reference.commons-codec-1.10.jar}:\ + ${file.reference.commons-lang3-3.4.jar}:\ ${file.reference.jcore.jar}:\ ${file.reference.jsfcore.jar}:\ ${file.reference.jshop.jar}:\ ${file.reference.log4j-api-2.3.jar}:\ - ${file.reference.log4j-core-2.3.jar} + ${file.reference.log4j-core-2.3.jar}:\ + ${file.reference.log4j-web-2.3.jar} javac.debug=true javac.deprecation=false javac.processorpath=\ @@ -72,7 +81,9 @@ javadoc.windowtitle= meta.inf=${source.root}/conf meta.inf.excludes=sun-cmp-mappings.xml platform.active=default_platform +project.jshop=../../jshop project.PizzaService-lib=../../PizzaService-lib +reference.jshop.jar=${project.jshop}/dist/jshop.jar reference.PizzaService-lib.jar=${project.PizzaService-lib}/dist/PizzaService-lib.jar resource.dir=setup run.test.classpath=\ @@ -82,9 +93,6 @@ run.test.classpath=\ # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): runmain.jvmargs= source.encoding=UTF-8 -source.reference.jcore.jar=../jcore/src/ -source.reference.jsfcore.jar=../jsfcore/src/ -source.reference.jshop.jar=../jshop/src/ source.root=src src.dir=${source.root}/java test.src.dir=test diff --git a/PizzaService-ejb/nbproject/project.xml b/PizzaService-ejb/nbproject/project.xml index 813c622..125251e 100644 --- a/PizzaService-ejb/nbproject/project.xml +++ b/PizzaService-ejb/nbproject/project.xml @@ -5,12 +5,17 @@ PizzaService-ejb 1.6.5 + reference.jshop.jar reference.PizzaService-lib.jar + file.reference.cdi-api.jar + file.reference.commons-codec-1.10.jar + file.reference.commons-lang3-3.4.jar file.reference.jcore.jar file.reference.jsfcore.jar file.reference.jshop.jar file.reference.log4j-api-2.3.jar file.reference.log4j-core-2.3.jar + file.reference.log4j-web-2.3.jar @@ -30,6 +35,14 @@ clean jar + + jshop + jar + + jar + clean + jar + diff --git a/PizzaService-ejb/src/java/org/mxchange/pizzaapplication/beans/pizzaservice/PizzaServiceSessionBean.java b/PizzaService-ejb/src/java/org/mxchange/pizzaapplication/beans/pizzaservice/PizzaServiceSessionBean.java new file mode 100644 index 0000000..6a7a6f2 --- /dev/null +++ b/PizzaService-ejb/src/java/org/mxchange/pizzaapplication/beans/pizzaservice/PizzaServiceSessionBean.java @@ -0,0 +1,123 @@ +/* + * Copyright (C) 2015 Roland Haeder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.pizzaapplication.beans.pizzaservice; + +import java.io.IOException; +import java.lang.reflect.InvocationTargetException; +import java.sql.SQLException; +import java.text.MessageFormat; +import java.util.Deque; +import javax.annotation.PostConstruct; +import javax.ejb.Stateless; +import javax.faces.FacesException; +import javax.inject.Named; +import javax.servlet.ServletException; +import org.mxchange.jcore.exceptions.BadTokenException; +import org.mxchange.jcore.exceptions.CorruptedDatabaseFileException; +import org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException; +import org.mxchange.jshop.beans.BaseFrameworkBean; +import org.mxchange.jshop.beans.shop.ShopSessionBeanRemote; +import org.mxchange.jshop.category.Category; +import org.mxchange.jshop.product.Product; +import org.mxchange.pizzaapplication.application.PizzaApplication; +import org.mxchange.pizzaapplication.application.PizzaServiceApplication; + +/** + * The session bean + * + * @author Roland Haeder + */ +@Named ("shop") +@Stateless +public class PizzaServiceSessionBean extends BaseFrameworkBean implements ShopSessionBeanRemote { + + /** + * Serial number + */ + private static final long serialVersionUID = 578314942948L; + + /** + * Application instance + */ + private final PizzaApplication app; + + /** + * Initializer block + */ + { + // Get new application instance + this.getLogger().debug("INITIALIZER!"); //NOI18N + this.app = new PizzaServiceApplication(); + } + + /** + * Default constructor + */ + public PizzaServiceSessionBean () { + this.getLogger().trace("CALLED!"); //NOI18N + } + + @PostConstruct + public void init () throws FacesException { + // Trace message + this.getLogger().trace(MessageFormat.format("application={0} - CALLED!", this.getApplication())); //NOI18N + + // Must not be null + if (this.getApplication() == null) { + // Abort here + throw new NullPointerException("application is null"); //NOI18N + } + + try { + // Call init method + this.app.init(this.getApplication()); + } catch (final UnsupportedDatabaseBackendException | SQLException | IOException | BadTokenException ex) { + // Continue to throw + throw new FacesException(ex); + } + } + + @Override + public Deque getAvailableProducts () throws ServletException { + try { + return this.app.getAvailableProducts(); + } catch (final IOException | BadTokenException | SQLException | CorruptedDatabaseFileException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) { + // Continue to throw + throw new ServletException(ex); + } + } + + @Override + public Deque getAllProducts () throws ServletException { + try { + return this.app.getAllProducts(); + } catch (final IOException | BadTokenException | SQLException | CorruptedDatabaseFileException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) { + // Continue to throw + throw new ServletException(ex); + } + } + + @Override + public Deque getAllCategories () throws ServletException { + try { + return this.app.getAllCategories(); + } catch (final IOException | BadTokenException | SQLException | CorruptedDatabaseFileException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) { + // Continue to throw + throw new ServletException(ex); + } + } +} diff --git a/PizzaService-war/build.xml b/PizzaService-war/build.xml new file mode 100644 index 0000000..00b4eed --- /dev/null +++ b/PizzaService-war/build.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + Builds, tests, and runs the project PizzaService-war. + + + diff --git a/PizzaService-war/install/install.sql b/PizzaService-war/install/install.sql new file mode 100644 index 0000000..d4bce3b --- /dev/null +++ b/PizzaService-war/install/install.sql @@ -0,0 +1,52 @@ +DROP TABLE IF EXISTS `category`; +CREATE TABLE IF NOT EXISTS `category` ( +`id` bigint(20) unsigned NOT NULL COMMENT 'Primary key', + `title` varchar(255) NOT NULL COMMENT 'Category title', + `parent` bigint(20) unsigned DEFAULT NULL COMMENT 'Parent category', + PRIMARY KEY (`id`), + INDEX `parent` (`parent`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Categories' ; + +DROP TABLE IF EXISTS `contacts`; +CREATE TABLE IF NOT EXISTS `contacts` ( +`id` bigint(20) unsigned NOT NULL COMMENT 'Primary key', + `own_contact` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Whether own contact', + `gender` varchar(10) NOT NULL DEFAULT 'UNKNOWN' COMMENT 'Gender', + `first_name` varchar(100) NOT NULL COMMENT 'First name', + `family_name` varchar(100) NOT NULL COMMENT 'Family name', + `company_name` varchar(255) DEFAULT NULL COMMENT 'Company name', + `street` varchar(255) DEFAULT NULL COMMENT 'Street name', + `house_number` smallint(5) unsigned DEFAULT NULL COMMENT 'House number', + `city` varchar(100) DEFAULT NULL COMMENT 'City name', + `zip_code` smallint(5) unsigned DEFAULT NULL COMMENT 'ZIP code', + `country_code` char(2) DEFAULT NULL COMMENT 'Country code', + `phone_number` varchar(100) DEFAULT NULL COMMENT 'Phone number', + `cellphone_number` varchar(100) DEFAULT NULL COMMENT 'Cellphone number', + `fax_number` varchar(100) DEFAULT NULL COMMENT 'Fax number', + `email_address` varchar(100) DEFAULT NULL COMMENT 'Email addres', + `birthday` date DEFAULT NULL COMMENT 'Birth day', + `comment` tinytext NOT NULL COMMENT 'Comment', + `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Entry created', + `updated` timestamp NULL DEFAULT NULL COMMENT 'Entry updated', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Contacts data' ; + +DROP TABLE IF EXISTS `products`; +CREATE TABLE IF NOT EXISTS `products` ( +`id` bigint(20) unsigned NOT NULL COMMENT 'Primary key', + `category` bigint(20) unsigned DEFAULT NULL COMMENT 'Category id', + `title` varchar(255) NOT NULL COMMENT 'Title of product', + `price` decimal(20,2) unsigned NOT NULL COMMENT 'Product price', + `available` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Whether product is available', + PRIMARY KEY (`id`), + INDEX `category` (`category`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Products' ; + +ALTER TABLE `category` +MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key'; + +ALTER TABLE `contacts` +MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key'; + +ALTER TABLE `products` +MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key'; diff --git a/PizzaService-war/nbproject/ant-deploy.xml b/PizzaService-war/nbproject/ant-deploy.xml new file mode 100644 index 0000000..2d5f877 --- /dev/null +++ b/PizzaService-war/nbproject/ant-deploy.xml @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PizzaService-war/nbproject/build-impl.xml b/PizzaService-war/nbproject/build-impl.xml new file mode 100644 index 0000000..327afc7 --- /dev/null +++ b/PizzaService-war/nbproject/build-impl.xml @@ -0,0 +1,1449 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set build.web.dir + Must set build.generated.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.war + + + + + + + + + +The Java EE server classpath is not correctly set up - server home directory is missing. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Dj2ee.server.home=<app_server_installation_directory> + + +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file) +or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +The libs.CopyLibs.classpath property is not set up. +This property must point to +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part +of NetBeans IDE installation and is usually located at +<netbeans_installation>/java<version>/ant/extra folder. +Either open the project in the IDE and make sure CopyLibs library +exists or setup the property manually. For example like this: + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.jsp.includes + + + + + + + + + + + + + + + + + + + + + + + + + + Must select a file in the IDE or set jsp.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable. + + + Launching ${browse.url} + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PizzaService-war/nbproject/genfiles.properties b/PizzaService-war/nbproject/genfiles.properties new file mode 100644 index 0000000..80e2421 --- /dev/null +++ b/PizzaService-war/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2c0f0a33 +build.xml.script.CRC32=82213886 +build.xml.stylesheet.CRC32=651128d4@1.68.1.1 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=2c0f0a33 +nbproject/build-impl.xml.script.CRC32=8ab119d1 +nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.68.1.1 diff --git a/PizzaService-war/nbproject/project.properties b/PizzaService-war/nbproject/project.properties new file mode 100644 index 0000000..0562182 --- /dev/null +++ b/PizzaService-war/nbproject/project.properties @@ -0,0 +1,92 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=true +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.web.dir}/WEB-INF/classes +build.classes.excludes=**/*.java,**/*.form +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +build.web.dir=${build.dir}/web +build.web.excludes=${build.classes.excludes} +client.urlPart= +compile.jsps=false +conf.dir=${source.root}/conf +debug.classpath=${build.classes.dir}:${javac.classpath} +debug.test.classpath=\ + ${run.test.classpath} +display.browser=true +# Files to be excluded from distribution war +dist.archive.excludes= +dist.dir=dist +dist.ear.war=${dist.dir}/${war.ear.name} +dist.javadoc.dir=${dist.dir}/javadoc +dist.war=${dist.dir}/${war.name} +endorsed.classpath=\ + ${libs.javaee-endorsed-api-6.0.classpath} +excludes= +includes=** +j2ee.compile.on.save=true +j2ee.copy.static.files.on.save=true +j2ee.deploy.on.save=true +j2ee.platform=1.7 +j2ee.platform.classpath=${j2ee.server.middleware}/mq/lib/jaxm-api.jar:${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/javax.batch-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.inject.jar:${j2ee.server.home}/modules/javax.interceptor-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar +j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar +j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar +j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar +j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar +j2ee.platform.wsit.classpath= +j2ee.server.type=gfv3ee6 +jar.compress=false +javac.classpath=\ + ${reference.PizzaService-ejb.dist} +# Space-separated list of extra javac options +javac.compilerargs= +javac.debug=true +javac.deprecation=false +javac.processorpath=\ + ${javac.classpath} +javac.source=1.7 +javac.target=1.7 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.preview=true +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +lib.dir=${web.docbase.dir}/WEB-INF/lib +no.dependencies=false +persistence.xml.dir=${conf.dir} +platform.active=default_platform +project.PizzaService-ejb=../PizzaService-ejb +reference.PizzaService-ejb.dist=${project.PizzaService-ejb}/dist/PizzaService-ejb.jar +resource.dir=setup +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +# Space-separated list of JVM arguments used when running a class with a main method or a unit test +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): +runmain.jvmargs= +source.encoding=UTF-8 +source.root=src +src.dir=${source.root}/java +test.src.dir=test +war.content.additional= +war.ear.name=${war.name} +war.name=PizzaService-war.war +web.docbase.dir=web +webinf.dir=web/WEB-INF diff --git a/PizzaService-war/nbproject/project.xml b/PizzaService-war/nbproject/project.xml new file mode 100644 index 0000000..e574a6f --- /dev/null +++ b/PizzaService-war/nbproject/project.xml @@ -0,0 +1,32 @@ + + + org.netbeans.modules.web.project + + + PizzaService-war + 1.6.5 + + + ${reference.PizzaService-ejb.dist} + + + + + + + + + + + + + PizzaService-ejb + jar + + dist + clean + dist + + + + diff --git a/PizzaService-war/src/conf/MANIFEST.MF b/PizzaService-war/src/conf/MANIFEST.MF new file mode 100644 index 0000000..59499bc --- /dev/null +++ b/PizzaService-war/src/conf/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/PizzaService-war/web/WEB-INF/faces-config.xml b/PizzaService-war/web/WEB-INF/faces-config.xml new file mode 100644 index 0000000..59dad75 --- /dev/null +++ b/PizzaService-war/web/WEB-INF/faces-config.xml @@ -0,0 +1,14 @@ + + + + PrivacyTermsCheckboxValidator + org.mxchange.jsfcore.validator.bool.privacy_terms.PrivacyTermsCheckboxValidator + + + NameValidator + org.mxchange.jsfcore.validator.string.names.NameValidator + + diff --git a/PizzaService-war/web/WEB-INF/glassfish-web.xml b/PizzaService-war/web/WEB-INF/glassfish-web.xml new file mode 100644 index 0000000..730d586 --- /dev/null +++ b/PizzaService-war/web/WEB-INF/glassfish-web.xml @@ -0,0 +1,11 @@ + + + + /PizzaService-war + + + + Keep a copy of the generated servlet class' java code. + + + diff --git a/PizzaService-war/web/WEB-INF/templates.dist/guest_page.xhtml b/PizzaService-war/web/WEB-INF/templates.dist/guest_page.xhtml new file mode 100644 index 0000000..7439d63 --- /dev/null +++ b/PizzaService-war/web/WEB-INF/templates.dist/guest_page.xhtml @@ -0,0 +1,27 @@ + + + + + Your page's title here + + + + + + + Your header above content here + + + + Here goes your content. + + + + + + + diff --git a/PizzaService-war/web/WEB-INF/templates/base.tpl b/PizzaService-war/web/WEB-INF/templates/base.tpl new file mode 100644 index 0000000..d191bf6 --- /dev/null +++ b/PizzaService-war/web/WEB-INF/templates/base.tpl @@ -0,0 +1,45 @@ + + + + + + + + + + + + Pizza-Service - <ui:insert name="title">Default title</ui:insert> + + + +
+ +
+ + + + +
+ diff --git a/PizzaService-war/web/WEB-INF/templates/generic/gender_selection_box.tpl b/PizzaService-war/web/WEB-INF/templates/generic/gender_selection_box.tpl new file mode 100644 index 0000000..a6fff29 --- /dev/null +++ b/PizzaService-war/web/WEB-INF/templates/generic/gender_selection_box.tpl @@ -0,0 +1,13 @@ + + + + + + + diff --git a/PizzaService-war/web/WEB-INF/templates/guest/guest_base.tpl b/PizzaService-war/web/WEB-INF/templates/guest/guest_base.tpl new file mode 100644 index 0000000..5d8856b --- /dev/null +++ b/PizzaService-war/web/WEB-INF/templates/guest/guest_base.tpl @@ -0,0 +1,13 @@ + + + + diff --git a/PizzaService-war/web/WEB-INF/templates/guest/guest_footer.tpl b/PizzaService-war/web/WEB-INF/templates/guest/guest_footer.tpl new file mode 100644 index 0000000..6462748 --- /dev/null +++ b/PizzaService-war/web/WEB-INF/templates/guest/guest_footer.tpl @@ -0,0 +1,16 @@ + + + +
+
diff --git a/PizzaService-war/web/WEB-INF/templates/guest/guest_login_form.tpl b/PizzaService-war/web/WEB-INF/templates/guest/guest_login_form.tpl new file mode 100644 index 0000000..a0a719b --- /dev/null +++ b/PizzaService-war/web/WEB-INF/templates/guest/guest_login_form.tpl @@ -0,0 +1,48 @@ + +
+ +
+
+ Bitte geben Sie Ihre Kundennummer und Passwort ein: +
+ +
+ Bitte Daten eingeben: + +
+
+ +
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+ + +
+
+
+
diff --git a/PizzaService-war/web/WEB-INF/templates/guest/guest_menu.tpl b/PizzaService-war/web/WEB-INF/templates/guest/guest_menu.tpl new file mode 100644 index 0000000..0e4d718 --- /dev/null +++ b/PizzaService-war/web/WEB-INF/templates/guest/guest_menu.tpl @@ -0,0 +1,27 @@ + + + diff --git a/PizzaService-war/web/WEB-INF/tlds/basket.tld b/PizzaService-war/web/WEB-INF/tlds/basket.tld new file mode 100644 index 0000000..234caf2 --- /dev/null +++ b/PizzaService-war/web/WEB-INF/tlds/basket.tld @@ -0,0 +1,20 @@ + + + 1.0 + 1.2 + basket + http://mxchange.org/jshop/tags/basket + + + mini_basket + A mini basket showing latest added item and a link to the full basket web page + org.mxchange.pizzaapplication.tags.basket.MiniBasketTag + + basket + Basket instance, should be the same as the bean + true + true + org.mxchange.jshop.beans.basket.BasketBean + + + diff --git a/PizzaService-war/web/WEB-INF/web.xml b/PizzaService-war/web/WEB-INF/web.xml new file mode 100644 index 0000000..fe867e3 --- /dev/null +++ b/PizzaService-war/web/WEB-INF/web.xml @@ -0,0 +1,89 @@ + + + + Full-qualified back class name, must implement DatabaseBackend interface + database.backend.class + org.mxchange.jcore.database.backend.base64.Base64CsvDatabaseBackend + + + Login name for MySQL database, mostly not root + database.mysql.login + root + + + Password for above login, an empty password can be archived by setting a space + database.mysql.password + root + + + Hostname or IP address for MySQL server + database.mysql.host + localhost + + + Name of MySQL catalog + database.mysql.dbname + test + + + Data path for file-based database backends. This must be a relative path and it will reside 2 levels up from the server's web path. + database.backend.storagepath + data + + + javax.faces.PROJECT_STAGE + Development + + + A servlet filter for setting character encoding to UTF-8 + Utf8ServletFilter + org.mxchange.jsfcore.filter.servlet.utf8.Utf8ServletFilter + + + A servlet filter for logging + Log4jServletFilter + org.apache.logging.log4j.web.Log4jServletFilter + + + + Log4jServletFilter + /* + + + Utf8ServletFilter + /* + + + Faces Servlet + javax.faces.webapp.FacesServlet + 1 + + + Faces Servlet + /faces/* + + + tpl + text/plain + + + + 30 + + + + faces/index.xhtml + + + diff --git a/PizzaService-war/web/admin/category.jsp b/PizzaService-war/web/admin/category.jsp new file mode 100644 index 0000000..8aefece --- /dev/null +++ b/PizzaService-war/web/admin/category.jsp @@ -0,0 +1,141 @@ +<%-- + Document : category + Created on : 05.08.2015, 10:51:14 + Author : Roland Haeder +--%> + +<%--<%@page errorPage="errorHandler.jsp" %>--%> +<%@page import="org.mxchange.jshop.category.Category"%> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + +<% + // TODO: Can be removed later + controller.init(); +%> + + + + + + + + + Pizza-Service - Kategorien + + + + + + + +
+
+

Kategorien administrieren:

+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
+ Auswählen: + + Bezeichnung: + + Elternkategorie: +
+ ${category.categoryId}: + + + ${category.decodedTitle} + + ${controller.generateLinkForParent(category)} +
+
+
+ +
+
+
+
+ Neue Kategorie hinzufügen: +
+ +
+ Bitte alle Felder ausfüllen: + +
+
+ Bezeichnung: +
(z.B. Pizzen)
+
+ +
+ +
+ +
+
+ +
+
+ Elternkategorie: +
+ +
+ +
+ +
+
+
+ + +
+
+
+
+
+ + + + diff --git a/PizzaService-war/web/admin/index.jsp b/PizzaService-war/web/admin/index.jsp new file mode 100644 index 0000000..d6cea8c --- /dev/null +++ b/PizzaService-war/web/admin/index.jsp @@ -0,0 +1,48 @@ +<%-- + Document : index + Created on : 04.08.2015, 10:33:10 + Author : Roland Haeder +--%> + +<%--<%@page errorPage="errorHandler.jsp" %>--%> +<%@page import="java.util.Map"%> +<%@page import="java.util.Iterator"%> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%> +<%@page import="org.mxchange.jshop.product.Product"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + + + Pizza-Service - Administration + + + + + + + +
+
+

Willkommen zur Administration:

+
+ +
+ Einiges kann hier eingestellt werden. +
+
+ + + + diff --git a/PizzaService-war/web/admin/product.jsp b/PizzaService-war/web/admin/product.jsp new file mode 100644 index 0000000..49af00a --- /dev/null +++ b/PizzaService-war/web/admin/product.jsp @@ -0,0 +1,188 @@ +<%-- + Document : product + Created on : 04.08.2015, 10:55:10 + Author : Roland Haeder +--%> + +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%--<%@page errorPage="errorHandler.jsp" %>--%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%> + + + + + +<% + // TODO: Can be removed later + controller.init(); +%> + + + + + + + + + Pizza-Service - Produkte + + + + + + + +
+
+

Diese Produkte wurden eingestellt:

+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ Produktnummer: + + Produktbezeichnung: + + Einzelpreis: + + Kategorie: + + Verfügbar: +
+ ${product.itemId}: + + + ${product.title} + + ${product.price} + + ${controller.getPrintableProduktCategory(product)} + + ${controller.getPrintableProduktAvailability(product)} +
+
+
+ +
+
+
+
+ Neues Produkt hinzufügen: +
+ +
+ Bitte alle Felder ausfüllen: + +
+
+ Produktbezeichnung: +
(z.B. Pizza Italia)
+
+ +
+ +
+ +
+
+ +
+
+ Einzelpreis: +
(z.B. 50.0)
+
+ +
+ +
+ +
+
+ +
+
+ Kategorie: +
+ +
+ +
+ +
+
+ +
+
+ Verfügbar: +
+ +
+ +
+ +
+
+
+ + +
+
+
+ +
+ Hinweise zum Hinzufügen von Produkten: +
    +
  • Beim Preis keine Währungszeichen (wie € usw.) eingeben.
  • +
  • Kommastellen mit Punkt, nicht mit Komma abtrennen.
  • +
  • Keine Tausendertrenner verwenden, auch keine Leerschritte.
  • +
+
+
+
+ + + + diff --git a/PizzaService-war/web/bye.xhtml b/PizzaService-war/web/bye.xhtml new file mode 100644 index 0000000..167737b --- /dev/null +++ b/PizzaService-war/web/bye.xhtml @@ -0,0 +1,49 @@ +<%-- + Document : bye + Created on : 05.08.2015, 10:51:14 + Author : Roland Haeder +--%> + +<%--<%@page errorPage="errorHandler.jsp" %>--%> + + + + + + + Pizza-Service - Sitzung beenden + + + + + + + +
+
+

Situng beenden:

+
+ +
+ <% + synchronized (session) { + if (!session.isNew()) { + // Not new session + session.invalidate(); + out.println("Sitzung beendet."); + } else { + // New session + out.println("Sitzung bereits beendet."); + } + } + %> +
+
+ + + + diff --git a/PizzaService-war/web/customer/login.xhtml b/PizzaService-war/web/customer/login.xhtml new file mode 100644 index 0000000..198e37c --- /dev/null +++ b/PizzaService-war/web/customer/login.xhtml @@ -0,0 +1,38 @@ + + + + + Einloggen + + + + + + + Zum Kundenbereich einloggen + + + +
+ Noch kein Kunde? Einfach beim Bestellen anmelden oder hier anmelden. +
+ +
+
+ +
+ +
+
+ + + + +
+ diff --git a/PizzaService-war/web/customer/lost_passwd.xhtml b/PizzaService-war/web/customer/lost_passwd.xhtml new file mode 100644 index 0000000..0535296 --- /dev/null +++ b/PizzaService-war/web/customer/lost_passwd.xhtml @@ -0,0 +1,74 @@ + + + + + Passwort vergessen + + + + + + + Stellen Sie Ihr Passwort wieder her. + + + +
+ +
+
+ Sie haben Ihr Passwort vergessen? +
+ +
+ Bitte Daten eingeben: + +
+
+ +
+ +
+ +
+ +
+
+ +
+ ... oder ... +
+ +
+
+ +
+ +
+ +
+ +
+
+ +
+ + +
+
+
+
+ + + + +
+ diff --git a/PizzaService-war/web/customer/register.xhtml b/PizzaService-war/web/customer/register.xhtml new file mode 100644 index 0000000..3be507e --- /dev/null +++ b/PizzaService-war/web/customer/register.xhtml @@ -0,0 +1,291 @@ + + + + + Neukunde + + + + + + + Anmelden zum Pizza-Service: + + + +
+ Sie sind bereits Kunde? Dann einloggen. +
+ + +
+
+ Anmelden als Neukunde +
+ +
+ Bitte geben Sie mindestens Name, Anschrift und Telefonnummer ein: +
+ +
+
+ Bitte Ihre Daten eingeben: + +
+
+ +
+ +
+ +
+ +
+
+ +
+
+ +
+ +
+ +
+ +
+
+ +
+
+ +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ +
+
+ +
+
+ +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ +
+
+ +
+
+ +
+ +
+ +
+ +
+
+ +
+
+ +
+ +
+ +
+ +
+
+
+
+ +
+
+ Email-Adresse und Passwort: + +
+
+ +
+ +
+ +
+ +
+
+ +
+
+ +
+ +
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+ +
+ +
+
+ +
+
+ +
+ +
+ +
+ +
+
+ +
+ Die Kundennummer wird Ihnen später vergeben. +
+
+
+ +
+
+ Rechtliches: + +
+
+ + + +
+ +
+ Ja, ich habe die gelesen und + auch verstanden. +
+ +
+
+ +
+
+ + + +
+ +
+ Ja, ich habe die gelesen und + auch verstanden. +
+ +
+
+
+
+ + +
+
+
+ + + + +
+ diff --git a/PizzaService-war/web/errorHandler.xhtml b/PizzaService-war/web/errorHandler.xhtml new file mode 100644 index 0000000..1021261 --- /dev/null +++ b/PizzaService-war/web/errorHandler.xhtml @@ -0,0 +1,52 @@ +<%-- + Document : errorHandler + Created on : 05.08.2015, 12:06:39 + Author : Roland Haeder +--%> + +<%@page import="java.io.PrintWriter"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> + + +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + + + Pizza-Service - Fehler + + + + + + + +
+
+

An error occured:

+
+ +
+ Unfortunately an unexpected error has occurred. Below you can find the error details. +
    +
  • Timestamp:
  • +
  • Action:
  • +
  • Exception:
  • +
  • Message:
  • +
  • Status code:
  • +
  • User agent:
  • +
+
+
+ + + + diff --git a/PizzaService-war/web/form_handler/add_item.jsp b/PizzaService-war/web/form_handler/add_item.jsp new file mode 100644 index 0000000..74d7cf4 --- /dev/null +++ b/PizzaService-war/web/form_handler/add_item.jsp @@ -0,0 +1,48 @@ +<%-- + Document : add_item + Ceated on : Aug 17, 2015, 7:03:38 PM + Author : Roland Haeder +--%> + +<%--<%@page errorPage="errorHandler.jsp" %>--%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%> +<%@page import="org.mxchange.jshop.item.AddableBasketItem"%> + + + + + + +<% + // TODO: Can be removed later + controller.init(); +%> + + + + +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + + + Pizza-Service - Form-Handler + + + +
+

Pizza-Service - Form-Handler

+
+ + + + + + + + diff --git a/PizzaService-war/web/form_handler/admin/do_category.jsp b/PizzaService-war/web/form_handler/admin/do_category.jsp new file mode 100644 index 0000000..6d6d7e0 --- /dev/null +++ b/PizzaService-war/web/form_handler/admin/do_category.jsp @@ -0,0 +1,40 @@ +<%-- + Document : order + Created on : 07.08.2015, 14:58:21 + Author : Roland Haeder +--%> + +<%--<%@page errorPage="errorHandler.jsp" %>--%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%> + + + + + +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + +<% + // Handle forms + controller.doAdminHandleCategoryForms(); +%> + + + + + + + Pizza-Service - Form-Handler + + + +
+

Pizza-Service - Form-Handler

+
+ + + + + + diff --git a/PizzaService-war/web/form_handler/admin/do_product.jsp b/PizzaService-war/web/form_handler/admin/do_product.jsp new file mode 100644 index 0000000..a985dfc --- /dev/null +++ b/PizzaService-war/web/form_handler/admin/do_product.jsp @@ -0,0 +1,40 @@ +<%-- + Document : order + Created on : 07.08.2015, 14:58:21 + Author : Roland Haeder +--%> + +<%--<%@page errorPage="errorHandler.jsp" %>--%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%> + + + + + +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + +<% + // Handle forms + controller.doAdminHandleProductForms(); +%> + + + + + + + Pizza-Service - Form-Handler + + + +
+

Pizza-Service - Form-Handler

+
+ + + + + + diff --git a/PizzaService-war/web/imprint.xhtml b/PizzaService-war/web/imprint.xhtml new file mode 100644 index 0000000..db28ca0 --- /dev/null +++ b/PizzaService-war/web/imprint.xhtml @@ -0,0 +1,27 @@ + + + + Impressum + + + + + + + Impressum + + + + Hier kommt das Impressum hin! + + + + + + + diff --git a/PizzaService-war/web/index.html b/PizzaService-war/web/index.html new file mode 100644 index 0000000..e1d12c2 --- /dev/null +++ b/PizzaService-war/web/index.html @@ -0,0 +1,16 @@ + + + + + TODO supply a title + + + + +
TODO write content
+ + diff --git a/PizzaService-war/web/index.xhtml b/PizzaService-war/web/index.xhtml new file mode 100644 index 0000000..74acebc --- /dev/null +++ b/PizzaService-war/web/index.xhtml @@ -0,0 +1,141 @@ + + + + + + Willkommen! + + + + + + + Eingangsseite (dummy) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Folgendes kann bestellt werden: +
+ Bestellen? + + Anzahl: + + Produkt: + + Einzelpreis: + + Zwischensumme: +
+ + + #{basket.item.amount} + + #{product.title} + + + + + + + + +
+ + + + + + + + + + #{product.title} + + + + + + - +
+
+
+ + + + +
+ diff --git a/PizzaService-war/web/privacy.xhtml b/PizzaService-war/web/privacy.xhtml new file mode 100644 index 0000000..c78c75e --- /dev/null +++ b/PizzaService-war/web/privacy.xhtml @@ -0,0 +1,27 @@ + + + + Datenschutzbestimmungen + + + + + + + Datenschutzbestimmungen + + + + Hier kommen die Datenschutzbestimmungen hin. + + + + + + + diff --git a/PizzaService-war/web/resources/css/cssLayout.css b/PizzaService-war/web/resources/css/cssLayout.css new file mode 100644 index 0000000..57b5048 --- /dev/null +++ b/PizzaService-war/web/resources/css/cssLayout.css @@ -0,0 +1,145 @@ +#top { + position: relative; + background-color: #036fab; + color: #ffffff; + padding: 5px; + margin: 0px 0px 10px 0px; +} + +#footer { + position: relative; + background-color: #c2dfef; + padding: 5px; + margin: 10px 0px 0px 0px; +} + +#left { + float: left; + background-color: #ece3a5; + padding: 5px; + width: 150px; +} + +#right { + float: right; + background-color: #ece3a5; + padding: 5px; + width: 150px; +} + +.center_content { + position: relative; + background-color: #dddddd; + padding: 5px; +} + +.left_content { + background-color: #dddddd; + padding: 5px; + margin-left: 170px; +} + +.right_content { + background-color: #dddddd; + padding: 5px; + margin: 0px 170px 0px 170px; +} + +#top a:link, #top a:visited { + color: #ffffff; + font-weight : bold; + text-decoration: none; +} + +#top a:link:hover, #top a:visited:hover { + color: #000000; + font-weight : bold; + text-decoration : underline; +} + +/** +div { + border: 1px solid #ff0000; +} +/**/ + +table, .table { + margin: 0px; + padding: 0px; +} + +.table { + width: 500px; +} + +.basket_item_table { + width: 600px; +} + +.table_row { + width: 100%; + min-height: 20px; +} + +.table_left { + width: 250px; + min-height: 20px; + float: left; +} + +.table_right { + width: 200px; + min-height: 20px; + float: right; +} + +.table_left25 { + width: 20px; + min-height: 20px; + float: left; +} + +.table_right75 { + width: 430px; + min-height: 20px; + float: right; +} + +.para { + padding: 5px 5px 5px 5px; +} + +.clear { + clear: both; +} + +ul.footer_nav { + text-align: center; + width : 500px; + list-style: none; + margin: 0px; +} + +ul.footer_nav li { + float: left; + width: 100px; +} + +.menu ul { + list-style: none; + padding-left: 5px; +} + +.table_header { + text-align: center; + font-weight: bold; + font-size: 20px; +} + +.table_header_column { + width: 100px; +} + +.table_data_column { + width: 100px; +} diff --git a/PizzaService-war/web/resources/css/default.css b/PizzaService-war/web/resources/css/default.css new file mode 100644 index 0000000..1df064a --- /dev/null +++ b/PizzaService-war/web/resources/css/default.css @@ -0,0 +1,31 @@ +body { + background-color: #ffffff; + font-size: 12px; + font-family: lucida; + color: #000000; + margin: 10px; +} + +h1 { + border-bottom: 1px solid #AFAFAF; + font-size: 16px; + font-weight: bold; + margin: 0px; + padding: 0px; +} + +a:link, a:visited { + color: #045491; + font-weight : bold; + text-decoration: none; +} + +a:link:hover, a:visited:hover { + color: #045491; + font-weight : bold; + text-decoration : underline; +} + +label { + vertical-align: middle; +} diff --git a/PizzaService-war/web/static/admin/admin_category_selection_box.jsp b/PizzaService-war/web/static/admin/admin_category_selection_box.jsp new file mode 100644 index 0000000..e1d2bec --- /dev/null +++ b/PizzaService-war/web/static/admin/admin_category_selection_box.jsp @@ -0,0 +1,16 @@ +<%-- + Document : admin_category_selection_box + Created on : 14.08.2015, 12:51:05 + Author : Roland Haeder +--%> + +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%> + + + diff --git a/PizzaService-war/web/static/admin/admin_footer.jsp b/PizzaService-war/web/static/admin/admin_footer.jsp new file mode 100644 index 0000000..aa6b21b --- /dev/null +++ b/PizzaService-war/web/static/admin/admin_footer.jsp @@ -0,0 +1,16 @@ +<%-- + Document : admin_footer + Created on : 11.08.2015, 12:28:03 + Author : Roland Haeder +--%> + +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + +
diff --git a/PizzaService-war/web/static/admin/admin_menu.jsp b/PizzaService-war/web/static/admin/admin_menu.jsp new file mode 100644 index 0000000..9250428 --- /dev/null +++ b/PizzaService-war/web/static/admin/admin_menu.jsp @@ -0,0 +1,21 @@ +<%-- + Document : admin_menu + Created on : 06.08.2015, 12:41:44 + Author : Roland Haeder +--%> + +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + diff --git a/PizzaService-war/web/static/admin/admin_parent_category_selection_box.jsp b/PizzaService-war/web/static/admin/admin_parent_category_selection_box.jsp new file mode 100644 index 0000000..c00a925 --- /dev/null +++ b/PizzaService-war/web/static/admin/admin_parent_category_selection_box.jsp @@ -0,0 +1,17 @@ +<%-- + Document : admin_parent_category_selection_box + Created on : 14.08.2015, 12:51:05 + Author : Roland Haeder +--%> + +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%> + + + diff --git a/PizzaService-war/web/static/error/direct_call.jsp b/PizzaService-war/web/static/error/direct_call.jsp new file mode 100644 index 0000000..37dab2c --- /dev/null +++ b/PizzaService-war/web/static/error/direct_call.jsp @@ -0,0 +1,14 @@ +<%-- + Document : direct_call + Created on : 11.08.2015, 12:28:03 + Author : Roland Haeder +--%> +
+
+

Bitte nicht direkt aufrufen:

+
+ +
+ Bitte rufen Sie diese Seite nicht direkt auf. +
+
diff --git a/PizzaService-war/web/terms.xhtml b/PizzaService-war/web/terms.xhtml new file mode 100644 index 0000000..e84f73f --- /dev/null +++ b/PizzaService-war/web/terms.xhtml @@ -0,0 +1,27 @@ + + + + Allgemeine Geschäftsbedingungen + + + + + + + Allgemeine Geschäftsbedingungen + + + + Hier kommen die allgemeinen Geschäftsbedingungen hin. + + + + + + + diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml index 9b61e64..2f206fe 100644 --- a/nbproject/build-impl.xml +++ b/nbproject/build-impl.xml @@ -221,8 +221,8 @@ exists or setup the property manually. For example like this:
- + diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties index 56ae079..67a5ece 100644 --- a/nbproject/genfiles.properties +++ b/nbproject/genfiles.properties @@ -1,8 +1,8 @@ -build.xml.data.CRC32=5c81fdbd +build.xml.data.CRC32=f13244bf build.xml.script.CRC32=8e3e9528 build.xml.stylesheet.CRC32=a5d15b16@1.49.1 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=5c81fdbd -nbproject/build-impl.xml.script.CRC32=e91b2e0c +nbproject/build-impl.xml.data.CRC32=f13244bf +nbproject/build-impl.xml.script.CRC32=8247d3f3 nbproject/build-impl.xml.stylesheet.CRC32=5eea63a6@1.49.1 diff --git a/nbproject/project.properties b/nbproject/project.properties index 1c6b8dc..f9a92a4 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -13,17 +13,17 @@ j2ee.appclient.mainclass.args=${j2ee.appclient.tool.args} j2ee.compile.on.save=true j2ee.deploy.on.save=true j2ee.platform=1.7 -j2ee.platform.classpath=${j2ee.server.middleware}/mq/lib/jaxm-api.jar:${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/javax.batch-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.inject.jar:${j2ee.server.home}/modules/javax.interceptor-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar +j2ee.platform.classpath=${j2ee.server.middleware}/mq/lib/jaxm-api.jar:${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/javax.batch-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.inject.jar:${j2ee.server.home}/modules/javax.interceptor-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar -j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar -j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar +j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar +j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar j2ee.platform.wsit.classpath= j2ee.server.type=gfv3ee6 jar.compress=false jar.content.additional=\ - ${reference.PizzaService-ejb.dist-ear}:\ - ${reference.PizzaService-war.dist-ear} + ${reference.PizzaService-war.dist-ear}:\ + ${reference.PizzaService-ejb.dist-ear} jar.name=PizzaService.ear javac.debug=true javac.deprecation=false @@ -33,7 +33,7 @@ meta.inf=src/conf no.dependencies=false platform.active=default_platform project.PizzaService-ejb=PizzaService-ejb -project.PizzaService-war=../PizzaService-war +project.PizzaService-war=PizzaService-war reference.PizzaService-ejb.dist-ear=${project.PizzaService-ejb}/dist/PizzaService-ejb.jar reference.PizzaService-war.dist-ear=${project.PizzaService-war}/dist/PizzaService-war.war resource.dir=setup diff --git a/nbproject/project.xml b/nbproject/project.xml index b13c3e0..da8c8e3 100644 --- a/nbproject/project.xml +++ b/nbproject/project.xml @@ -8,11 +8,11 @@ - ${reference.PizzaService-ejb.dist-ear} + ${reference.PizzaService-war.dist-ear} / - ${reference.PizzaService-war.dist-ear} + ${reference.PizzaService-ejb.dist-ear} / diff --git a/src/java/log4j2.xml b/src/java/log4j2.xml new file mode 100644 index 0000000..f2db261 --- /dev/null +++ b/src/java/log4j2.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties new file mode 100644 index 0000000..f13ba23 --- /dev/null +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -0,0 +1,23 @@ +# Copyright (C) 2015 Roland Haeder +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +BaseContact.gender.unknown.text=Unbekannt +BaseContact.gender.male.text=Herr +BaseContact.gender.female.text=Frau +BaseContact.gender.company.text=Firma +MiniBasketTag.basket_is_empty=Der Warenkorb ist leer. +MiniBasketTag.last_item=Zuletzt hinzugefügt: {0} +MiniBasketTag.additional_items=Es befinden sich noch {0} weitere Produkte im Warenkorb. +MiniBasketTag.to_basket=Zum Warenkorb +MiniBasketTag.header=Warenkorb diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties new file mode 100644 index 0000000..1dc4212 --- /dev/null +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -0,0 +1,23 @@ +# Copyright (C) 2015 Roland Haeder +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +BaseContact.gender.unknown.text=Unknown +BaseContact.gender.male.text=Mr. +BaseContact.gender.female.text=Mrs. +BaseContact.gender.company.text=Company +MiniBasketTag.basket_is_empty=The basket is empty. +MiniBasketTag.last_item=Last added item: {0} +MiniBasketTag.additional_items=There are {0} items in the basket. +MiniBasketTag.to_basket=To basket +MiniBasketTag.header=Basket