Keep track of existing agreements
authorGeorgios Gousios <gousiosg@gmail.com>
Fri, 7 Oct 2011 06:03:35 +0000 (08:03 +0200)
committerGeorgios Gousios <gousiosg@gmail.com>
Fri, 7 Oct 2011 06:03:35 +0000 (08:03 +0200)
logic/src/main/scala/gr/grnet/aquarium/logic/accounting/agreements/AgreementRegistry.scala [new file with mode: 0644]

diff --git a/logic/src/main/scala/gr/grnet/aquarium/logic/accounting/agreements/AgreementRegistry.scala b/logic/src/main/scala/gr/grnet/aquarium/logic/accounting/agreements/AgreementRegistry.scala
new file mode 100644 (file)
index 0000000..c334768
--- /dev/null
@@ -0,0 +1,14 @@
+package gr.grnet.aquarium.logic.accounting.agreements
+
+import gr.grnet.aquarium.logic.accounting.Agreement
+
+object AgreementRegistry {
+
+  val agreements = Map (
+    1L -> DefaultAgreement
+  )
+
+  def getAgreement(agrId : Long) : Option[Agreement] = {
+    agreements.get(agrId)
+  }
+}
\ No newline at end of file