PlayVersion.getAll(),
form));
}
else
{
ModuleVersion moduleVersion = form.get();
moduleVersion.playModule = Module.findByModuleKey(moduleKey);
moduleVersion.releaseDate = new Date();
moduleVersion.compatibility.addAll(RequestUtils.getListFromRequest(request(),
"compatibility.id",
PlayVersion.FIND));
// everything below here needs to be implemented
moduleVersion.binaryFile = new BinaryContent();
moduleVersion.binaryFile.content = new byte[]{1};
moduleVersion.binaryFile.contentLength = 1;
moduleVersion.save();
moduleVersion.saveManyToManyAssociations("compatibility");
createHistoricalEvent("Module updated - " + moduleVersion.playModule.name,
String.format("%s (%s) uploaded version %s of %s",
user.displayName,
user.userName,