private static void saveManagerInformation(IEnumerable <string> employees, IAuthorizeLogOn adDal, ICustomIdentityDAL dal)
 {
     foreach (var employeeADName in employees)
     {
         var employeeADInfo = adDal.RetrieveUserInformation(employeeADName);
         dal.SaveManagerInfo(employeeADInfo);
     }
 }
 private static void SaveManagerInformation(IEnumerable<string> employees, IAuthorizeLogOn adDal, ICustomIdentityDAL dal)
 {
     foreach (var employeeADName in employees)
     {
         var employeeADInfo = adDal.RetrieveUserInformation(employeeADName);
         dal.SaveManagerInfo(employeeADInfo);
     }
 }
        private void insertUserInfoFromAD(IAuthorizeLogOn adDal, ICustomIdentityDAL dal, string userName)
        {
            var userADInfo = adDal.RetrieveUserInformation(userName);

            if (userADInfo != null)
            {
                dal.SaveIdentity(userADInfo);
            }
        }
示例#4
0
        private void MarkTermDateForMissingEmployees(IAuthorizeLogOn adDal, ICustomIdentityDAL dal)
        {
            var userCollectionDal = IoC.Container.Resolve <IUserCollectionDAL>();
            var userCollection    = userCollectionDal.GetActiveAdUsers();

            foreach (var userName in userCollection)
            {
                if (adDal.RetrieveUserInformation(userName) == null)
                {
                    dal.SetTerminationDate(userName, DateTime.UtcNow);
                }
            }
        }
示例#5
0
        private void MarkTermDateForMissingEmployees(IAuthorizeLogOn adDal, ICustomIdentityDAL dal)
        {
            var userCollectionDal = IoC.Container.Resolve<IUserCollectionDAL>();
            var userCollection = userCollectionDal.GetActiveAdUsers();

            foreach (var userName in userCollection)
            {
                if (adDal.RetrieveUserInformation(userName) == null)
                {
                    dal.SetTerminationDate(userName, DateTime.UtcNow);
                }
            }
        }
 private CustomIdentityDTO InsertUserInfoFromAD(IAuthorizeLogOn adDal, ICustomIdentityDAL dal, string userName)
 {
     var userADInfo = adDal.RetrieveUserInformation(userName);
     return dal.SaveIdentity(userADInfo);
 }
示例#7
0
        private CustomIdentityDTO InsertUserInfoFromAD(IAuthorizeLogOn adDal, ICustomIdentityDAL dal, string userName)
        {
            var userADInfo = adDal.RetrieveUserInformation(userName);

            return(dal.SaveIdentity(userADInfo));
        }
示例#8
0
 private void InsertUserInfoFromAD(IAuthorizeLogOn adDal, ICustomIdentityDAL dal, string userName)
 {
     var userADInfo = adDal.RetrieveUserInformation(userName);
     if (userADInfo != null)
     {
         dal.SaveIdentity(userADInfo);
     }
 }