$SYS/Broker/Brokername/Topic/Thema
Der Hauptteil jeder Veröffentlichung ist eine XML-Nachricht, die die ACL-Aktualisierung beschreibt.
Diese Ereignisse sind nicht persistente, einmalige Veröffentlichungen.
Bei bestimmten Operationen werden alle ACL-Einträge für ein einzelnes Thema oder für alle Themen gelöscht. In diesem Fall werden die einzelnen Einträge nicht in der Ereignisveröffentlichung veröffentlicht. Stattdessen enthält der Hauptteil der Ereignisveröffentlichung einen einzelnen XML-Tag, der angibt, dass alle ACL-Einträge gelöscht wurden.
Im Folgenden finden Sie Beispiele für Ereignisnachrichten zum Erstellen, Ändern und Löschen einer ACL sowie Beispiele zum Löschen aller ACLs für ein einzelnes Thema und alle Themen.
Event publication topic = "$SYS/Broker/Broker1/Topic/stock/IBM" <Broker uuid="1234" label="Broker1" version="1"> <ControlGroup> <DynamicSubscriptionEngine> <Topic name="stock/IBM"> <Create> <ACLEntry principalName="Fred" principalType="user" publish="false" subscribe="inherit" persistent="true"/> </Create> </Topic> </DynamicSubscriptionEngine> </ControlGroup> </Broker>
Event publication topic = "$SYS/Broker/Broker1/Topic/stock/IBM" <Broker uuid="1234" label="Broker1" version="1"> <ControlGroup> <DynamicSubscriptionEngine> <Topic name="stock/IBM"> <Change> <ACLEntry principalName="Fred" principalType="user" publish="true" subscribe="false" persistent="inherit"/> </Change> </Topic> </DynamicSubscriptionEngine> </ControlGroup> </Broker>
Event publication topic = "$SYS/Broker/Broker1/Topic/stock/IBM" <Broker uuid="1234" label="Broker1" version="1"> <ControlGroup> <DynamicSubscriptionEngine> <Topic name="stock/IBM"> <Delete> <ACLEntry principalName="Fred"/> </Delete> </Topic> </DynamicSubscriptionEngine> </ControlGroup> </Broker>
Event publication topic = "$SYS/Broker/Broker1/Topic/stock/IBM" <Broker uuid="1234" label="Broker1" version="1"> <ControlGroup> <DynamicSubscriptionEngine> <Topic name="stock/IBM"> <Delete> <AllACLEntries/> </Delete> </Topic> </DynamicSubscriptionEngine> </ControlGroup> </Broker>
Event publication topic = "$SYS/Broker/Broker1/Topic" <Broker uuid="1234" label="Broker1" version="1"> <ControlGroup> <DynamicSubscriptionEngine> <Delete> <AllACLEntries/> </Delete> </DynamicSubscriptionEngine> </ControlGroup> </Broker>