public Role[] GetRoleList(RoleListRequestData request)
        {
            VBMCallDispatcher callDispatcher = new VBMCallDispatcher();

            RoleListResponse roleListResponse = new RoleListResponse();
            RoleListRequest  roleListRequest  = new RoleListRequest();

            if (request == null)
            {
                return(null);
            }
            try
            {
                roleListRequest.UserID      = request.UserID;
                roleListRequest.ChannelCode = Channel.GetChannelID(Channels.BackOffice);
                roleListResponse            = callDispatcher.DispatchAction <RoleListRequest, VeriBranch.Common.MessageDefinitions.RoleListResponse>(TransactionNameConstants.GetRoleListTransaction, MethodTypeEnum.Execute, Channels.SharedAspects, roleListRequest);
            }
            catch (Exception ex)
            {
                throw new FaultException(
                          ex.Message,
                          new FaultCode("Response Fault"));
            }

            if (roleListResponse == null)
            {
                return(null);
            }

            return(roleListResponse.Role);
        }
        protected override StaticDataConfigResponse GetStaticDataConfig()
        {
            StaticDataConfigResponse staticDataConfigResponse = null;

            if (ConfigReader.StaticDataConfigurationGetType == VeriBranch.Utilities.ConfigurationGetTypeEnum.FromDataBase)
            {
                StaticDataConfigRequest staticDataConfigRequest = new StaticDataConfigRequest();

                staticDataConfigRequest.ManageRequestType = VeriBranch.Common.MessageDefinitions.ManageRequestTypeEnum.List;
                staticDataConfigRequest.WebSiteName       = ConfigReader.WebSiteName;

                var callDispatcher = new VBMCallDispatcher();
                staticDataConfigResponse = callDispatcher.DispatchAction <StaticDataConfigRequest, StaticDataConfigResponse>(
                    TransactionNameConstants.StaticDataConfigTransaction, MethodTypeEnum.Execute, Channels.SharedAspects, staticDataConfigRequest);

                if (staticDataConfigResponse != null && !String.IsNullOrEmpty(staticDataConfigResponse.TransactionStaticDataConfig) && !String.IsNullOrEmpty(staticDataConfigResponse.TransactionStaticServiceConfig))
                {
                    logger.Info("Static data config is fetched successfully. Continue generating cache.");
                }
                else
                {
                    string errorText = "Static data config fetch is not succedded. Throws configuration exception.";

                    logger.Error(errorText);
                    throw new ConfigurationException(errorText);
                }
            }
            else
            {
                staticDataConfigResponse = new StaticDataConfigResponse();
            }

            return(staticDataConfigResponse);
        }
Exemplo n.º 3
0
        private SoftTokenRegistrationResponse SoftTokenRegistration(SoftTokenRegistrationRequest model)
        {
            SoftTokenRegistrationResponse response = null;
            SoftTokenRegistrationRequest  request  = model;
            var callDispatcher = new VBMCallDispatcher();

            response = callDispatcher.DispatchAction <SoftTokenRegistrationRequest, SoftTokenRegistrationResponse>(
                "SoftTokenRegistrationTransaction", MethodTypeEnum.Execute, Channels.SharedAspects, request);
            return(response);
        }
Exemplo n.º 4
0
        private GenerateSoftTokenResponse GenerateSoftToken(GenerateSoftTokenRequest model)
        {
            GenerateSoftTokenResponse response = null;
            GenerateSoftTokenRequest  request  = model;
            var callDispatcher = new VBMCallDispatcher();

            response = callDispatcher.DispatchAction <GenerateSoftTokenRequest, GenerateSoftTokenResponse>(
                "GenerateSoftTokenTransaction", MethodTypeEnum.Execute, Channels.SharedAspects, request);
            return(response);
        }
        private BackOfficeUserManagementResult CreateOrUpdateUser(BackOfficeUserManagementData userData, RequestTypeEnum requestType)
        {
            VBMCallDispatcher callDispatcher        = new VBMCallDispatcher();
            BackOfficeUserManagementRequest request = new BackOfficeUserManagementRequest {
                User = userData
            };

            request.RequestType = requestType;
            var response = new BackOfficeUserManagementResponse();

            response = callDispatcher.DispatchAction <BackOfficeUserManagementRequest, BackOfficeUserManagementResponse>(TransactionNameConstants.CreateUserTransaction, MethodTypeEnum.Execute, Channels.SharedAspects, request);
            return(response.Result);
        }
Exemplo n.º 6
0
        private StaticDataConfigResponse StaticDataInitializer()
        {
            StaticDataConfigResponse staticDataConfigResponse = new StaticDataConfigResponse();
            StaticDataConfigRequest  staticDataConfigRequest  = new StaticDataConfigRequest();

            staticDataConfigRequest.ManageRequestType = VeriBranch.Common.MessageDefinitions.ManageRequestTypeEnum.List;
            staticDataConfigRequest.WebSiteName       = ConfigReader.WebSiteName;
            var callDispatcher = new VBMCallDispatcher();

            staticDataConfigResponse = callDispatcher.DispatchAction <StaticDataConfigRequest, StaticDataConfigResponse>(
                TransactionNameConstants.StaticDataConfigTransaction, MethodTypeEnum.Execute, Channels.SharedAspects, staticDataConfigRequest);
            //return staticDataConfigResponse;
            return(staticDataConfigResponse);
        }
Exemplo n.º 7
0
        public void VerifyInternetBankingPassword(IVRVerifyInternetBankingPasswordRequest request)
        {
            VBMCallDispatcher callDispatcher = new VBMCallDispatcher();

            callDispatcher.DispatchAction <IVRVerifyInternetBankingPasswordRequest, IVROperationResponse>(Custom.Common.Constants.TransactionNameConstants.IVRVerifyInternetBankingPasswordTransaction, MethodTypeEnum.Execute, Channels.SharedAspects, request);
        }
Exemplo n.º 8
0
        public void BlockUser(IVROperationRequest request)
        {
            VBMCallDispatcher callDispatcher = new VBMCallDispatcher();

            callDispatcher.DispatchAction <IVROperationRequest, IVROperationResponse>(Custom.Common.Constants.TransactionNameConstants.IVRBlockUserTransaction, MethodTypeEnum.Execute, Channels.SharedAspects, request);
        }
Exemplo n.º 9
0
        public void VerifyCardPin(IVRCardOperationsRequest request)
        {
            VBMCallDispatcher callDispatcher = new VBMCallDispatcher();

            callDispatcher.DispatchAction <IVRCardOperationsRequest, IVROperationResponse>(Custom.Common.Constants.TransactionNameConstants.IVRVerifyCreditCardPinTransaction, MethodTypeEnum.Execute, Channels.SharedAspects, request);
        }