Class DBPasswordPullActions

  • All Implemented Interfaces:
    ProvisioningActions, PullActions

    public class DBPasswordPullActions
    extends Object
    implements PullActions
    A PullActions implementation which allows the ability to import passwords from a Database backend, where the passwords are hashed according to the password cipher algorithm property of the (DB) Connector and HEX-encoded.
    • Constructor Detail

      • DBPasswordPullActions

        public DBPasswordPullActions()
    • Method Detail

      • beforeProvision

        @Transactional(readOnly=true)
        public void beforeProvision​(ProvisioningProfile<?,​?> profile,
                                    SyncDelta delta,
                                    AnyCR anyCR)
                             throws org.quartz.JobExecutionException
        Description copied from interface: PullActions
        Action to be executed before to create a pulled entity locally. The entity is created locally upon pull in case of the un-matching rule UnmatchingRule.PROVISION (default un-matching rule) is applied.
        Specified by:
        beforeProvision in interface PullActions
        Parameters:
        profile - profile of the pull being executed.
        delta - retrieved pull information
        anyCR - create request
        Throws:
        org.quartz.JobExecutionException - in case of generic failure
      • beforeUpdate

        @Transactional(readOnly=true)
        public void beforeUpdate​(ProvisioningProfile<?,​?> profile,
                                 SyncDelta delta,
                                 EntityTO entityTO,
                                 AnyUR anyUR)
                          throws org.quartz.JobExecutionException
        Description copied from interface: PullActions
        Action to be executed before to update a pulled entity locally. The entity is updated upon pull in case of the matching rule MatchingRule.UPDATE (default matching rule) is applied.
        Specified by:
        beforeUpdate in interface PullActions
        Parameters:
        profile - profile of the pull being executed.
        delta - retrieved pull information
        entityTO - entity
        anyUR - modification
        Throws:
        org.quartz.JobExecutionException - in case of generic failure.
      • parseEncodedPassword

        protected void parseEncodedPassword​(String password,
                                            Connector connector)
      • after

        @Transactional
        public void after​(ProvisioningProfile<?,​?> profile,
                          SyncDelta delta,
                          EntityTO any,
                          ProvisioningReport result)
                   throws org.quartz.JobExecutionException
        Description copied from interface: PullActions
        Action to be executed after each local entity pull.
        Specified by:
        after in interface PullActions
        Parameters:
        profile - profile of the pull being executed.
        delta - retrieved pull information (may be modified by beforeProvisionTO / beforeUpdate / beforeDelete)
        any - entity
        result - global pull results at the current pull step
        Throws:
        org.quartz.JobExecutionException - in case of generic failure