diff --git a/shoppingCart/.classpath b/shoppingCart/.classpath
new file mode 100644
index 00000000..0a1daddd
--- /dev/null
+++ b/shoppingCart/.classpath
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/shoppingCart/.metadata/.lock b/shoppingCart/.metadata/.lock
new file mode 100644
index 00000000..e69de29b
diff --git a/shoppingCart/.metadata/.log b/shoppingCart/.metadata/.log
new file mode 100644
index 00000000..f29b9e7d
--- /dev/null
+++ b/shoppingCart/.metadata/.log
@@ -0,0 +1,19 @@
+!SESSION 2015-01-27 20:13:54.779 -----------------------------------------------
+eclipse.buildId=4.4.1.M20140925-0400
+java.version=1.7.0_72
+java.vendor=Oracle Corporation
+BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=es_AR
+Framework arguments: -product org.eclipse.epp.package.standard.product
+Command-line arguments: -data /home/meli/shoppingCart -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.standard.product
+
+!ENTRY org.eclipse.m2e.logback.configuration 2 0 2015-01-27 20:14:12.020
+!MESSAGE Exception while setting up logging:org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
+!STACK 0
+java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
+ at org.eclipse.m2e.logback.configuration.LogHelper.logJavaProperties(LogHelper.java:26)
+ at org.eclipse.m2e.logback.configuration.LogPlugin.loadConfiguration(LogPlugin.java:189)
+ at org.eclipse.m2e.logback.configuration.LogPlugin.configureLogback(LogPlugin.java:144)
+ at org.eclipse.m2e.logback.configuration.LogPlugin.access$2(LogPlugin.java:107)
+ at org.eclipse.m2e.logback.configuration.LogPlugin$1.run(LogPlugin.java:62)
+ at java.util.TimerThread.mainLoop(Timer.java:555)
+ at java.util.TimerThread.run(Timer.java:505)
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version b/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version
new file mode 100644
index 00000000..25cb955b
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index b/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index
new file mode 100644
index 00000000..7d448fd1
Binary files /dev/null and b/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index differ
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version b/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version
new file mode 100644
index 00000000..6b2aaa76
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.root/2.tree b/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.root/2.tree
new file mode 100644
index 00000000..8a1fc9ec
Binary files /dev/null and b/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.root/2.tree differ
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources b/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources
new file mode 100644
index 00000000..a6d45155
Binary files /dev/null and b/shoppingCart/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources differ
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 00000000..dffc6b51
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+version=1
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..69ddd086
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.codeComplete.visibilityCheck=enabled
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.launching.prefs b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.launching.prefs
new file mode 100644
index 00000000..1b518e23
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.launching.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.launching.PREF_VM_XML=\n\n\n\n\n\n
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 00000000..8188d8e6
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,14 @@
+content_assist_number_of_computers=13
+content_assist_proposals_background=255,255,255
+content_assist_proposals_foreground=49,55,57
+eclipse.preferences.version=1
+fontPropagated=true
+org.eclipse.jdt.ui.editor.tab.width=
+org.eclipse.jdt.ui.formatterprofiles.version=12
+org.eclipse.jdt.ui.javadoclocations.migrated=true
+org.eclipse.jface.textfont=1|Monospace|10.0|0|GTK|1|;
+proposalOrderMigrated=true
+spelling_locale_initialized=true
+tabWidthPropagated=true
+useAnnotationsPrefPage=true
+useQuickDiffPrefPage=true
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs
new file mode 100644
index 00000000..67b1d96c
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.m2e.discovery.pref.projects=
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs
new file mode 100644
index 00000000..61f3bb8b
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+overviewRuler_migration=migrated_3.1
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs
new file mode 100644
index 00000000..39a94457
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs
@@ -0,0 +1,5 @@
+PROBLEMS_FILTERS_MIGRATE=true
+eclipse.preferences.version=1
+platformState=1413759378342
+quickStart=false
+tipsAndTricks=true
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
new file mode 100644
index 00000000..08076f23
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+showIntro=false
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs
new file mode 100644
index 00000000..51ad84b5
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs
@@ -0,0 +1,2 @@
+PLUGINS_NOT_ACTIVATED_ON_STARTUP=org.eclipse.m2e.discovery;
+eclipse.preferences.version=1
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi b/shoppingCart/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
new file mode 100644
index 00000000..8994320f
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
@@ -0,0 +1,1807 @@
+
+
+
+ activeSchemeId:org.eclipse.ui.defaultAcceleratorConfiguration
+ ModelMigrationProcessor.001
+
+
+
+
+
+ topLevel
+
+
+
+
+ persp.actionSet:org.eclipse.ui.cheatsheets.actionSet
+ persp.actionSet:org.eclipse.search.searchActionSet
+ persp.actionSet:org.eclipse.ui.edit.text.actionSet.annotationNavigation
+ persp.actionSet:org.eclipse.ui.edit.text.actionSet.navigation
+ persp.actionSet:org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo
+ persp.actionSet:org.eclipse.ui.externaltools.ExternalToolsSet
+ persp.actionSet:org.eclipse.ui.actionSet.keyBindings
+ persp.actionSet:org.eclipse.ui.actionSet.openFiles
+ persp.actionSet:org.eclipse.debug.ui.launchActionSet
+ persp.actionSet:org.eclipse.jdt.ui.JavaActionSet
+ persp.actionSet:org.eclipse.jdt.ui.JavaElementCreationActionSet
+ persp.actionSet:org.eclipse.ui.NavigateActionSet
+ persp.viewSC:org.eclipse.jdt.ui.PackageExplorer
+ persp.viewSC:org.eclipse.jdt.ui.TypeHierarchy
+ persp.viewSC:org.eclipse.jdt.ui.SourceView
+ persp.viewSC:org.eclipse.jdt.ui.JavadocView
+ persp.viewSC:org.eclipse.search.ui.views.SearchView
+ persp.viewSC:org.eclipse.ui.console.ConsoleView
+ persp.viewSC:org.eclipse.ui.views.ContentOutline
+ persp.viewSC:org.eclipse.ui.views.ProblemView
+ persp.viewSC:org.eclipse.ui.views.ResourceNavigator
+ persp.viewSC:org.eclipse.ui.views.TaskList
+ persp.viewSC:org.eclipse.ui.views.ProgressView
+ persp.viewSC:org.eclipse.ui.navigator.ProjectExplorer
+ persp.viewSC:org.eclipse.ui.texteditor.TemplatesView
+ persp.viewSC:org.eclipse.pde.runtime.LogView
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.JavaProjectWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewPackageCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewClassCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewEnumCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewAnnotationCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewSnippetFileCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewJavaWorkingSetWizard
+ persp.newWizSC:org.eclipse.ui.wizards.new.folder
+ persp.newWizSC:org.eclipse.ui.wizards.new.file
+ persp.newWizSC:org.eclipse.ui.editors.wizards.UntitledTextFileWizard
+ persp.perspSC:org.eclipse.jdt.ui.JavaBrowsingPerspective
+ persp.perspSC:org.eclipse.debug.ui.DebugPerspective
+ persp.viewSC:org.eclipse.ant.ui.views.AntView
+ persp.showIn:org.eclipse.egit.ui.RepositoriesView
+ persp.actionSet:org.eclipse.debug.ui.breakpointActionSet
+ persp.actionSet:org.eclipse.jdt.debug.ui.JDTDebugActionSet
+ persp.newWizSC:org.eclipse.jdt.junit.wizards.NewTestCaseCreationWizard
+ persp.actionSet:org.eclipse.jdt.junit.JUnitActionSet
+ persp.showIn:org.eclipse.jdt.ui.PackageExplorer
+ persp.showIn:org.eclipse.team.ui.GenericHistoryView
+ persp.showIn:org.eclipse.ui.views.ResourceNavigator
+ persp.showIn:org.eclipse.ui.navigator.ProjectExplorer
+
+
+
+ newtablook
+ org.eclipse.e4.primaryNavigationStack
+ active
+ noFocus
+
+
+
+
+
+
+
+ newtablook
+
+
+
+
+
+
+
+ newtablook
+ org.eclipse.e4.secondaryNavigationStack
+
+
+
+
+
+
+ newtablook
+ org.eclipse.e4.secondaryDataStack
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ View
+ categoryTag:Help
+
+
+ View
+ categoryTag:General
+
+ ViewMenu
+ menuContribution:menu
+
+
+
+
+ View
+ categoryTag:Help
+
+
+
+ newtablook
+ org.eclipse.e4.primaryDataStack
+ EditorStack
+ noFocus
+
+
+ Editor
+ org.eclipse.jdt.ui.CompilationUnitEditor
+ removeOnHide
+
+
+
+
+
+ View
+ categoryTag:Java
+ active
+ activeOnClose
+
+ ViewMenu
+ menuContribution:menu
+
+
+
+
+ View
+ categoryTag:Java
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+
+ View
+ categoryTag:General
+
+ ViewMenu
+ menuContribution:menu
+
+
+
+
+ View
+ categoryTag:Java
+
+
+ View
+ categoryTag:Java
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+ ViewMenu
+ menuContribution:menu
+
+
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:Ant
+
+
+ View
+ categoryTag:Git
+
+
+ View
+ categoryTag:Java
+
+
+
+ toolbarSeparator
+
+
+
+ Draggable
+
+
+
+ toolbarSeparator
+
+
+
+ Draggable
+
+
+ Draggable
+
+
+ Draggable
+
+
+ Draggable
+
+
+ toolbarSeparator
+
+
+
+ Draggable
+
+
+
+ toolbarSeparator
+
+
+
+ toolbarSeparator
+
+
+
+ Draggable
+
+
+ stretch
+ SHOW_RESTORE_MENU
+
+
+ Draggable
+ HIDEABLE
+ SHOW_RESTORE_MENU
+
+
+
+
+ stretch
+
+
+ Draggable
+
+
+ Draggable
+
+
+
+
+ TrimStack
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ platform:gtk
+
+
+
+ platform:gtk
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Editor
+
+
+ View
+ categoryTag:Ant
+
+
+ View
+ categoryTag:Debug
+
+
+ View
+ categoryTag:Debug
+
+
+ View
+ categoryTag:Debug
+
+
+ View
+ categoryTag:Debug
+
+
+ View
+ categoryTag:Debug
+
+
+ View
+ categoryTag:Debug
+
+
+ View
+ categoryTag:Debug
+
+
+ View
+ categoryTag:Git
+
+
+ View
+ categoryTag:Git
+
+
+ View
+ categoryTag:Git
+
+
+ View
+ categoryTag:Git
+
+
+ View
+ categoryTag:Git
+
+
+ View
+ categoryTag:Help
+
+
+ View
+ categoryTag:Debug
+
+
+ View
+ categoryTag:Java
+
+
+ View
+ categoryTag:Java
+
+
+ View
+ categoryTag:Java
+
+
+ View
+ categoryTag:Java Browsing
+
+
+ View
+ categoryTag:Java Browsing
+
+
+ View
+ categoryTag:Java Browsing
+
+
+ View
+ categoryTag:Java Browsing
+
+
+ View
+ categoryTag:Java
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:Java
+
+
+ View
+ categoryTag:Java
+
+
+ View
+ categoryTag:API Tools
+
+
+ View
+ categoryTag:Plug-in Development
+
+
+ View
+ categoryTag:Plug-in Development
+
+
+ View
+ categoryTag:Plug-in Development
+
+
+ View
+ categoryTag:Plug-in Development
+
+
+ View
+ categoryTag:Plug-in Development
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:CVS
+
+
+ View
+ categoryTag:CVS
+
+
+ View
+ categoryTag:Team
+
+
+ View
+ categoryTag:Team
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:Help
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:Maven
+
+
+ View
+ categoryTag:Maven
+
+
+ View
+ categoryTag:XML
+
+
+ View
+ categoryTag:XML
+
+
+
+ glue
+ move_after:PerspectiveSpacer
+ SHOW_RESTORE_MENU
+
+
+ move_after:Spacer Glue
+ HIDEABLE
+ SHOW_RESTORE_MENU
+
+
+ glue
+ move_after:SearchField
+ SHOW_RESTORE_MENU
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.equinox.p2.ui/dialog_settings.xml b/shoppingCart/.metadata/.plugins/org.eclipse.equinox.p2.ui/dialog_settings.xml
new file mode 100644
index 00000000..fede4a99
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.equinox.p2.ui/dialog_settings.xml
@@ -0,0 +1,10 @@
+
+
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache
new file mode 100644
index 00000000..593f4708
Binary files /dev/null and b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache differ
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache
new file mode 100644
index 00000000..593f4708
Binary files /dev/null and b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache differ
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps
new file mode 100644
index 00000000..593f4708
Binary files /dev/null and b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps differ
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/invalidArchivesCache b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/invalidArchivesCache
new file mode 100644
index 00000000..593f4708
Binary files /dev/null and b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/invalidArchivesCache differ
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/javaLikeNames.txt b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/javaLikeNames.txt
new file mode 100644
index 00000000..85863977
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/javaLikeNames.txt
@@ -0,0 +1 @@
+java
\ No newline at end of file
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache
new file mode 100644
index 00000000..593f4708
Binary files /dev/null and b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache differ
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat
new file mode 100644
index 00000000..1d18df52
Binary files /dev/null and b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat differ
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.jdt.launching/.install.xml b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.launching/.install.xml
new file mode 100644
index 00000000..5bc60fa1
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.launching/.install.xml
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.jdt.launching/libraryInfos.xml b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.launching/libraryInfos.xml
new file mode 100644
index 00000000..c82a1fb0
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.launching/libraryInfos.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml
new file mode 100644
index 00000000..a4ee3cbc
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml
@@ -0,0 +1,2 @@
+
+
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml
new file mode 100644
index 00000000..9e390f50
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml
@@ -0,0 +1,2 @@
+
+
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml
new file mode 100644
index 00000000..1ad28540
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml
@@ -0,0 +1,16 @@
+
+
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log b/shoppingCart/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log
new file mode 100644
index 00000000..e69de29b
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.5.0.20140606-0033.xml b/shoppingCart/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.5.0.20140606-0033.xml
new file mode 100644
index 00000000..e33758c3
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.5.0.20140606-0033.xml
@@ -0,0 +1,43 @@
+
+
+
+ %date [%thread] %-5level %logger{35} - %msg%n
+
+
+ OFF
+
+
+
+
+ ${org.eclipse.m2e.log.dir}/0.log
+
+ ${org.eclipse.m2e.log.dir}/%i.log
+ 1
+ 10
+
+
+ 100MB
+
+
+ %date [%thread] %-5level %logger{35} - %msg%n
+
+
+
+
+
+ WARN
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.pde.core/.cache/clean-cache.properties b/shoppingCart/.metadata/.plugins/org.eclipse.pde.core/.cache/clean-cache.properties
new file mode 100644
index 00000000..95f32a23
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.pde.core/.cache/clean-cache.properties
@@ -0,0 +1,2 @@
+#Cached timestamps
+#Tue Jan 27 20:15:34 GMT 2015
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml b/shoppingCart/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml
new file mode 100644
index 00000000..61d9c5da
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml
@@ -0,0 +1,13 @@
+
+
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml b/shoppingCart/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml
new file mode 100644
index 00000000..fbbd92df
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml
@@ -0,0 +1,19 @@
+
+
diff --git a/shoppingCart/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml b/shoppingCart/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml
new file mode 100644
index 00000000..95d00ce4
--- /dev/null
+++ b/shoppingCart/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/shoppingCart/.metadata/version.ini b/shoppingCart/.metadata/version.ini
new file mode 100644
index 00000000..746963c3
--- /dev/null
+++ b/shoppingCart/.metadata/version.ini
@@ -0,0 +1,3 @@
+#Tue Jan 27 20:14:11 GMT 2015
+org.eclipse.core.runtime=2
+org.eclipse.platform=4.4.0.v20140925-0400
diff --git a/shoppingCart/.project b/shoppingCart/.project
new file mode 100644
index 00000000..c6a74f33
--- /dev/null
+++ b/shoppingCart/.project
@@ -0,0 +1,23 @@
+
+
+ shoppingCart
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
diff --git a/shoppingCart/.settings/org.eclipse.core.resources.prefs b/shoppingCart/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 00000000..f9fe3459
--- /dev/null
+++ b/shoppingCart/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/test/java=UTF-8
+encoding/=UTF-8
diff --git a/shoppingCart/.settings/org.eclipse.jdt.core.prefs b/shoppingCart/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..abec6ca3
--- /dev/null
+++ b/shoppingCart/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,5 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/shoppingCart/.settings/org.eclipse.m2e.core.prefs b/shoppingCart/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 00000000..f897a7f1
--- /dev/null
+++ b/shoppingCart/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/shoppingCart/pom.xml b/shoppingCart/pom.xml
new file mode 100644
index 00000000..a6b1bcde
--- /dev/null
+++ b/shoppingCart/pom.xml
@@ -0,0 +1,26 @@
+
+
+ 4.0.0
+
+ com.mycompany.app
+ app
+ 1.0-SNAPSHOT
+
+ com.melina.app
+ shoppingCart
+ 1.0-SNAPSHOT
+ shoppingCart
+ http://maven.apache.org
+
+ UTF-8
+
+
+
+ junit
+ junit
+ 3.8.1
+ test
+
+
+
diff --git a/shoppingCart/src/main/java/com/melina/app/App.java b/shoppingCart/src/main/java/com/melina/app/App.java
new file mode 100644
index 00000000..3b4216d1
--- /dev/null
+++ b/shoppingCart/src/main/java/com/melina/app/App.java
@@ -0,0 +1,18 @@
+package com.melina.app;
+
+/**
+ * Shopping Cart
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Shopping Cart " );
+ IShoppingCart cart= new ShoppingCartProxy(new Cart());
+ cart.addProduct("Mochila", "300");
+ cart.addProduct("Zapatillas", "450");
+ System.out.println(cart.showProducts());
+ System.out.println(cart.getTotalCost());
+ }
+}
diff --git a/shoppingCart/src/main/java/com/melina/app/Cart.java b/shoppingCart/src/main/java/com/melina/app/Cart.java
new file mode 100644
index 00000000..a1291c68
--- /dev/null
+++ b/shoppingCart/src/main/java/com/melina/app/Cart.java
@@ -0,0 +1,37 @@
+package com.melina.app;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class Cart implements IShoppingCart{
+ private List- items;
+
+ public Cart(){
+ items=new ArrayList
- ();
+ }
+ public void addProduct(String name, String cost) {
+ Item e=new Item(name, cost);
+ items.add(e);
+ }
+
+ public void removeProduct(String name) {
+ items.remove(items.indexOf(name));
+ }
+
+ public String showProducts() {
+ String products=new String();
+ for (Item i: items){
+ products=products+i.getName()+" ";
+ }
+ return products;
+ }
+
+ public double getTotalCost() {
+ double total=0;
+ for (Item i: items){
+ total+=i.getCost();
+ }
+ return total;
+ }
+
+}
diff --git a/shoppingCart/src/main/java/com/melina/app/IShoppingCart.java b/shoppingCart/src/main/java/com/melina/app/IShoppingCart.java
new file mode 100644
index 00000000..756dc40f
--- /dev/null
+++ b/shoppingCart/src/main/java/com/melina/app/IShoppingCart.java
@@ -0,0 +1,12 @@
+package com.melina.app;
+
+public interface IShoppingCart {
+
+ public void addProduct(String name, String cost);
+
+ public void removeProduct(String name);
+
+ public String showProducts();
+
+ public double getTotalCost();
+}
diff --git a/shoppingCart/src/main/java/com/melina/app/Item.java b/shoppingCart/src/main/java/com/melina/app/Item.java
new file mode 100644
index 00000000..dc5dc5d2
--- /dev/null
+++ b/shoppingCart/src/main/java/com/melina/app/Item.java
@@ -0,0 +1,21 @@
+package com.melina.app;
+
+public class Item {
+
+ private double cost;
+ private String name;
+
+ public Item(String name, String cost) {
+ this.name=name;
+ this.cost=Double.parseDouble(cost);
+ }
+
+ public double getCost() {
+ return cost;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+}
diff --git a/shoppingCart/src/main/java/com/melina/app/ShoppingCartProxy.java b/shoppingCart/src/main/java/com/melina/app/ShoppingCartProxy.java
new file mode 100644
index 00000000..3a2b68e2
--- /dev/null
+++ b/shoppingCart/src/main/java/com/melina/app/ShoppingCartProxy.java
@@ -0,0 +1,26 @@
+package com.melina.app;
+
+public class ShoppingCartProxy implements IShoppingCart{
+ private IShoppingCart cartImplementation;
+
+ protected ShoppingCartProxy(IShoppingCart cart){
+ this.cartImplementation=cart;
+ }
+
+ public void addProduct(String name, String cost) {
+ cartImplementation.addProduct(name, cost);
+ }
+
+ public void removeProduct(String name) {
+ cartImplementation.removeProduct(name);
+ }
+
+ public String showProducts() {
+ return cartImplementation.showProducts();
+ }
+
+ public double getTotalCost() {
+ return cartImplementation.getTotalCost();
+ }
+
+}
diff --git a/shoppingCart/src/test/java/com/melina/app/AppTest.java b/shoppingCart/src/test/java/com/melina/app/AppTest.java
new file mode 100644
index 00000000..b1aeaf97
--- /dev/null
+++ b/shoppingCart/src/test/java/com/melina/app/AppTest.java
@@ -0,0 +1,38 @@
+package com.melina.app;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( AppTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ assertTrue( true );
+ }
+}
diff --git a/shoppingCart/target/maven-archiver/pom.properties b/shoppingCart/target/maven-archiver/pom.properties
new file mode 100644
index 00000000..4c01b607
--- /dev/null
+++ b/shoppingCart/target/maven-archiver/pom.properties
@@ -0,0 +1,5 @@
+#Generated by Maven
+#Tue Jan 27 19:50:56 GMT 2015
+version=1.0-SNAPSHOT
+groupId=com.melina.app
+artifactId=shoppingCart
diff --git a/shoppingCart/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/shoppingCart/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
new file mode 100644
index 00000000..eb9609a0
--- /dev/null
+++ b/shoppingCart/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
@@ -0,0 +1 @@
+com/melina/app/App.class
diff --git a/shoppingCart/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/shoppingCart/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
new file mode 100644
index 00000000..dd440ca4
--- /dev/null
+++ b/shoppingCart/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
@@ -0,0 +1,5 @@
+/home/meli/shoppingCart/src/main/java/com/melina/app/IShoppingCart.java
+/home/meli/shoppingCart/src/main/java/com/melina/app/App.java
+/home/meli/shoppingCart/src/main/java/com/melina/app/Item.java
+/home/meli/shoppingCart/src/main/java/com/melina/app/ShoppingCartProxy.java
+/home/meli/shoppingCart/src/main/java/com/melina/app/Cart.java
diff --git a/shoppingCart/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/shoppingCart/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
new file mode 100644
index 00000000..5d3fc172
--- /dev/null
+++ b/shoppingCart/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
@@ -0,0 +1 @@
+com/melina/app/AppTest.class
diff --git a/shoppingCart/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/shoppingCart/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
new file mode 100644
index 00000000..0a3c9376
--- /dev/null
+++ b/shoppingCart/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
@@ -0,0 +1 @@
+/home/meli/shoppingCart/src/test/java/com/melina/app/AppTest.java
diff --git a/shoppingCart/target/surefire-reports/TEST-com.melina.app.AppTest.xml b/shoppingCart/target/surefire-reports/TEST-com.melina.app.AppTest.xml
new file mode 100644
index 00000000..a4bc6923
--- /dev/null
+++ b/shoppingCart/target/surefire-reports/TEST-com.melina.app.AppTest.xml
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/shoppingCart/target/surefire-reports/com.melina.app.AppTest.txt b/shoppingCart/target/surefire-reports/com.melina.app.AppTest.txt
new file mode 100644
index 00000000..a714296c
--- /dev/null
+++ b/shoppingCart/target/surefire-reports/com.melina.app.AppTest.txt
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------------------
+Test set: com.melina.app.AppTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.057 sec
diff --git a/userService/.classpath b/userService/.classpath
new file mode 100644
index 00000000..0a1daddd
--- /dev/null
+++ b/userService/.classpath
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/userService/.project b/userService/.project
new file mode 100644
index 00000000..aaf55ba3
--- /dev/null
+++ b/userService/.project
@@ -0,0 +1,23 @@
+
+
+ userService
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
diff --git a/userService/.settings/org.eclipse.core.resources.prefs b/userService/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 00000000..f9fe3459
--- /dev/null
+++ b/userService/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/test/java=UTF-8
+encoding/=UTF-8
diff --git a/userService/.settings/org.eclipse.jdt.core.prefs b/userService/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..abec6ca3
--- /dev/null
+++ b/userService/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,5 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/userService/.settings/org.eclipse.m2e.core.prefs b/userService/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 00000000..f897a7f1
--- /dev/null
+++ b/userService/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/userService/pom.xml b/userService/pom.xml
new file mode 100644
index 00000000..51182856
--- /dev/null
+++ b/userService/pom.xml
@@ -0,0 +1,26 @@
+
+
+ 4.0.0
+
+ com.mycompany.app
+ app
+ 1.0-SNAPSHOT
+
+ com.melina.app
+ userService
+ 1.0-SNAPSHOT
+ userService
+ http://maven.apache.org
+
+ UTF-8
+
+
+
+ junit
+ junit
+ 3.8.1
+ test
+
+
+
diff --git a/userService/src/main/java/com/melina/app/App.java b/userService/src/main/java/com/melina/app/App.java
new file mode 100644
index 00000000..d5814b92
--- /dev/null
+++ b/userService/src/main/java/com/melina/app/App.java
@@ -0,0 +1,20 @@
+package com.melina.app;
+
+/**
+ * User service
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "User service " );
+ IUserService userservice= new UserServiceProxy(new UserService());
+ userservice.createUser("User1","XXXX");
+ userservice.createUser("User2","ZZZZ");
+ userservice.readUser("User1");
+ userservice.updateUser("User2", "email", "user2@email.com");
+ userservice.readUser("User2");
+
+ }
+}
diff --git a/userService/src/main/java/com/melina/app/IUserService.java b/userService/src/main/java/com/melina/app/IUserService.java
new file mode 100644
index 00000000..4e78bfbf
--- /dev/null
+++ b/userService/src/main/java/com/melina/app/IUserService.java
@@ -0,0 +1,19 @@
+package com.melina.app;
+
+public interface IUserService {
+ public void createUser(String id,String pass);
+
+ public void readUser(String id);
+
+ public void deleteUser(String id);
+
+ public void updateUser(String id, String property, String value);
+
+ public void uploadPhoto(String id, PhotoImage photo);
+
+ public void likePhoto(String id, PhotoImage photo);
+
+ public void addFriends(String idUser, String idFriend);
+
+
+}
diff --git a/userService/src/main/java/com/melina/app/PhotoImage.java b/userService/src/main/java/com/melina/app/PhotoImage.java
new file mode 100644
index 00000000..6842e221
--- /dev/null
+++ b/userService/src/main/java/com/melina/app/PhotoImage.java
@@ -0,0 +1,23 @@
+package com.melina.app;
+
+import java.awt.image.BufferedImage;
+
+public class PhotoImage {
+ private String id;
+ private int LikesQuantity;
+ private BufferedImage photo;
+
+ public PhotoImage(String id, BufferedImage photo){
+ this.id=id;
+ this.photo=photo;
+ LikesQuantity=0;
+ }
+
+ public void likeImageInc(){
+ LikesQuantity++;
+ }
+
+ public int getLikesImages(){
+ return LikesQuantity;
+ }
+}
diff --git a/userService/src/main/java/com/melina/app/User.java b/userService/src/main/java/com/melina/app/User.java
new file mode 100644
index 00000000..85b413ec
--- /dev/null
+++ b/userService/src/main/java/com/melina/app/User.java
@@ -0,0 +1,53 @@
+package com.melina.app;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+public class User {
+ private String id;
+ private String pass;
+ private String email;
+ private List photos=new ArrayList();
+ private List friends= new ArrayList();
+
+ public User(String id,String pass) {
+ this.id=id;
+ this.pass=pass;
+ this.email=new String();
+ }
+
+ public void getUserProperties(){
+ System.out.print( "User Id: "+id);
+ if (email.isEmpty()){
+ System.out.println(", no email" );
+ }
+ else{
+ System.out.println(", email: "+email );
+ }
+ }
+
+ public void update(String property, String value) {
+ if ("email".equals(property)){
+ this.email=value;
+ }
+ else {
+ if(property.equals("pass")){
+ this.pass=value;
+ }
+ }
+ }
+
+ public void insertPhoto(PhotoImage photo){
+ photos.add(photo);
+ }
+
+ public void addLikes(PhotoImage photo){
+ int i= photos.indexOf(photo);
+ photos.get(i).likeImageInc();
+ }
+
+ public void addFriend(String IdFriend){
+ friends.add(IdFriend);
+ }
+}
diff --git a/userService/src/main/java/com/melina/app/UserService.java b/userService/src/main/java/com/melina/app/UserService.java
new file mode 100644
index 00000000..0ed0b377
--- /dev/null
+++ b/userService/src/main/java/com/melina/app/UserService.java
@@ -0,0 +1,62 @@
+package com.melina.app;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public class UserService implements IUserService{
+
+ private Map users;
+ /**
+ * Constructor
+ */
+ public UserService(){
+ users= new HashMap();
+ }
+ /**
+ * create and add new user
+ */
+ public void createUser(String id, String pass) {
+ User user= new User(id, pass);
+ users.put(id,user);
+ }
+ /**
+ * show properties from user
+ */
+ public void readUser(String id) {
+ users.get(id).getUserProperties();
+ }
+ /**
+ * delete a user
+ */
+ public void deleteUser(String id) {
+ users.remove(id);
+ }
+ /**
+ * update a new property for user id
+ */
+ public void updateUser(String id, String property, String value) {
+ User u=users.get(id);
+ u.update(property, value);
+ }
+
+ /**
+ * upload photo for user id
+ */
+ public void uploadPhoto(String id, PhotoImage photo) {
+ users.get(id).insertPhoto(photo);
+ }
+ /**
+ * increase like var for photo from user
+ */
+ public void likePhoto(String id, PhotoImage photo) {
+ users.get(id).addLikes(photo);
+ }
+ /**
+ * add new friend
+ */
+ public void addFriends(String idUser, String idFriend) {
+ users.get(idUser).addFriend(idFriend);
+ }
+
+
+}
diff --git a/userService/src/main/java/com/melina/app/UserServiceProxy.java b/userService/src/main/java/com/melina/app/UserServiceProxy.java
new file mode 100644
index 00000000..21dc1758
--- /dev/null
+++ b/userService/src/main/java/com/melina/app/UserServiceProxy.java
@@ -0,0 +1,38 @@
+package com.melina.app;
+
+public class UserServiceProxy implements IUserService{
+ private IUserService userservice;
+
+ protected UserServiceProxy(IUserService userservice){
+ this.userservice=userservice;
+ }
+
+ public void createUser(String id,String pass) {
+ userservice.createUser(id, pass);
+ }
+
+ public void readUser(String name) {
+ userservice.readUser(name);
+ }
+
+ public void deleteUser(String name) {
+ userservice.deleteUser(name);
+ }
+
+ public void updateUser(String name, String property, String value) {
+ userservice.updateUser(name, property, value);
+ }
+
+ public void uploadPhoto(String id, PhotoImage photo) {
+ userservice.uploadPhoto(id, photo);
+ }
+
+ public void likePhoto(String id, PhotoImage photo) {
+ userservice.likePhoto(id, photo);
+ }
+
+ public void addFriends(String idUser, String isFriend) {
+ userservice.addFriends(idUser, isFriend);
+ }
+
+}
diff --git a/userService/src/test/java/com/melina/app/AppTest.java b/userService/src/test/java/com/melina/app/AppTest.java
new file mode 100644
index 00000000..b1aeaf97
--- /dev/null
+++ b/userService/src/test/java/com/melina/app/AppTest.java
@@ -0,0 +1,38 @@
+package com.melina.app;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( AppTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ assertTrue( true );
+ }
+}
diff --git a/userService/target/maven-archiver/pom.properties b/userService/target/maven-archiver/pom.properties
new file mode 100644
index 00000000..d80e5fe8
--- /dev/null
+++ b/userService/target/maven-archiver/pom.properties
@@ -0,0 +1,5 @@
+#Generated by Maven
+#Tue Jan 27 23:02:37 GMT 2015
+version=1.0-SNAPSHOT
+groupId=com.melina.app
+artifactId=userService
diff --git a/userService/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/userService/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
new file mode 100644
index 00000000..eb9609a0
--- /dev/null
+++ b/userService/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
@@ -0,0 +1 @@
+com/melina/app/App.class
diff --git a/userService/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/userService/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
new file mode 100644
index 00000000..038f3cc2
--- /dev/null
+++ b/userService/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
@@ -0,0 +1,6 @@
+/home/meli/userService/src/main/java/com/melina/app/UserServiceProxy.java
+/home/meli/userService/src/main/java/com/melina/app/App.java
+/home/meli/userService/src/main/java/com/melina/app/IUserService.java
+/home/meli/userService/src/main/java/com/melina/app/UserService.java
+/home/meli/userService/src/main/java/com/melina/app/User.java
+/home/meli/userService/src/main/java/com/melina/app/PhotoImage.java
diff --git a/userService/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/userService/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
new file mode 100644
index 00000000..5d3fc172
--- /dev/null
+++ b/userService/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
@@ -0,0 +1 @@
+com/melina/app/AppTest.class
diff --git a/userService/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/userService/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
new file mode 100644
index 00000000..e892d392
--- /dev/null
+++ b/userService/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
@@ -0,0 +1 @@
+/home/meli/userService/src/test/java/com/melina/app/AppTest.java
diff --git a/userService/target/surefire-reports/TEST-com.melina.app.AppTest.xml b/userService/target/surefire-reports/TEST-com.melina.app.AppTest.xml
new file mode 100644
index 00000000..6f87796b
--- /dev/null
+++ b/userService/target/surefire-reports/TEST-com.melina.app.AppTest.xml
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/userService/target/surefire-reports/com.melina.app.AppTest.txt b/userService/target/surefire-reports/com.melina.app.AppTest.txt
new file mode 100644
index 00000000..f4a4d5cf
--- /dev/null
+++ b/userService/target/surefire-reports/com.melina.app.AppTest.txt
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------------------
+Test set: com.melina.app.AppTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.053 sec