psdi.security.vmm

Class VMMSyncAdapter

  • java.lang.Object
    • psdi.security.vmm.VMMSyncAdapter
    • Constructor Summary

      Constructors 
      Constructor and Description
      VMMSyncAdapter() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected java.sql.Connection getConnection()
      Returns the connection to be used.
      protected MXLogger getLogger()
      Returns the logger to be used to log messages.
      protected MXLogger getSqlLogger()
      Returns the logger to be used to log SQL messages.
      protected UserInfo getUserInfo()
      Returns the UserInfo for getting mboSets.
      void syncEnded(VMMSyncEvent event)
      Called by the Synchronizer at the end of a full or incremental synchronization to let the listener cleanup any references to objects that are being held for the duration of the synchronization process.
      void syncGroup(VMMSyncEvent event)
      Called by the Synchronizer when a group data need to be synchronized with the database.
      void syncGroupMembers(VMMSyncEvent event)
      Called by the Synchronizer when a group member data need to be synchronized with the database.
      void syncStarting(VMMSyncEvent event)
      Called by the Synchronizer at the begining of a full or incremental synchronization to let the listener initialize itself.
      void syncUser(VMMSyncEvent event)
      Called by the Synchronizer when a user data need to be synchronized with the database.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • connection

        protected java.sql.Connection connection
      • sqlLogger

        protected MXLogger sqlLogger
    • Constructor Detail

      • VMMSyncAdapter

        public VMMSyncAdapter()
    • Method Detail

      • getConnection

        protected java.sql.Connection getConnection()
        Returns the connection to be used.
        Returns:
        the connection to be used.
      • getUserInfo

        protected UserInfo getUserInfo()
        Returns the UserInfo for getting mboSets.
      • getLogger

        protected MXLogger getLogger()
        Returns the logger to be used to log messages.
        Returns:
        the logger to be used to log messages.
      • getSqlLogger

        protected MXLogger getSqlLogger()
        Returns the logger to be used to log SQL messages.
        Returns:
        the logger to be used to log SQL messages.
      • syncStarting

        public void syncStarting(VMMSyncEvent event)
                          throws VMMSyncException
        Called by the Synchronizer at the begining of a full or incremental synchronization to let the listener initialize itself. This is called only once for the entire synchronization process. The listener should hold on to the connection being passed in this event to perform synchronization with the database on subsequent calls.
        Specified by:
        syncStarting in interface VMMSyncListener
        Parameters:
        event - synchronization event that provides additional details to let the listener initialize itself.
        Throws:
        VMMSyncException - if the listener fails to perform the initialization.
      • syncEnded

        public void syncEnded(VMMSyncEvent event)
                       throws VMMSyncException
        Called by the Synchronizer at the end of a full or incremental synchronization to let the listener cleanup any references to objects that are being held for the duration of the synchronization process. This is always called whether the synchronization process completes successfully or fails because of some external problem.
        Specified by:
        syncEnded in interface VMMSyncListener
        Parameters:
        event - synchronization event that provides additional details to the listener.
        Throws:
        VMMSyncException - if the listener fails to cleanup.
      • syncUser

        public void syncUser(VMMSyncEvent event)
                      throws VMMSyncException
        Called by the Synchronizer when a user data need to be synchronized with the database. The event object contains the necessary user synchronization data and all the details about how the data need to be mapped to the database tables.
        Specified by:
        syncUser in interface VMMSyncListener
        Parameters:
        event - synchronization event that provides additional details to perform the user data synchronization with database.
        Throws:
        VMMSyncException - if the listener fails to perform the user data synchronization.
      • syncGroup

        public void syncGroup(VMMSyncEvent event)
                       throws VMMSyncException
        Called by the Synchronizer when a group data need to be synchronized with the database. The event object contains the necessary group synchronization data and all the details about how the data need to be mapped to the database tables.
        Specified by:
        syncGroup in interface VMMSyncListener
        Parameters:
        event - synchronization event that provides additional details to perform the group data synchronization with database.
        Throws:
        VMMSyncException - if the listener fails to perform the group data synchronization.
      • syncGroupMembers

        public void syncGroupMembers(VMMSyncEvent event)
                              throws VMMSyncException
        Called by the Synchronizer when a group member data need to be synchronized with the database. The event object contains the necessary group member synchronization data and all the details about how the data need to be mapped to the database tables.
        Specified by:
        syncGroupMembers in interface VMMSyncListener
        Parameters:
        event - synchronization event that provides additional details to perform the group member data synchronization with database.
        Throws:
        VMMSyncException - if the listener fails to perform the group member data synchronization.