psdi.dm.collection

Class DMCollEventListener

  • java.lang.Object
    • psdi.dm.collection.DMCollEventListener
    • Constructor Detail

      • DMCollEventListener

        public DMCollEventListener()
    • Method Detail

      • handleAddUpdateEvent

        public void handleAddUpdateEvent(java.util.Vector eventInfoVector,
                                         MboRemote mbo,
                                         java.lang.String eventType)
                                  throws java.lang.Exception
        Handles add and update events.
        Parameters:
        eventInfoVector - All events registered for this mbo.
        mbo - The mbo of the event.
        eventType - whether it is add or updateevent.
        Throws:
        java.lang.Exception
      • addUpdateMboToCollection

        public void addUpdateMboToCollection(MboRemote mbo,
                                             long dmCollectionId,
                                             java.lang.String eventType)
                                      throws java.lang.Exception
        Update the mbo if it is already present, otherwise add the mbo to the collection.
        Parameters:
        mbo - The mbo to be added to the collection.
        dmCollectionId - Collection ID of the collection
        eventType - add or update event
        Throws:
        java.lang.Exception
      • handleDeleteEvent

        public void handleDeleteEvent(java.util.Vector eventInfoVector,
                                      MboRemote mbo)
                               throws java.lang.Exception
        Handles delete event.
        Parameters:
        eventInfoVector - All events registered for this mbo
        mbo - The mbo of the event.
        Throws:
        java.lang.Exception
      • deleteFromCollection

        public void deleteFromCollection(MboRemote mbo,
                                         long dmCollectionId)
                                  throws java.lang.Exception
        Delete this object from the collection.
        Parameters:
        mbo - The object to be deleted.
        dmCollectionId - The collection ID of the collection.
        Throws:
        java.lang.Exception