public class CopyableCorrespondingObject extends CorrespondingObject
Modifier and Type | Field and Description |
---|---|
private KExDaVDataPlugin |
_configurationDataPlugin |
private ManagerInterface |
_manager |
private ObjectManagerInterface |
_objectManagerInterface |
private ExistenceListener |
_sourceListener |
private boolean |
_started |
private Direction |
_strategy |
Constructor and Description |
---|
CopyableCorrespondingObject(ObjectManagerInterface objectManagerInterface,
ManagerInterface manager,
ObjectSpecification objectSpecification,
Direction strategy)
Konstruktor
|
Modifier and Type | Method and Description |
---|---|
private void |
copyConfigurationData(KExDaVObject source,
KExDaVObject target)
Kopiert Konfigurationsdaten
|
private void |
createCopyObjectListener(KExDaVObject source,
KExDaVObject target)
Erstellt den Listener, der überwacht ob ein Objekt erstellt oder gelöscht wird und daraufhin das Objekt ebenfalls kopiert oder löscht
|
private void |
createObject(KExDaVObject source,
KExDaVObject target) |
private Map<PidAttributeGroupUsage,Data> |
getConfigurationData(KExDaVObject source,
ClientDavInterface targetConnection) |
Direction |
getStrategy()
Gibt die Richtung des Objektaustausches zurück
|
private ConfigurationArea |
getTargetConfigurationArea(String type) |
private void |
invalidateObject(KExDaVObject target)
Löscht ein Objekt
|
(package private) void |
start()
Startet den Austausch des Objekts
|
(package private) void |
stop()
Beendet den Austausch des Objekts
|
equals, getLocalObject, getObjectSpecification, getRemoteObject, hashCode, toString
private ExistenceListener _sourceListener
private final Direction _strategy
private final ObjectManagerInterface _objectManagerInterface
private final ManagerInterface _manager
private boolean _started
private final KExDaVDataPlugin _configurationDataPlugin
CopyableCorrespondingObject(ObjectManagerInterface objectManagerInterface, ManagerInterface manager, ObjectSpecification objectSpecification, Direction strategy)
objectManagerInterface
- Objekt-Verwaltungmanager
- KExDaV-VerwaltungobjectSpecification
- Spezifikation zur Bestimmung des Objektsstrategy
- Austauschrichtungvoid start() throws MissingAreaException
MissingAreaException
- Ein benötigter KB fehltprivate void copyConfigurationData(KExDaVObject source, KExDaVObject target)
source
- Quell-Objekttarget
- Objekt, den die Konfigurationsdaten hinzugefügt werden sollenvoid stop()
private void createCopyObjectListener(KExDaVObject source, KExDaVObject target)
source
- Objekt, das auf Änderungen überwacht wirdtarget
- Objekt das ggf. erstellt oder gelöscht wirdprivate void invalidateObject(KExDaVObject target) throws ConfigurationChangeException
target
- ObjektConfigurationChangeException
- Konfiguration weigert sich den Auftrag auszuführenprivate void createObject(KExDaVObject source, KExDaVObject target) throws MissingAreaException
MissingAreaException
private Map<PidAttributeGroupUsage,Data> getConfigurationData(KExDaVObject source, ClientDavInterface targetConnection) throws MissingObjectException
MissingObjectException
private ConfigurationArea getTargetConfigurationArea(String type) throws MissingAreaException
MissingAreaException
public Direction getStrategy()