When a dynamic item type is created, removed, or modified, an atg.repository.dynamic.DynamicTypeEvent
repository event is broadcast. This class has a DynamicEvent
inner class that defines the set of available event types:
SUBTYPE_ADDED
SUBTYPE_REMOVED
SUBTYPE_CHANGED
PROPERTY_ADDED
PROPERTY_REMOVED
PROPERTY_CHANGED
DynamicTypeEvent
has properties for storing the event type (eventType
), the name of the affected item descriptor (descriptorName
), and the name of the parent item descriptor (parentDescriptorName
).
To be notified of these events, classes need to implement the atg.repository.dynamic.DynamicTypeEventListener
interface and use the GSARepository.addDynamicTypeEventListeners()
method to register themselves with the appropriate repository.