@Override public Future<UnitConfig> updateAuthorizationGroupConfig(UnitConfig groupConfig) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(groupConfig, this, UnitConfig.class), authorizationGroupConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update group config[" + groupConfig + "]!", ex); } }
@Override public Future<UnitConfig> updateSceneConfig(final UnitConfig sceneUnitConfig) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(sceneUnitConfig, this, UnitConfig.class), sceneConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update scene config!", ex); } }
@Override public Future<AgentClass> updateAgentClass(AgentClass agentClass) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(agentClass, this, AgentClass.class), agentClassRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update agent class!", ex); } }
@Override public Future<UnitConfig> updateAppConfig(final UnitConfig appUnitConfig) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(appUnitConfig, this, UnitConfig.class), appUnitConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update appUnitConfig!", ex); } }
@Override public Future<AppClass> updateAppClass(AppClass appClass) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(appClass, this, AppClass.class), appClassRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update app class!", ex); } }
@Override public Future<UnitConfig> updateAgentConfig(final UnitConfig agentUnitConfig) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(agentUnitConfig, this, UnitConfig.class), agentUnitConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update agent config!", ex); } }
@Override public Future<UnitConfig> updateUserConfig(final UnitConfig userConfig) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(userConfig, this, UnitConfig.class), userConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update user config[" + userConfig + "]!", ex); } }
/** * {@inheritDoc} * * @throws org.openbase.jul.exception.CouldNotPerformException {@inheritDoc} */ @Override public Future<UnitConfig> updateConnectionConfig(UnitConfig connectionConfig) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(connectionConfig, this, UnitConfig.class), connectionUnitConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update connection[" + connectionConfig + "]!", ex); } }
@Override public Future<UnitConfig> updateUnitConfig(final UnitConfig unitConfig) throws CouldNotPerformException { return new UpdateFuture<>(AuthenticatedServiceProcessor.requestAuthenticatedAction(unitConfig, UnitConfig.class, SessionManager.getInstance(), this::updateUnitConfigAuthenticated), unitConfigRemoteRegistry, this); }
/** * {@inheritDoc} * * @throws org.openbase.jul.exception.CouldNotPerformException {@inheritDoc} */ @Override public Future<UnitConfig> updateLocationConfig(final UnitConfig locationConfig) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(locationConfig, this, UnitConfig.class), locationUnitConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update location[" + locationConfig + "]!", ex); } }
/** * {@inheritDoc} * * @param deviceClass {@inheritDoc} * @return {@inheritDoc} * @throws CouldNotPerformException {@inheritDoc} */ @Override public Future<DeviceClass> updateDeviceClass(final DeviceClass deviceClass) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(deviceClass, this, DeviceClass.class), deviceClassRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update device class!", ex); } }
/** * {@inheritDoc} * * @param deviceConfig {@inheritDoc} * @return {@inheritDoc} * @throws CouldNotPerformException {@inheritDoc} */ @Override public Future<UnitConfig> updateDeviceConfig(final UnitConfig deviceConfig) throws CouldNotPerformException { try { return new UpdateFuture<>(RPCHelper.callRemoteMethod(deviceConfig, this, UnitConfig.class), deviceUnitConfigRemoteRegistry, this); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not update device config!", ex); } }