public class ConfigurationControlAdapter extends Object implements ConfigurationControl
ConfigurationChangeException
wird zum Anwender der Klasse weitergereicht.
Eine RequestException
deutet auf einen schwerern Fehler innerhalb der Kommunikation hin, der nicht mehr behoben werden kann und führt zu einer
Abmeldung beim Datenverteiler.Modifier and Type | Field and Description |
---|---|
private ClientDavConnection |
_clientDaVConnection
Verbindung zum Datenverteiler.
|
private static Debug |
_debug
DebugLogger für Debug-Ausgaben
|
private ConfigurationRequester |
_requester
Über dieses Objekt findet die Anfrage an die Konfiguration statt.
|
Constructor and Description |
---|
ConfigurationControlAdapter(ClientDavConnection clientDaVConnection) |
Modifier and Type | Method and Description |
---|---|
ConsistencyCheckResultInterface |
activateConfigurationAreas(Collection<ConfigAreaAndVersion> configurationAreas)
Die Implementierung dieser Methode beauftragt die Konfiguration die angebenen Konfigurationsbereiche zu aktivieren (siehe TPuK1-142).
|
ConsistencyCheckResultInterface |
checkConsistency(Collection<ConfigAreaAndVersion> configurationAreas)
Die Implementierung dieser Methode beauftragt die Konfiguration alle Konfigurationsbereiche einer Konsistenzprüfung zu unterziehen (siehe TPuK1-138).
|
ConfigurationArea |
createConfigurationArea(String name,
String pid,
String authorityPid)
Die Implementierung dieser Methode legt einen neuen Konfigurationsbereich in der lokalen Konfiguration an.
|
void |
exportConfigurationAreas(File exportPath,
Collection<String> configurationAreaPids)
Die Implementierung dieser Methode exportiert aus der bestehenden Konfiguration die Versorgungsdateien zu den angegebenen Pids in das angegebene
Verzeichnis.
|
Map<String,ConfigurationArea> |
getAllConfigurationAreas()
Alle Konfigurationsbereichseinträge in der Verwaltungsdatei werden zurückgegeben.
|
void |
importConfigurationAreas(File importPath,
Collection<String> configurationAreaPids)
Die Implementierung dieser Methode importiert die Versorgungsdateien der angegebenen Pids vom angegebenen Verzeichnis in die bestehende Konfiguration.
|
void |
releaseConfigurationAreasForActivation(Collection<ConfigAreaAndVersion> configurationAreas)
Die Implementierung dieser Methode beauftragt die Konfiguration die angegebenen Konfigurationsbereiche in den Status "Freigabe zur Aktivierung" zu
überführen.
|
ConsistencyCheckResultInterface |
releaseConfigurationAreasForActivationWithoutCAActivation(Collection<ConfigAreaAndVersion> configurationAreas)
Die Implementierung dieser Methode beauftragt die Konfiguration die angegebenen Bereiche in den Zustand "Darf durch andere aktiviert werden, obwohl der KV
es selbst nicht aktiviert hat" zu bringen.
|
ConsistencyCheckResultInterface |
releaseConfigurationAreasForTransfer(Collection<ConfigAreaAndVersion> configurationAreas)
Die Implementierung dieser Methode beauftragt die Konfiguration die angebenen Konfigurationsbereiche in den Status "Freigabe zur Übernahme" zu überführen
(siehe TPuK1-143).
|
private static final Debug _debug
private final ClientDavConnection _clientDaVConnection
private ConfigurationRequester _requester
public ConfigurationControlAdapter(ClientDavConnection clientDaVConnection)
public Map<String,ConfigurationArea> getAllConfigurationAreas()
ConfigurationControl
getAllConfigurationAreas
in interface ConfigurationControl
public ConfigurationArea createConfigurationArea(String name, String pid, String authorityPid) throws ConfigurationChangeException
ConfigurationControl
createConfigurationArea
in interface ConfigurationControl
name
- Name des neuen Konfigurationsbereichspid
- eindeutige Pid des neuen KonfigurationsbereichsauthorityPid
- die Pid des Konfigurationsverantwortlichen des neuen KonfigurationsbereichsConfigurationChangeException
- Falls kein neuer Konfigurationsbereich angelegt werden konnte.public ConsistencyCheckResultInterface checkConsistency(Collection<ConfigAreaAndVersion> configurationAreas)
ConfigurationControl
ConfigurationControl.activateConfigurationAreas(java.util.Collection<de.bsvrz.dav.daf.main.config.management.ConfigAreaAndVersion>)
oder Freigabe ConfigurationControl.releaseConfigurationAreasForTransfer(java.util.Collection<de.bsvrz.dav.daf.main.config.management.ConfigAreaAndVersion>)
aufgerufen
werden.checkConsistency
in interface ConfigurationControl
configurationAreas
- Definiert alle Konfigurationsbereiche, die einer Konsistenzprüfung unterzogen werden sollen. Der Bereich wird über seine Pid
identifiziert, zusätzlich wird die Version angegeben in der der Konfigurationsbereich geprüft werden soll. Alle Bereiche der
Konfiguration, die nicht angegeben werden, werden in die Prüfung einbezogen und zwar mit ihrer aktuellen Version und müssen somit
nicht explizit angegeben werden.public ConsistencyCheckResultInterface activateConfigurationAreas(Collection<ConfigAreaAndVersion> configurationAreas) throws ConfigurationChangeException
ConfigurationControl
activateConfigurationAreas
in interface ConfigurationControl
configurationAreas
- Konfigurationsbereiche, die in der jeweiligen Version aktiviert werden sollenConfigurationChangeException
- Falls mindestens ein Konfigurationsbereich nicht aktiviert werden konnte. public ConsistencyCheckResultInterface releaseConfigurationAreasForTransfer(Collection<ConfigAreaAndVersion> configurationAreas) throws ConfigurationChangeException
ConfigurationControl
releaseConfigurationAreasForTransfer
in interface ConfigurationControl
configurationAreas
- Konfigurationsbereiche, die in der jeweiligen Version freigegeben werden sollenConfigurationChangeException
- Falls mindestens ein Konfigurationsbereich nicht zur Übernahme freigegeben werden konnte. public void releaseConfigurationAreasForActivation(Collection<ConfigAreaAndVersion> configurationAreas) throws ConfigurationChangeException
ConfigurationControl
ConfigurationControl.activateConfigurationAreas(java.util.Collection<de.bsvrz.dav.daf.main.config.management.ConfigAreaAndVersion>)
wurde.
Es werden entweder alle angegebenen Konfigurationsbereiche in der jeweils geforderten Version aktiviert oder keiner.releaseConfigurationAreasForActivation
in interface ConfigurationControl
configurationAreas
- Konfigurationsbereiche, die in der jeweiligen Version für andere Konfigurationen freigegeben werden sollenConfigurationChangeException
- Falls mindestens ein Konfigurationsbereich nicht zur Aktivierung freigegeben werden konnte. ConfigurationControl.activateConfigurationAreas(java.util.Collection<de.bsvrz.dav.daf.main.config.management.ConfigAreaAndVersion>)
.public void importConfigurationAreas(File importPath, Collection<String> configurationAreaPids) throws ConfigurationChangeException
ConfigurationControl
exportiert
werden.importConfigurationAreas
in interface ConfigurationControl
importPath
- Verzeichnis der VersorgungsdateienconfigurationAreaPids
- Pids der zu importierenden KonfigurationsbereicheConfigurationChangeException
- Falls während des Imports Fehler auftreten. Nach Korrektur des Fehlers kann der Import wiederholt werden.public void exportConfigurationAreas(File exportPath, Collection<String> configurationAreaPids) throws ConfigurationTaskException
ConfigurationControl
importiert
werden.exportConfigurationAreas
in interface ConfigurationControl
exportPath
- Verzeichnis der VersorgungsdateienconfigurationAreaPids
- Pids der zu exportierenden KonfigurationsbereicheConfigurationTaskException
- Die angegebenen Bereiche konnte nicht exportiert werden. Dies kann mehrere Gründe haben (zu einer Pid wurde kein
Konfigurationsbereich gefunden, eine Versorgungsdatei konnte nicht geschrieben werden, usw.).public ConsistencyCheckResultInterface releaseConfigurationAreasForActivationWithoutCAActivation(Collection<ConfigAreaAndVersion> configurationAreas) throws ConfigurationChangeException
ConfigurationControl
releaseConfigurationAreasForActivationWithoutCAActivation
in interface ConfigurationControl
configurationAreas
- Bereiche, die für andere zur Aktivierung freigegeben sind aber ihrerseits nicht durch den KV aktiviert wurden.ConfigurationChangeException
- Fehler beim Versuch die Bereiche für andere freizugeben. Es wurde kein Bereich freigegeben.