Being devops-friendly until a user creation event arrives
[aquarium] / src / main / scala / gr / grnet / aquarium / store / IMEventStore.scala
index 62e5e62..231049e 100644 (file)
@@ -68,6 +68,11 @@ trait IMEventStore {
    */
   def findIMEventById(id: String): Option[IMEvent]
 
+  /**
+   * Find the `CREATE` even for the given user. Note that there must be only one such event.
+   */
+  def findCreateIMEventByUserID(userID: String): Option[IMEvent]
+
   def findLatestIMEventByUserID(userID: String): Option[IMEvent]
 
   /**