public class CorrespondingObjectManager extends Object implements ObjectManagerInterface
| Constructor and Description |
|---|
CorrespondingObjectManager(ClientDavInterface localConnection,
ClientDavInterface remoteConnection,
ManagerInterface manager,
Map<AttributeGroupPair,KExDaVDataPlugin> plugins)
Erstellt eine Verwaltung korrespondierender Objekte.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Beendet alle von dieser Klasse verwendeten Austausche
|
void |
copyObjectIfNecessary(ObjectSpecification objectSpecification,
ClientDavInterface sourceConnection,
ClientDavInterface targetConnection)
Wird aufgerufen, wenn im Zielsystem ein dynamisches Objekt gebraucht wird.
|
CopyableCorrespondingObject |
createObjectExchange(ObjectSpecification objectSpecification,
Direction direction)
Erstellt einen Austausch dynamischer Objekte
|
ConfigurationArea |
getConfigurationAreaLocal(String typePid)
Sucht den passenden Konfigurationsbereich um ein Objekt im Lokal-System abzuspeichern
|
ConfigurationArea |
getConfigurationAreaRemote(String typePid)
Sucht den passenden Konfigurationsbereich um ein Objekt im Remote-System abzuspeichern
|
ClientDavInterface |
getLocalConnection()
Gibt die lokale Verbindung zurück
|
CorrespondingObject |
getObject(ObjectSpecification objectSpecification)
Gibt zu einer Pid ein korrespondierendes Objekt zurück, ohne dieses zu kopieren o.ä.
|
KExDaVDataPlugin |
getPlugIn(String atgSource,
String atgTarget)
Gibt ein Plugin zurück um von atgSource nach atgTarget zu konvertieren.
|
ClientDavInterface |
getRemoteConnection()
Gibt die Remote-Verbindung zurück
|
boolean |
removeObjectExchange(ObjectSpecification objectSpecification,
Direction direction)
Entfernt einen Objektaustausch
|
void |
setConfigurationAreas(ConfigurationArea localDefaultArea,
ConfigurationArea remoteDefaultArea,
Map<String,ConfigurationArea> localAreas,
Map<String,ConfigurationArea> remoteAreas)
Setzt die Konfigurationsbereiche, in denen die Objekte angelegt werden sollen
|
String |
toString() |
public CorrespondingObjectManager(ClientDavInterface localConnection, ClientDavInterface remoteConnection, ManagerInterface manager, Map<AttributeGroupPair,KExDaVDataPlugin> plugins)
localConnection - Lokale VerbindungremoteConnection - Remote-Verbindungmanager - KExDaV-Verwaltungplugins - Plugins die pro Attributgruppenkonvertierung verwendet werdenpublic CopyableCorrespondingObject createObjectExchange(ObjectSpecification objectSpecification, Direction direction) throws MissingAreaException
objectSpecification - Pid des Objektesdirection - Richtung des AustauschesMissingAreaException - Falls kein Konfigurationsbereich gefunden werden konnte, um das Objekt auf dem Zielsystem anzulegenpublic boolean removeObjectExchange(ObjectSpecification objectSpecification, Direction direction)
objectSpecification - Piddirection - Richtungpublic CorrespondingObject getObject(ObjectSpecification objectSpecification)
getObject in interface ObjectManagerInterfaceobjectSpecification - Pidpublic void copyObjectIfNecessary(ObjectSpecification objectSpecification, ClientDavInterface sourceConnection, ClientDavInterface targetConnection)
ObjectManagerInterfacecopyObjectIfNecessary in interface ObjectManagerInterfaceobjectSpecification - Spezifikation zur Ermittlung des ObjektessourceConnection - QuellverbindungtargetConnection - Zielverbindungpublic ClientDavInterface getLocalConnection()
ObjectManagerInterfacegetLocalConnection in interface ObjectManagerInterfacepublic ClientDavInterface getRemoteConnection()
ObjectManagerInterfacegetRemoteConnection in interface ObjectManagerInterfacepublic ConfigurationArea getConfigurationAreaRemote(String typePid) throws MissingAreaException
ObjectManagerInterfacegetConfigurationAreaRemote in interface ObjectManagerInterfacetypePid - Objekt-TypMissingAreaException - Falls kein Konfigurationsbereich gefunden werden konntepublic ConfigurationArea getConfigurationAreaLocal(String typePid) throws MissingAreaException
ObjectManagerInterfacegetConfigurationAreaLocal in interface ObjectManagerInterfacetypePid - Objekt-TypMissingAreaException - Falls kein Konfigurationsbereich gefunden werden konntepublic KExDaVDataPlugin getPlugIn(String atgSource, String atgTarget) throws MissingPluginException
ObjectManagerInterfaceBasicKExDaVDataPlugin zurückgegebengetPlugIn in interface ObjectManagerInterfaceatgSource - Quell-Attributgruppe (Pid)atgTarget - Ziel-Attributgruppe (Pid)MissingPluginException - Falls kein Plugin gefunden werden kannpublic void setConfigurationAreas(ConfigurationArea localDefaultArea, ConfigurationArea remoteDefaultArea, Map<String,ConfigurationArea> localAreas, Map<String,ConfigurationArea> remoteAreas)
localDefaultArea - Standardbereich Lokal (oder null für keinen Standardbereich)remoteDefaultArea - Standardbereich Remote (oder null für keinen Standardbereich)localAreas - Lokale zusätzliche Bereiche nach TypremoteAreas - Remote zusätzliche Bereiche nach Typpublic void clear()