return models;
}
@Override
public ApplicationVersionModel createApplicationVersionModel(ApplicationVersion applicationVersion, boolean includeInstallFile) {
ApplicationVersionModel model = null;
if (applicationVersion != null) {
model = new ApplicationVersionModel();
model.setId(applicationVersion.getId());
model.setVersionName(applicationVersion.getVersionName());
model.setRecentChanges(applicationVersion.getRecentChanges());
model.setCfBundleIdentifier(applicationVersion.getCfBundleIdentifier());
model.setCfBundleName(applicationVersion.getCfBundleName());
model.setCfBundleVersion(applicationVersion.getCfBundleVersion());
model.setAppState(applicationVersion.getAppState());
if (includeInstallFile) {
AppFile installationFile = applicationVersion.getInstallationFile();
if (installationFile != null) {
model.setInstallationFile(appFileService.createAppFileModel(installationFile.getId()));
}
}
}
return model;