Пример #1
0
        public ElementoRubrica Insert(ElementoRubrica elemento)
        {
            try
            {
                SecurityHelper.Login(this.Credentials);

                return(Rubrica.Library.RubricaServices.Insert(elemento));
            }
            catch (Exception ex)
            {
                throw SoapExceptionFactory.Create(ex);
            }
        }
Пример #2
0
        public void Delete(ElementoRubrica elemento)
        {
            try
            {
                SecurityHelper.Login(this.Credentials);

                Rubrica.Library.RubricaServices.Delete(elemento);
            }
            catch (Exception ex)
            {
                throw SoapExceptionFactory.Create(ex);
            }
        }
Пример #3
0
        public ElementoRubrica[] Search(ref OpzioniRicerca opzioniRicerca)
        {
            try
            {
                SecurityHelper.Login(this.Credentials);

                return(Rubrica.Library.RubricaServices.Search(opzioniRicerca));
            }
            catch (Exception ex)
            {
                throw SoapExceptionFactory.Create(ex);
            }
        }
Пример #4
0
        public void ChangePassword(Rubrica.Library.Security.ChangePwdSecurityCredentials credentials)
        {
            try
            {
                SecurityHelper.Login(this.Credentials);

                Rubrica.Library.UtentiServices.ChangePassword(credentials);
            }
            catch (Exception ex)
            {
                throw SoapExceptionFactory.Create(ex);
            }
        }
Пример #5
0
        public void Delete(Utente utente)
        {
            try
            {
                SecurityHelper.Login(this.Credentials);

                Rubrica.Library.UtentiServices.Delete(utente);
            }
            catch (Exception ex)
            {
                throw SoapExceptionFactory.Create(ex);
            }
        }
Пример #6
0
        public Utente Update(Utente utente)
        {
            try
            {
                SecurityHelper.Login(this.Credentials);

                return(Rubrica.Library.UtentiServices.Update(utente));
            }
            catch (Exception ex)
            {
                throw SoapExceptionFactory.Create(ex);
            }
        }
Пример #7
0
        public ElementoRubrica UpdateMulticasella(ElementoRubrica elemento)
        {
            try
            {
                SecurityHelper.Login(this.Credentials);

                // Nuova gestione, corrispondente multicasella
                return(Rubrica.Library.RubricaServices.Update(elemento, true));
            }
            catch (Exception ex)
            {
                throw SoapExceptionFactory.Create(ex);
            }
        }
Пример #8
0
 public Rubrica.Library.Security.SecurityCredentialsResult ValidateCredentials()
 {
     try
     {
         return(Rubrica.Library.UtentiServices.ValidateCredentials
                (
                    new Rubrica.Library.Security.SecurityCredentials
         {
             UserName = this.Credentials.UserName,
             Password = this.Credentials.Password
         }
                ));
     }
     catch (Exception ex)
     {
         throw SoapExceptionFactory.Create(ex);
     }
 }