- ``mvn install``: To compile Aquarium and run the tests. This will also create
the file ``target/aquarium-<ver>-jar-with-dependencies.jar`` which can be
- used to start Aquarium from the command line
+ used to start Aquarium from the command line. To skip the tests while compiling,
+ run ``mvn install --skipTests=true``.
- ``mvn deploy``: To deploy the Aquarium libraries to the remote Maven repository
- ``mvn release:prepare``, ``mvn release:perform``: To prepare a release,
tag a new version and start the next development version
object JsonNames {
final val _id = "_id"
- final val userId = "userId"
+ final val id = "id"
+
+ final val occurredMillis = "occurredMillis"
+ final val receivedMillis = "receivedMillis"
+ final val userID = "userID"
+ final val clientID = "clientID"
+ final val isActive = "isActive"
+ final val role = "role"
+ final val eventVersion = "eventVersion"
+ final val eventType = "eventType"
+ final val details = "details"
}
}
//+UserEventStore
def storeUserEvent(event: UserEvent): Maybe[RecordID] =
- MongoDBStore.storeAny[UserEvent](event, userEvents, UserEventJsonNames.userId,
+ MongoDBStore.storeAny[UserEvent](event, userEvents, UserEventJsonNames.userID,
_.userID, MongoDBStore.jsonSupportToDBObject)
MongoDBStore.findById[UserEvent](id, userEvents, MongoDBStore.dbObjectToUserEvent)
def findUserEventsByUserId(userId: String): List[UserEvent] = {
- val query = new BasicDBObject(UserEventJsonNames.userId, userId)
+ val query = new BasicDBObject(UserEventJsonNames.userID, userId)
MongoDBStore.runQuery(query, userEvents)(MongoDBStore.dbObjectToUserEvent)(Some(_sortByTimestampAsc))
}
//-UserEventStore
(1 to num).foreach {
n =>
var event = nextUserEvent()
- publisher ! Message(event.toBytes, "")
+ publisher ! Message(event.toBytes, "astakos.user")
}
}
isActive = rnd.nextBoolean,
role = Array("PROF", "STUDENT", "ADMIN").apply(rnd.nextInt(3)),
eventVersion = 1,
- eventType = "ACTIVE",
+ eventType = "CREATE",
details = Map()
)
- publisher ! Message(user.toBytes, "%s.%s".format(im_exchanges(0),"CREATED"))
+ publisher ! Message(user.toBytes, "astakos.user")
}
}