class ConfigurationRequesterCommunicator
extends java.lang.Object
Diese Klasse empfängt Telegramme vom Typ “atg.konfigurationsAnfrage” und “atg.konfigurationsSchreibAnfrage” und verschickt Telegramme vom Typ “atg.konfigurationsAntwort” und “atg.konfigurationsSchreibAntwort”.
Die Telegramme vom Typ “atg.konfigurationsAnfrage” und “atg.konfigurationsSchreibAnfrage” werden interpretiert und an das Datenmodell weitergereicht. Die Antwort des Datenmodells wird in Telegrammen vom Typ “atg.konfigurationsAntwort” und “atg.konfigurationsSchreibAntwort” an die anfragende Applikation verschickt.
Modifier and Type | Class and Description |
---|---|
private class |
ConfigurationRequesterCommunicator.ClientInfo
Verschickt die Antworten einer Konfigurationsanfrage
|
private class |
ConfigurationRequesterCommunicator.RequestReceiver
Nimmt Konfigurationsanfragen entgegen und leitet sie an eine Methode zum verarbeiten weiter.
|
Modifier and Type | Field and Description |
---|---|
private DataDescription |
_answerDataDescription |
private AsyncRequestQueue |
_asyncRequestQueue |
private Authentication |
_authentication
Wird benötigt um “isUserValid” zu bearbeiten
|
private java.util.Map<SystemObject,ConfigurationRequesterCommunicator.ClientInfo> |
_clientInfos |
private ConfigurationAuthority |
_configAuthority |
private ClientDavInterface |
_connection |
private ConfigDataModel |
_dataModel |
private static Debug |
_debug
DebugLogger für Debug-Ausgaben
|
private ConfigurationArea |
_defaultConfigArea |
private ForeignObjectManager |
_foreignObjectManager |
private SystemObject[] |
_metaDataObjects
Enthält die Objekte, die in der Antwort auf die von Applikationen initial gestellte Anfrage nach Meta-Objekten enthalten sind.
|
private SystemObject[] |
_metaDataObjectsMinimal
Enthält die minimalen Objekte zum Stellen von neuartigen Konfigurationsanfragen
|
private SimulationHandler |
_simulationHandler
Klasse mit Informationen über Simulationen (kann initial null sein)
|
private DataDescription |
_writeAnswerDataDescription |
static java.lang.String[] |
META_OBJECTS_MINIMAL |
static java.lang.String[] |
META_TYPES |
static java.lang.String[] |
META_TYPES_MINIMAL |
private SenderRole |
SENDER_ROLE |
private boolean |
WAIT_FOR_SEND_CONTROL |
Constructor and Description |
---|
ConfigurationRequesterCommunicator(AsyncRequestQueue asyncRequestQueue,
ConfigDataModel dataModel,
Authentication authentication,
ClientDavInterface connection) |
ConfigurationRequesterCommunicator(ConfigDataModel dataModel,
Authentication authentication,
ClientDavInterface connection) |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
addObject(java.util.Set<ConfigurationObject> relevantObjects,
SystemObject object) |
private void |
buildAndSendReply(boolean isWriteRequest,
SystemObject sender,
java.lang.String senderReference,
ConfigTelegram answer,
ConfigurationRequesterCommunicator.ClientInfo clientInfo) |
private SystemObjectAnswerInfo |
buildIdsToObjectsAnswerInfo(long[] ids,
SystemObject[] objects) |
private static long[] |
getIds(java.util.List<? extends SystemObject> systemObjects) |
private static java.util.ArrayList<java.lang.Long> |
getIdsAsLongArrayList(java.util.List<? extends SystemObject> systemObjects) |
private MetaDataAnswer |
getMetaDataAnswer(java.util.Collection<SystemObject> objects,
long protocolVersion)
Ermittelt die Antwort auf die von Applikationen initial gestellte Anfrage nach Meta-Objekten.
|
private ConfigurationObject[] |
getMetaDataObjects()
Ermittelt die Objekte, die in der Antwort auf die von Applikationen initial gestellte Anfrage nach Meta-Objekten enthalten sind.
|
private ConfigurationObject[] |
getMetaDataObjectsMinimal() |
(package private) static DafSystemObject |
getMetaObject(SystemObject object) |
private boolean |
oldDataModel()
Gibt true zurück, wenn die neuen Konfigurationsanfragen nicht verfügbar sind, sonst false.
|
private void |
processRequest(boolean isWriteRequest,
Data data) |
void |
setForeignObjectManager(ForeignObjectManager foreignObjectManager) |
void |
setSimulationHandler(SimulationHandler simulationHandler) |
private static final Debug _debug
DebugLogger für Debug-Ausgaben
private final AsyncRequestQueue _asyncRequestQueue
private final ConfigDataModel _dataModel
private final ClientDavInterface _connection
private final ConfigurationAuthority _configAuthority
private final DataDescription _answerDataDescription
private final DataDescription _writeAnswerDataDescription
private final Authentication _authentication
Wird benötigt um “isUserValid” zu bearbeiten
private final java.util.Map<SystemObject,ConfigurationRequesterCommunicator.ClientInfo> _clientInfos
private final ConfigurationArea _defaultConfigArea
private final boolean WAIT_FOR_SEND_CONTROL
private final SenderRole SENDER_ROLE
private SystemObject[] _metaDataObjects
Enthält die Objekte, die in der Antwort auf die von Applikationen initial gestellte Anfrage nach Meta-Objekten enthalten sind. Die Antwort enthält alle gültigen Aspekte, Attribute, Attributgruppen, Attributgruppenverwendungen, Attributtypen, Konfigurationsbereiche, Konfigurationsverantwortlichem, Mengenverwendungen, Typen, Wertebereiche und Werteustände.
private SystemObject[] _metaDataObjectsMinimal
Enthält die minimalen Objekte zum Stellen von neuartigen Konfigurationsanfragen
private ForeignObjectManager _foreignObjectManager
private SimulationHandler _simulationHandler
Klasse mit Informationen über Simulationen (kann initial null sein)
public static final java.lang.String[] META_TYPES
public static final java.lang.String[] META_TYPES_MINIMAL
public static final java.lang.String[] META_OBJECTS_MINIMAL
ConfigurationRequesterCommunicator(ConfigDataModel dataModel, Authentication authentication, ClientDavInterface connection)
ConfigurationRequesterCommunicator(AsyncRequestQueue asyncRequestQueue, ConfigDataModel dataModel, Authentication authentication, ClientDavInterface connection)
private ConfigurationObject[] getMetaDataObjects()
Ermittelt die Objekte, die in der Antwort auf die von Applikationen initial gestellte Anfrage nach Meta-Objekten enthalten sind. Die Antwort enthält alle gültigen Aspekte, Attribute, Attributgruppen, Attributgruppenverwendungen, Attributtypen, Konfigurationsbereiche, Konfigurationsverantwortlichem, Mengenverwendungen, Typen, Wertebereiche und Wertezustände.
private ConfigurationObject[] getMetaDataObjectsMinimal()
static void addObject(java.util.Set<ConfigurationObject> relevantObjects, SystemObject object)
private MetaDataAnswer getMetaDataAnswer(java.util.Collection<SystemObject> objects, long protocolVersion)
Ermittelt die Antwort auf die von Applikationen initial gestellte Anfrage nach Meta-Objekten.
objects
- Array mit den Konfigurationsobjekten, die in der Antwort enthalten sein sollen.protocolVersion
- public void setForeignObjectManager(ForeignObjectManager foreignObjectManager)
public void setSimulationHandler(SimulationHandler simulationHandler)
private void processRequest(boolean isWriteRequest, Data data) throws java.io.IOException, ConfigurationChangeException, DataNotSubscribedException, OneSubscriptionPerSendData, SendSubscriptionNotConfirmed
java.io.IOException
ConfigurationChangeException
DataNotSubscribedException
OneSubscriptionPerSendData
SendSubscriptionNotConfirmed
private boolean oldDataModel()
Gibt true zurück, wenn die neuen Konfigurationsanfragen nicht verfügbar sind, sonst false.
private SystemObjectAnswerInfo buildIdsToObjectsAnswerInfo(long[] ids, SystemObject[] objects)
private void buildAndSendReply(boolean isWriteRequest, SystemObject sender, java.lang.String senderReference, ConfigTelegram answer, ConfigurationRequesterCommunicator.ClientInfo clientInfo) throws java.io.IOException, SendSubscriptionNotConfirmed
java.io.IOException
SendSubscriptionNotConfirmed
private static long[] getIds(java.util.List<? extends SystemObject> systemObjects)
private static java.util.ArrayList<java.lang.Long> getIdsAsLongArrayList(java.util.List<? extends SystemObject> systemObjects)
static DafSystemObject getMetaObject(SystemObject object) throws ConfigurationException
ConfigurationException