Class ProvisionLoginStatusHelper


  • @Component
    public class ProvisionLoginStatusHelper
    extends Object
    Author:
    Lev Bornovalov The purpose of this class is to provide a testable! component, that will do a few things: 1) Set the Status and ProvisionLoginEnum flag on the Login record 2) Set the Operation of the Login record according to weather or not the record exists 3) Modify the list of resources to provision and list of resource to de-provision the user from

    This logic is from 3.5 DeprovisionSelectedResourceHelper and ProvisionSelectedResourceHelper classes

    • Constructor Detail

      • ProvisionLoginStatusHelper

        public ProvisionLoginStatusHelper()
    • Method Detail

      • processLogin

        public void processLogin​(AbstractLogin principal,
                                 boolean skipProvisioning,
                                 boolean loginExistsInOpenIAM,
                                 Set<AuthorizationResource> resourcesToDeprovision,
                                 Set<AuthorizationResource> resourcesToProvision,
                                 Set<AuthorizationResource> resourcesCurrentlyEntitledTo)
        * The purpose of this method is to provide a testable! component, that will do a few things: 1) Set the Status and ProvisionLoginEnum flag on the Login record 2) Set the Operation of the Login record according to weather or not the record exists 3) Modify the list of resources to provision and list of resource to de-provision the user from
        Parameters:
        principal - - the principal
        skipProvisioning - - should we skip provisioning for this login?
        loginExistsInOpenIAM - - does the login already exist in OpenIAM ?
        resourcesToDeprovision - - the set of resources to deprovision
        resourcesToProvision - - the set of resources to provision
        resourcesCurrentlyEntitledTo - - the set of resources that the user is currently entitled to