private DeskmanagerApplicationInfoUserData buildDeskmanagerApplicationInfoUserData( UserApplicationInfo userApplicationInfo) { DeskmanagerApplicationInfoUserData clientUserDataInfo = new DeskmanagerApplicationInfoUserData(); clientUserDataInfo.setDeskmanagerBuild(deskmanagerBuild); clientUserDataInfo.setDeskmanagerVersion(deskmanagerVersion); clientUserDataInfo.setUserApplicationKey(userApplicationInfo.getKey()); return clientUserDataInfo; }
@Transactional(readOnly = true) public void execute(GetConfigurationRequest request, GetConfigurationResponse response) throws Exception { if (null == request.getApplicationId()) { throw new GeomajasException(ExceptionCode.PARAMETER_MISSING, "applicationId"); //FIXME: remove manager application stuff. } else if (managerApplicationId.equals(request.getApplicationId())) { // if the application is the manager application, then use the default // {@link org.geomajas.command.configuration.GetConfigurationCommand}. super.execute(request, response); } else { // this checks if geodesk is allowed Geodesk loket = geodeskService.getGeodeskByPublicId(request.getApplicationId()); if (loket != null) { ClientApplicationInfo loketConfig = configurationService.createClonedGeodeskConfiguration(loket, true); response.setApplication(loketConfig); DeskmanagerApplicationInfoUserData clientUserDataInfo = new DeskmanagerApplicationInfoUserData(); } else { throw new GeomajasException(ExceptionCode.APPLICATION_NOT_FOUND, request.getApplicationId()); } } }