diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 3ec765a7e1cfc9c0062ac73a56b522ff9ca35742..5d8473f3c99d82be71dd4d53d7a9660e142cab0c 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,8 +3,10 @@ <component name="ChangeListManager"> <list default="true" id="5f36371d-de5c-44ce-a12c-613727d95355" name="Default" comment=""> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/test/java/org/s4s/dao/impl/LoginControl_Test.java" afterPath="$PROJECT_DIR$/src/test/java/org/s4s/dao/impl/LoginControl_Test.java" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/test/java/org/s4s/dao/impl/RegistrationControl_Test.java" afterPath="$PROJECT_DIR$/src/test/java/org/s4s/dao/impl/RegistrationControl_Test.java" /> + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/shopInShop.iml" afterPath="$PROJECT_DIR$/shopInShop.iml" /> + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/java/org/s4s/dao/RegistrationDAO.java" afterPath="$PROJECT_DIR$/src/main/java/org/s4s/dao/RegistrationDAO.java" /> + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/java/org/s4s/gui/views/RegistrierungView.java" afterPath="$PROJECT_DIR$/src/main/java/org/s4s/gui/views/RegistrierungView.java" /> + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/java/org/s4s/process/control/RegistrationControl.java" afterPath="$PROJECT_DIR$/src/main/java/org/s4s/process/control/RegistrationControl.java" /> </list> <ignored path="shopInShop.iws" /> <ignored path=".idea/workspace.xml" /> @@ -26,18 +28,65 @@ </component> <component name="FileEditorManager"> <leaf SIDE_TABS_SIZE_LIMIT_KEY="600"> - <file leaf-file-name="RegistrationControl_Test.java" pinned="false" current-in-tab="true"> + <file leaf-file-name="RegistrationControl_Test.java" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/src/test/java/org/s4s/dao/impl/RegistrationControl_Test.java"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="270"> - <caret line="18" column="9" lean-forward="false" selection-start-line="18" selection-start-column="9" selection-end-line="18" selection-end-column="9" /> + <state relative-caret-position="240"> + <caret line="18" column="5" lean-forward="false" selection-start-line="18" selection-start-column="5" selection-end-line="18" selection-end-column="5" /> + <folding /> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="RegistrationControl.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/process/control/RegistrationControl.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="247"> + <caret line="59" column="48" lean-forward="true" selection-start-line="59" selection-start-column="48" selection-end-line="59" selection-end-column="48" /> + <folding /> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="RegistrationDAO.java" pinned="false" current-in-tab="true"> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/RegistrationDAO.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="360"> + <caret line="31" column="62" lean-forward="true" selection-start-line="31" selection-start-column="62" selection-end-line="31" selection-end-column="62" /> + <folding> + <marker date="1497885607000" expanded="true" signature="773:1103" ph="INSERT INTO \"ERR\".\"user\"... " /> + <marker date="1497885607000" expanded="true" signature="1498:1538" ph="SELECT MAX(u... " /> + <marker date="1497885607000" expanded="true" signature="1498:1539" ph="SELECT MAX(u... " /> + <marker date="1497885607000" expanded="true" signature="1498:1540" ph="SELECT MAX(u... " /> + <marker date="1497885607000" expanded="true" signature="1498:1545" ph="SELECT MAX(u... " /> + </folding> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="JDBCConnectionTest.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/test/java/org/s4s/services/db/JDBCConnectionTest.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="360"> + <caret line="24" column="66" lean-forward="true" selection-start-line="24" selection-start-column="66" selection-end-line="24" selection-end-column="66" /> <folding> <element signature="imports" expanded="true" /> + <marker date="1496932737000" expanded="true" signature="585:784" ph="SELECT u.\"b... user" /> </folding> </state> </provider> </entry> </file> + <file leaf-file-name="RegistrierungView.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/gui/views/RegistrierungView.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="417"> + <caret line="53" column="46" lean-forward="false" selection-start-line="53" selection-start-column="46" selection-end-line="53" selection-end-column="46" /> + <folding /> + </state> + </provider> + </entry> + </file> </leaf> </component> <component name="FileTemplateManagerImpl"> @@ -106,7 +155,6 @@ <option value="$PROJECT_DIR$/src/main/java/org/s4s/gui/views/ShopErstellung.java" /> <option value="$PROJECT_DIR$/src/main/java/org/s4s/gui/views/ShoperstellungsBestätigung.java" /> <option value="$PROJECT_DIR$/src/main/java/org/s4s/gui/views/RegistrierungsBestaetigung.java" /> - <option value="$PROJECT_DIR$/src/main/java/org/s4s/gui/views/RegistrierungView.java" /> <option value="$PROJECT_DIR$/src/main/java/org/s4s/gui/views/TemplateView.java" /> <option value="$PROJECT_DIR$/src/test/java/org/s4s/matchers/UtilityMatchers.java" /> <option value="$PROJECT_DIR$/src/test/java/org/s4s/services/db/JDBCConnectionTest2.java" /> @@ -114,6 +162,9 @@ <option value="$PROJECT_DIR$/src/main/java/org/s4s/dao/impl/LoginControl.java" /> <option value="$PROJECT_DIR$/src/test/java/org/s4s/dao/impl/LoginControl_Test.java" /> <option value="$PROJECT_DIR$/src/test/java/org/s4s/dao/impl/RegistrationControl_Test.java" /> + <option value="$PROJECT_DIR$/src/main/java/org/s4s/gui/views/RegistrierungView.java" /> + <option value="$PROJECT_DIR$/src/main/java/org/s4s/process/control/RegistrationControl.java" /> + <option value="$PROJECT_DIR$/src/main/java/org/s4s/dao/RegistrationDAO.java" /> </list> </option> </component> @@ -216,7 +267,6 @@ </navigator> <panes> <pane id="Scratches" /> - <pane id="Scope" /> <pane id="ProjectPane"> <subPane> <PATH> @@ -225,17 +275,7 @@ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> </PATH_ELEMENT> <PATH_ELEMENT> - <option name="myItemId" value="External Libraries" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" /> - </PATH_ELEMENT> - </PATH> - <PATH> - <PATH_ELEMENT> - <option name="myItemId" value="shopInShop" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> + <option name="myItemId" value="s4s" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> </PATH> @@ -245,7 +285,7 @@ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> </PATH_ELEMENT> <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> + <option name="myItemId" value="s4s" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> <PATH_ELEMENT> @@ -268,10 +308,6 @@ <option name="myItemId" value="services" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="util" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> </PATH> <PATH> <PATH_ELEMENT> @@ -279,7 +315,7 @@ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> </PATH_ELEMENT> <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> + <option name="myItemId" value="s4s" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> <PATH_ELEMENT> @@ -312,40 +348,10 @@ <option name="myItemId" value="shopInShop" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="src" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="test" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="java" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> <PATH_ELEMENT> <option name="myItemId" value="s4s" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="dto" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> - </PATH> - <PATH> - <PATH_ELEMENT> - <option name="myItemId" value="shopInShop" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> <PATH_ELEMENT> <option name="myItemId" value="src" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> @@ -362,10 +368,6 @@ <option name="myItemId" value="s4s" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="matchers" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> </PATH> <PATH> <PATH_ELEMENT> @@ -373,7 +375,7 @@ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> </PATH_ELEMENT> <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> + <option name="myItemId" value="s4s" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> <PATH_ELEMENT> @@ -403,7 +405,7 @@ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> </PATH_ELEMENT> <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> + <option name="myItemId" value="s4s" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> <PATH_ELEMENT> @@ -421,7 +423,7 @@ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> </PATH_ELEMENT> <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> + <option name="myItemId" value="s4s" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> <PATH_ELEMENT> @@ -443,7 +445,7 @@ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> </PATH_ELEMENT> <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> + <option name="myItemId" value="s4s" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> <PATH_ELEMENT> @@ -469,7 +471,7 @@ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> </PATH_ELEMENT> <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> + <option name="myItemId" value="s4s" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> <PATH_ELEMENT> @@ -489,7 +491,7 @@ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> <PATH_ELEMENT> - <option name="myItemId" value="dto" /> + <option name="myItemId" value="control" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> </PATH> @@ -499,7 +501,7 @@ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> </PATH_ELEMENT> <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> + <option name="myItemId" value="s4s" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> <PATH_ELEMENT> @@ -529,7 +531,7 @@ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> </PATH_ELEMENT> <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> + <option name="myItemId" value="s4s" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> <PATH_ELEMENT> @@ -562,70 +564,10 @@ <option name="myItemId" value="shopInShop" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="src" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="main" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="java" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="s4s" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="exceptions" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> - </PATH> - <PATH> - <PATH_ELEMENT> - <option name="myItemId" value="shopInShop" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="src" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="main" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="java" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> <PATH_ELEMENT> <option name="myItemId" value="s4s" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="dao" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> - </PATH> - <PATH> - <PATH_ELEMENT> - <option name="myItemId" value="shopInShop" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> - </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="Projekt (s4s)" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> <PATH_ELEMENT> <option name="myItemId" value="src" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> @@ -646,14 +588,11 @@ <option name="myItemId" value="dao" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="impl" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> - </PATH_ELEMENT> </PATH> </subPane> </pane> <pane id="PackagesPane" /> + <pane id="Scope" /> </panes> </component> <component name="PropertiesComponent"> @@ -691,7 +630,7 @@ </list> </option> </component> - <component name="RunManager" selected="JUnit.RegistrationControl_Test"> + <component name="RunManager" selected="Maven.shopInShop [jetty:run]"> <configuration default="false" name="shopInShop [jetty:run]" type="MavenRunConfiguration" factoryName="Maven" temporary="true"> <MavenSettings> <option name="myGeneralSettings" /> @@ -879,65 +818,6 @@ <envs /> <method /> </configuration> - <configuration default="true" type="ArquillianJUnit" factoryName="" nameIsGenerated="true"> - <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> - <module name="" /> - <option name="arquillianRunConfiguration"> - <value> - <option name="containerStateName" value="" /> - </value> - </option> - <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" /> - <option name="ALTERNATIVE_JRE_PATH" /> - <option name="PACKAGE_NAME" /> - <option name="MAIN_CLASS_NAME" /> - <option name="METHOD_NAME" /> - <option name="TEST_OBJECT" value="class" /> - <option name="VM_PARAMETERS" /> - <option name="PARAMETERS" /> - <option name="WORKING_DIRECTORY" /> - <option name="ENV_VARIABLES" /> - <option name="PASS_PARENT_ENVS" value="true" /> - <option name="TEST_SEARCH_SCOPE"> - <value defaultName="singleModule" /> - </option> - <envs /> - <patterns /> - <method /> - </configuration> - <configuration default="true" type="ArquillianTestNG" factoryName=""> - <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> - <module name="" /> - <option name="arquillianRunConfiguration"> - <value> - <option name="containerStateName" value="" /> - </value> - </option> - <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" /> - <option name="ALTERNATIVE_JRE_PATH" /> - <option name="SUITE_NAME" /> - <option name="PACKAGE_NAME" /> - <option name="MAIN_CLASS_NAME" /> - <option name="METHOD_NAME" /> - <option name="GROUP_NAME" /> - <option name="TEST_OBJECT" value="CLASS" /> - <option name="VM_PARAMETERS" /> - <option name="PARAMETERS" /> - <option name="WORKING_DIRECTORY" /> - <option name="OUTPUT_DIRECTORY" /> - <option name="ANNOTATION_TYPE" /> - <option name="ENV_VARIABLES" /> - <option name="PASS_PARENT_ENVS" value="true" /> - <option name="TEST_SEARCH_SCOPE"> - <value defaultName="singleModule" /> - </option> - <option name="USE_DEFAULT_REPORTERS" value="false" /> - <option name="PROPERTIES_FILE" /> - <envs /> - <properties /> - <listeners /> - <method /> - </configuration> <configuration default="true" type="Cold Fusion runner description" factoryName="Cold Fusion" custom_browser="" web_path=""> <method /> </configuration> @@ -1025,16 +905,6 @@ </ExternalSystemSettings> <method /> </configuration> - <configuration default="true" type="GrailsRunConfigurationType" factoryName="Grails"> - <setting name="vmparams" value="" /> - <setting name="cmdLine" value="run-app" /> - <setting name="passParentEnv" value="true" /> - <setting name="launchBrowser" value="true" /> - <setting name="launchBrowserUrl" value="" /> - <setting name="depsClasspath" value="false" /> - <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> - <method /> - </configuration> <configuration default="true" type="JUnit" factoryName="JUnit"> <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> <module name="" /> @@ -1148,12 +1018,6 @@ <option name="PORT" value="5005" /> <method /> </configuration> - <configuration default="true" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot"> - <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> - <module name="" /> - <envs /> - <method /> - </configuration> <configuration default="true" type="TestNG" factoryName="TestNG"> <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> <module name="" /> @@ -1198,12 +1062,6 @@ <envs /> <method /> </configuration> - <configuration default="true" type="osgi.bnd.run" factoryName="Run Launcher"> - <method /> - </configuration> - <configuration default="true" type="osgi.bnd.run" factoryName="Test Launcher (JUnit)"> - <method /> - </configuration> <configuration default="false" name="Test" type="JUnit" factoryName="JUnit"> <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="emma" /> <module name="shopInShop" /> @@ -1234,9 +1092,9 @@ </list> <recent_temporary> <list size="4"> - <item index="0" class="java.lang.String" itemvalue="JUnit.RegistrationControl_Test" /> - <item index="1" class="java.lang.String" itemvalue="JUnit.LoginControl_Test.login_Test" /> - <item index="2" class="java.lang.String" itemvalue="Maven.shopInShop [jetty:run]" /> + <item index="0" class="java.lang.String" itemvalue="Maven.shopInShop [jetty:run]" /> + <item index="1" class="java.lang.String" itemvalue="JUnit.RegistrationControl_Test" /> + <item index="2" class="java.lang.String" itemvalue="JUnit.LoginControl_Test.login_Test" /> <item index="3" class="java.lang.String" itemvalue="JUnit.LoginControl_Test" /> </list> </recent_temporary> @@ -1290,6 +1148,7 @@ <workItem from="1496505763657" duration="2984000" /> <workItem from="1496680428314" duration="1810000" /> <workItem from="1496742832611" duration="6144000" /> + <workItem from="1497882792519" duration="2838000" /> </task> <servers /> </component> @@ -1326,36 +1185,35 @@ </history-entry> </component> <component name="TimeTrackingManager"> - <option name="totallyTimeSpent" value="57438000" /> + <option name="totallyTimeSpent" value="60276000" /> </component> <component name="ToolWindowManager"> <frame x="0" y="0" width="1920" height="1080" extended-state="0" /> <editor active="true" /> <layout> <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> <window_info id="Nl-Palette" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> + <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="Java Enterprise" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" /> + <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.23891892" sideWeight="0.27291667" order="7" side_tool="true" content_ui="tabs" /> <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.1745435" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24588577" sideWeight="0.49583334" order="2" side_tool="false" content_ui="tabs" /> + <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Properties" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> + <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.18385416" sideWeight="0.49272728" order="0" side_tool="false" content_ui="combo" /> + <window_info id="Web" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="true" content_ui="tabs" /> <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> - <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.26918918" sideWeight="0.7270833" order="3" side_tool="false" content_ui="tabs" /> - <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> - <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32970297" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> - <window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> - <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> - <window_info id="Java Enterprise" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" /> - <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> - <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> - <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24653466" sideWeight="0.49583334" order="2" side_tool="false" content_ui="tabs" /> - <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> - <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.18423855" sideWeight="0.49272728" order="0" side_tool="false" content_ui="combo" /> - <window_info id="Web" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="true" content_ui="tabs" /> <window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> + <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.26918918" sideWeight="0.7270833" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.18093699" sideWeight="0.5072727" order="2" side_tool="true" content_ui="tabs" /> <window_info id="PlantUML" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> @@ -1364,6 +1222,7 @@ <window_info id="com.vaadin.designer.intellij.palette.toolWindow" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3296875" sideWeight="0.35135135" order="6" side_tool="false" content_ui="tabs" /> <window_info id="com.vaadin.designer.intellij.outline.toolWindow" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3296875" sideWeight="0.6486486" order="6" side_tool="true" content_ui="tabs" /> <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> + <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32970297" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> </layout> @@ -1419,34 +1278,6 @@ <option name="serverPort" value="52118" /> </component> <component name="editorHistoryManager"> - <entry file="jar://$MAVEN_REPOSITORY$/com/vaadin/vaadin-server/7.7.8/vaadin-server-7.7.8.jar!/com/vaadin/navigator/Navigator.class"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="171"> - <caret line="209" column="0" lean-forward="false" selection-start-line="209" selection-start-column="0" selection-end-line="209" selection-end-column="0" /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/src/main/webapp/META-INF/context.xml"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="0"> - <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/gui/views/ArtikeldetailsView.java"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="330"> - <caret line="21" column="4" lean-forward="false" selection-start-line="21" selection-start-column="4" selection-end-line="21" selection-end-column="4" /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/gui/views/BenutzerkontoView.java"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="198"> - <caret line="15" column="51" lean-forward="false" selection-start-line="15" selection-start-column="51" selection-end-line="15" selection-end-column="51" /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/gui/views/CheckoutView.java"> <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="198"> @@ -1471,13 +1302,7 @@ <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/View/InitView.java" /> <entry file="jar://$MAVEN_REPOSITORY$/com/vaadin/vaadin-server/7.7.8/vaadin-server-7.7.8-sources.jar!/com/vaadin/ui/Button.java" /> <entry file="jar://$MAVEN_REPOSITORY$/com/vaadin/vaadin-server/7.7.8/vaadin-server-7.7.8-sources.jar!/com/vaadin/ui/themes/BaseTheme.java" /> - <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/gui/views/ShopView.java"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="902"> - <caret line="46" column="64" lean-forward="false" selection-start-line="46" selection-start-column="64" selection-end-line="46" selection-end-column="64" /> - </state> - </provider> - </entry> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/gui/views/ShopView.java" /> <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/gui/views/PasswortView.java"> <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="242"> @@ -1545,7 +1370,6 @@ <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="345"> <caret line="32" column="73" lean-forward="false" selection-start-line="32" selection-start-column="73" selection-end-line="32" selection-end-column="73" /> - <folding /> </state> </provider> </entry> @@ -1553,7 +1377,6 @@ <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="1125"> <caret line="100" column="41" lean-forward="false" selection-start-line="100" selection-start-column="41" selection-end-line="100" selection-end-column="41" /> - <folding /> </state> </provider> </entry> @@ -1561,7 +1384,6 @@ <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="495"> <caret line="47" column="9" lean-forward="false" selection-start-line="47" selection-start-column="9" selection-end-line="47" selection-end-column="9" /> - <folding /> </state> </provider> </entry> @@ -1591,10 +1413,6 @@ <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="480"> <caret line="32" column="5" lean-forward="true" selection-start-line="32" selection-start-column="5" selection-end-line="32" selection-end-column="5" /> - <folding> - <element signature="imports" expanded="false" /> - <element signature="method#buildFooter#0;class#TemplateView#0" expanded="false" /> - </folding> </state> </provider> </entry> @@ -1610,7 +1428,6 @@ <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="150"> <caret line="21" column="13" lean-forward="false" selection-start-line="21" selection-start-column="13" selection-end-line="21" selection-end-column="13" /> - <folding /> </state> </provider> </entry> @@ -1618,9 +1435,6 @@ <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="303"> <caret line="32" column="54" lean-forward="false" selection-start-line="32" selection-start-column="54" selection-end-line="32" selection-end-column="54" /> - <folding> - <element signature="imports" expanded="false" /> - </folding> </state> </provider> </entry> @@ -1636,7 +1450,6 @@ <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="-351"> <caret line="14" column="13" lean-forward="false" selection-start-line="14" selection-start-column="13" selection-end-line="14" selection-end-column="13" /> - <folding /> </state> </provider> </entry> @@ -1644,9 +1457,6 @@ <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="135"> <caret line="13" column="34" lean-forward="true" selection-start-line="13" selection-start-column="34" selection-end-line="13" selection-end-column="34" /> - <folding> - <element signature="imports" expanded="false" /> - </folding> </state> </provider> </entry> @@ -1654,23 +1464,14 @@ <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="105"> <caret line="11" column="13" lean-forward="false" selection-start-line="11" selection-start-column="13" selection-end-line="11" selection-end-column="13" /> - <folding /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/impl/LogoutControl.java"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="120"> - <caret line="13" column="3" lean-forward="true" selection-start-line="13" selection-start-column="3" selection-end-line="13" selection-end-column="3" /> - <folding /> </state> </provider> </entry> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/impl/LogoutControl.java" /> <entry file="file://$PROJECT_DIR$/src/test/java/org/s4s/matchers/UtilityMatchers.java"> <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="349"> <caret line="37" column="56" lean-forward="false" selection-start-line="37" selection-start-column="56" selection-end-line="37" selection-end-column="56" /> - <folding /> </state> </provider> </entry> @@ -1678,22 +1479,10 @@ <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="225"> <caret line="27" column="21" lean-forward="false" selection-start-line="27" selection-start-column="0" selection-end-line="28" selection-end-column="0" /> - <folding /> </state> </provider> </entry> <entry file="file://$PROJECT_DIR$/src/test/java/org/s4s/services/db/JDBCConnectionTest2.java" /> - <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/ShopDAO.java"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="-86"> - <caret line="19" column="13" lean-forward="false" selection-start-line="19" selection-start-column="13" selection-end-line="19" selection-end-column="13" /> - <folding> - <marker date="1495648014000" expanded="true" signature="976:1106" ph="SELECT *FROM... shopWHERE" /> - <marker date="1495648014000" expanded="true" signature="1614:1809" ph="INSERT INTO ERR.shop... " /> - </folding> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/services/db/JDBCConnection.java"> <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="195"> @@ -1704,22 +1493,6 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/gui/views/RegistrierungView.java"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="492"> - <caret line="122" column="38" lean-forward="true" selection-start-line="122" selection-start-column="38" selection-end-line="122" selection-end-column="120" /> - <folding /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/KundenDAO.java"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="90"> - <caret line="12" column="2" lean-forward="true" selection-start-line="12" selection-start-column="2" selection-end-line="12" selection-end-column="2" /> - <folding /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/gui/views/LoginView.java"> <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="199"> @@ -1728,14 +1501,7 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/impl/ProductSearch.java"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="130"> - <caret line="21" column="13" lean-forward="false" selection-start-line="21" selection-start-column="13" selection-end-line="21" selection-end-column="13" /> - <folding /> - </state> - </provider> - </entry> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/impl/ProductSearch.java" /> <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/exceptions/NoSuchUserOrPassword.java"> <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="105"> @@ -1748,7 +1514,6 @@ <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="135"> <caret line="15" column="13" lean-forward="false" selection-start-line="15" selection-start-column="13" selection-end-line="15" selection-end-column="13" /> - <folding /> </state> </provider> </entry> @@ -1756,7 +1521,6 @@ <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="105"> <caret line="11" column="13" lean-forward="false" selection-start-line="11" selection-start-column="13" selection-end-line="11" selection-end-column="13" /> - <folding /> </state> </provider> </entry> @@ -1770,42 +1534,85 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/impl/LoginControl.java"> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/impl/LoginControl.java" /> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/impl/RegistrationControl.java" /> + <entry file="file://$PROJECT_DIR$/src/test/java/org/s4s/dao/impl/RegistrationControl_Test.java"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="112"> - <caret line="23" column="0" lean-forward="true" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" /> + <state relative-caret-position="240"> + <caret line="18" column="5" lean-forward="false" selection-start-line="18" selection-start-column="5" selection-end-line="18" selection-end-column="5" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/gui/views/RegistrierungView.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="417"> + <caret line="53" column="46" lean-forward="false" selection-start-line="53" selection-start-column="46" selection-end-line="53" selection-end-column="46" /> <folding /> </state> </provider> </entry> <entry file="file://$PROJECT_DIR$/src/test/java/org/s4s/services/db/JDBCConnectionTest.java"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="315"> - <caret line="21" column="8" lean-forward="false" selection-start-line="21" selection-start-column="8" selection-end-line="21" selection-end-column="8" /> + <state relative-caret-position="360"> + <caret line="24" column="66" lean-forward="true" selection-start-line="24" selection-start-column="66" selection-end-line="24" selection-end-column="66" /> <folding> <element signature="imports" expanded="true" /> - <marker date="1496682108000" expanded="true" signature="585:784" ph="SELECT u.\"b... user" /> + <marker date="1496932737000" expanded="true" signature="585:784" ph="SELECT u.\"b... user" /> </folding> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/impl/RegistrationControl.java"> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/KundenDAO.java"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="-281"> - <caret line="36" column="0" lean-forward="false" selection-start-line="36" selection-start-column="0" selection-end-line="36" selection-end-column="0" /> - <folding> - <element signature="imports" expanded="true" /> - <marker date="1496503262000" expanded="true" signature="1616:1646" ph="INSERT INTO \"ERR\".\"user\"... " /> - </folding> + <state relative-caret-position="150"> + <caret line="12" column="2" lean-forward="true" selection-start-line="12" selection-start-column="2" selection-end-line="12" selection-end-column="2" /> + <folding /> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/test/java/org/s4s/dao/impl/RegistrationControl_Test.java"> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/ProductDAO.java"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="270"> - <caret line="18" column="9" lean-forward="false" selection-start-line="18" selection-start-column="9" selection-end-line="18" selection-end-column="9" /> + <state relative-caret-position="120"> + <caret line="10" column="17" lean-forward="false" selection-start-line="10" selection-start-column="17" selection-end-line="10" selection-end-column="17" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/ShopDAO.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="120"> + <caret line="8" column="17" lean-forward="false" selection-start-line="8" selection-start-column="17" selection-end-line="8" selection-end-column="17" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/ShopSearchDAO.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="120"> + <caret line="10" column="17" lean-forward="false" selection-start-line="10" selection-start-column="17" selection-end-line="10" selection-end-column="17" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/process/control/RegistrationControl.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="247"> + <caret line="59" column="48" lean-forward="true" selection-start-line="59" selection-start-column="48" selection-end-line="59" selection-end-column="48" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/main/java/org/s4s/dao/RegistrationDAO.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="360"> + <caret line="31" column="62" lean-forward="true" selection-start-line="31" selection-start-column="62" selection-end-line="31" selection-end-column="62" /> <folding> - <element signature="imports" expanded="true" /> + <marker date="1497885607000" expanded="true" signature="773:1103" ph="INSERT INTO \"ERR\".\"user\"... " /> + <marker date="1497885607000" expanded="true" signature="1498:1538" ph="SELECT MAX(u... " /> + <marker date="1497885607000" expanded="true" signature="1498:1539" ph="SELECT MAX(u... " /> + <marker date="1497885607000" expanded="true" signature="1498:1540" ph="SELECT MAX(u... " /> + <marker date="1497885607000" expanded="true" signature="1498:1545" ph="SELECT MAX(u... " /> </folding> </state> </provider> diff --git a/shopInShop.iml b/shopInShop.iml index d4366aed47cf76c10cc35c42cd26b9945fd605af..57f2f5dadaf654d03873482e8787056d2b2c4afa 100644 --- a/shopInShop.iml +++ b/shopInShop.iml @@ -11,9 +11,6 @@ </facet> <facet type="web" name="Web"> <configuration> - <descriptors> - <deploymentDescriptor name="context.xml" url="file://$MODULE_DIR$/src/main/webapp/META-INF/context.xml" /> - </descriptors> <webroots> <root url="file://$MODULE_DIR$/src/main/webapp" relative="/" /> </webroots> diff --git a/src/main/java/org/s4s/dao/RegistrationDAO.java b/src/main/java/org/s4s/dao/RegistrationDAO.java index bcd68b290c25e7f426e95a6e34b6196e04fc969b..51444683d0c18acecc544d2daea29eec4210133b 100644 --- a/src/main/java/org/s4s/dao/RegistrationDAO.java +++ b/src/main/java/org/s4s/dao/RegistrationDAO.java @@ -1,8 +1,3 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ package org.s4s.dao; import java.sql.*; @@ -15,24 +10,39 @@ import org.s4s.services.db.JDBCConnection; * @author Simon */ public class RegistrationDAO extends AbstractDatabaseClass { - + Statement st; String sql_update; - - public void addUser(String benutzer, String nachname, String vorname, java.util.Date gebDate, int fBereich, String email, String emailwdh, String passwort, String passwortWdh) { + String sql_query; + Integer result; + + public void addUser(int userID, String benutzer, String nachname, String vorname, java.util.Date gebDate, int fBereich, String email, String emailwdh, String passwort, String passwortWdh) { try { - sql_update = "INSERT INTO \"ERR\".\"user\"(benutzername, nachname, vorname, geburtsdatum, fachbreichid, email, passwort)" + - "VALUES(\'" + benutzer + "\', \'" + nachname + "\', \'" + vorname + "\', \'" + gebDate + "\', \'" + fBereich + "\', \'" + email + "\', \'" + passwort + "\')"; - + sql_update = "INSERT INTO \"ERR\".\"user\"(userID, benutzername, nachname, vorname, geburtsdatum, fachbreichid, email, passwort)" + + "VALUES(\'" + 7262573 + "\', \'" + benutzer + "\', \'" + 1 + "\', \'" + nachname + "\', \'" + vorname + "\', \'" + gebDate + "\', \'" + fBereich + "\', \'" + email + "\', \'" + passwort + "\')"; + int exe = JDBCConnection.getInstance().getStatement().executeUpdate(sql_update); - if(exe < 0) { + if (exe < 0) { throw new WrongInputException("Wrong Input!"); } - + } catch (Exception ex) { ex.printStackTrace(); System.out.println("Exception occur: " + ex); } - + } + + public int getUserID() { + sql_query = "SELECT MAX(userID)\" FROM \"ERR\".\"user\" u \"\n"; + try { + ResultSet set = JDBCConnection.getInstance().getStatement().executeQuery(sql_query); + result = set.getInt("userID"); + } catch (SQLException e) { + e.printStackTrace(); + System.out.println("Exception occur: " + e); + } + return result + 1; + } + } diff --git a/src/main/java/org/s4s/gui/views/RegistrierungView.java b/src/main/java/org/s4s/gui/views/RegistrierungView.java index 5692e7b593511c96083555c9eb5b8e31f9f4dc48..625fc1bd689015de95701d18d2ab95c658251530 100644 --- a/src/main/java/org/s4s/gui/views/RegistrierungView.java +++ b/src/main/java/org/s4s/gui/views/RegistrierungView.java @@ -1,8 +1,3 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ package org.s4s.gui.views; import com.vaadin.navigator.View; @@ -46,7 +41,7 @@ public class RegistrierungView extends TemplateView implements View { content.addComponent(benutzername); DateField bday = new DateField("Geburtstag"); - bday.setDateFormat("YYYY-MM-DD"); + bday.setDateFormat("yyyy-MM-dd"); content.addComponent(bday); TextField nachnameTxt = new TextField("Nachname:"); diff --git a/src/main/java/org/s4s/process/control/RegistrationControl.java b/src/main/java/org/s4s/process/control/RegistrationControl.java index dfa49a1c6d4396589d498859fa4bed6f88ea2a37..6aa6a7d7cd4f6ebab3969d2702258c23ad79cb55 100644 --- a/src/main/java/org/s4s/process/control/RegistrationControl.java +++ b/src/main/java/org/s4s/process/control/RegistrationControl.java @@ -1,8 +1,3 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ package org.s4s.process.control; import org.apache.commons.validator.routines.EmailValidator; @@ -56,7 +51,7 @@ public class RegistrationControl { w.printStackTrace(); System.out.println("Exception occur: " + w.getMessage()); } - regDAO.addUser(benutzer, nachname, vorname, gebDate, fBereich, email, emailwdh, passwort, passwortWdh); + regDAO.addUser(regDAO.getUserID(), benutzer, nachname, vorname, gebDate, fBereich, email, emailwdh, passwort, passwortWdh); } public static boolean nameValidator(String toValidate) { diff --git a/src/test/java/org/s4s/dao/impl/RegistrationControl_Test.java b/src/test/java/org/s4s/dao/impl/RegistrationControl_Test.java index 9efe9a6125a514e8e16c31573b6d4018978ecbfd..c709fae0d5a5e184ff6162887e4adb5895257846 100644 --- a/src/test/java/org/s4s/dao/impl/RegistrationControl_Test.java +++ b/src/test/java/org/s4s/dao/impl/RegistrationControl_Test.java @@ -15,6 +15,7 @@ public class RegistrationControl_Test { public void nameValidator_Test() { assertTrue(RegistrationControl.nameValidator("Uerdingen")); assertFalse(RegistrationControl.nameValidator("fs2df3")); + } //unfinished