/** * {@inheritDoc} * * @throws org.openbase.jul.exception.CouldNotPerformException {@inheritDoc} */ @Override public UnitConfig getLocationConfigById(final String locationId) throws CouldNotPerformException { unitRegistryRemote.validateData(); return locationUnitConfigRemoteRegistry.getMessage(locationId); }
/** * {@inheritDoc} * * @throws org.openbase.jul.exception.CouldNotPerformException {@inheritDoc} */ @Override public UnitConfig getConnectionConfigById(String connectionId) throws CouldNotPerformException { unitRegistryRemote.validateData(); return connectionUnitConfigRemoteRegistry.getMessage(connectionId); }
@Override public UserActivityConfig getUserActivityConfigById(String userActivityConfigId) throws CouldNotPerformException { validateData(); return userActivityConfigRemoteRegistry.getMessage(userActivityConfigId); }
@Override public UnitConfig getAppConfigById(String appUnitConfigId) throws CouldNotPerformException, NotAvailableException, InterruptedException { validateData(); return appUnitConfigRemoteRegistry.getMessage(appUnitConfigId); }
@Override public UnitConfig getAuthorizationGroupConfigById(String groupConfigId) throws CouldNotPerformException { validateData(); return authorizationGroupConfigRemoteRegistry.getMessage(groupConfigId); }
/** * {@inheritDoc} * * @param deviceConfigId {@inheritDoc} * @return {@inheritDoc} * @throws CouldNotPerformException {@inheritDoc} * @throws NotAvailableException {@inheritDoc} */ @Override public UnitConfig getDeviceConfigById(String deviceConfigId) throws CouldNotPerformException, NotAvailableException { validateData(); return deviceUnitConfigRemoteRegistry.getMessage(deviceConfigId); }
@Override public UnitTemplate getUnitTemplateById(final String unitTemplateId) throws CouldNotPerformException { validateData(); return unitTemplateRemoteRegistry.getMessage(unitTemplateId); }
@Override public AppClass getAppClassById(String appClassId) throws CouldNotPerformException, InterruptedException { validateData(); return appClassRemoteRegistry.getMessage(appClassId); }
/** * {@inheritDoc} * * @throws org.openbase.jul.exception.CouldNotPerformException {@inheritDoc} */ @Override public UnitConfig getConnectionConfigById(String connectionId) throws CouldNotPerformException { validateData(); return connectionUnitConfigRemoteRegistry.getMessage(connectionId); }
@Override public UnitConfig getAgentConfigById(String agentUnitConfigId) throws CouldNotPerformException, NotAvailableException { validateData(); return agentUnitConfigRemoteRegistry.getMessage(agentUnitConfigId); }
@Override public ServiceTemplate getServiceTemplateById(String serviceTemplateId) throws CouldNotPerformException { validateData(); return serviceTemplateRemoteRegistry.getMessage(serviceTemplateId); }
/** * {@inheritDoc} * * @throws org.openbase.jul.exception.CouldNotPerformException {@inheritDoc} */ @Override public UnitConfig getLocationConfigById(final String locationId) throws CouldNotPerformException { validateData(); return locationUnitConfigRemoteRegistry.getMessage(locationId); }
@Override public AgentClass getAgentClassById(String agentClassId) throws CouldNotPerformException { validateData(); return agentClassRemoteRegistry.getMessage(agentClassId); }
@Override public UnitConfig getUserConfigById(String userConfigId) throws CouldNotPerformException, NotAvailableException { validateData(); return userConfigRemoteRegistry.getMessage(userConfigId); }
/** * {@inheritDoc} * * @param deviceConfigId {@inheritDoc} * @return {@inheritDoc} * @throws CouldNotPerformException {@inheritDoc} */ @Override public UnitConfig getDeviceConfigById(String deviceConfigId) throws CouldNotPerformException { unitRegistryRemote.validateData(); return deviceUnitConfigRemoteRegistry.getMessage(deviceConfigId); }
@Override public UserActivityClass getUserActivityClassById(String userActivityClassId) throws CouldNotPerformException { validateData(); return userActivityClassRemoteRegistry.getMessage(userActivityClassId); }
@Override public UnitConfig getSceneConfigById(String sceneUnitConfigId) throws CouldNotPerformException { unitRegistryRemote.validateData(); return sceneUnitConfigRemoteRegistry.getMessage(sceneUnitConfigId); }
/** * {@inheritDoc} * * @param unitConfigId {@inheritDoc} * @return {@inheritDoc} * @throws org.openbase.jul.exception.CouldNotPerformException {@inheritDoc} * @throws org.openbase.jul.exception.NotAvailableException {@inheritDoc} */ @Override public UnitConfig getUnitConfigById(final String unitConfigId) throws CouldNotPerformException, NotAvailableException { validateData(); return unitConfigRemoteRegistry.getMessage(unitConfigId); }
@Override public UnitConfig getAgentConfigById(String agentUnitConfigId) throws CouldNotPerformException { try { CachedUnitRegistryRemote.getRegistry().validateData(); } catch (InterruptedException ex) { Thread.currentThread().interrupt(); // registries do not throw interrupted exception within the next release. } return agentUnitConfigRemoteRegistry.getMessage(agentUnitConfigId); }
@Override protected boolean check(final M message, final SynchronizedRemoteRegistry<String, M, ?> remoteRegistry) throws CouldNotPerformException { // if the updated message has been filtered out verify that is not contained anymore // and else verify that the update has been synchronized if (remoteRegistry.getFilter() != null && !remoteRegistry.getFilter().verify(message)) { return !remoteRegistry.contains(getId(message)); } else { return remoteRegistry.getMessage(getId(message)).equals(message); } }