Package models

Examples of models.ModuleVersion


                                                          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,
View Full Code Here

TOP

Related Classes of models.ModuleVersion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.