Flat project hierarchy
[aquarium] / src / main / scala / gr / grnet / aquarium / store / WalletStore.scala
1 package gr.grnet.aquarium.store
2
3 import gr.grnet.aquarium.logic.events.{WalletEntry}
4 import java.util.Date
5 import com.ckkloverdos.maybe.Maybe
6
7 /**
8  * A store for Wallets
9  *
10  * @author Georgios Gousios <gousiosg@gmail.com>
11  */
12 trait WalletStore {
13
14   def store(entry: WalletEntry): Maybe[RecordID]
15
16   def findEntryById(id: String): Option[WalletEntry]
17
18   def findAllUserEntries(userId: String): List[WalletEntry]
19
20   def findUserEntriesFromTo(userId: String, from: Date, to: Date): List[WalletEntry]
21 }