Class ServeiServiceBase

  • All Implemented Interfaces:
    es.caib.seycon.ng.servei.ServeiService

    public abstract class ServeiServiceBase
    extends Object
    implements es.caib.seycon.ng.servei.ServeiService

    Spring Service base class for es.caib.seycon.ng.servei.ServeiService, provides access to all services and entities referenced by this service.

    see es.caib.seycon.ng.servei.ServeiService
    • Constructor Detail

      • ServeiServiceBase

        public ServeiServiceBase()
    • Method Detail

      • setServiceService

        public void setServiceService​(com.soffid.iam.service.ServiceService serviceService)
        Sets reference to serviceService.
      • getServiceService

        public com.soffid.iam.service.ServiceService getServiceService()
        Gets reference to serviceService.
      • create

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Servei create​(es.caib.seycon.ng.comu.Servei servei)
                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface es.caib.seycon.ng.servei.ServeiService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract es.caib.seycon.ng.comu.Servei handleCreate​(es.caib.seycon.ng.comu.Servei servei)
                                                               throws Exception
        Throws:
        Exception
      • findServeiByCodi

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Servei findServeiByCodi​(String codi)
                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findServeiByCodi in interface es.caib.seycon.ng.servei.ServeiService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindServeiByCodi

        protected abstract es.caib.seycon.ng.comu.Servei handleFindServeiByCodi​(String codi)
                                                                         throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Servei update​(es.caib.seycon.ng.comu.Servei servei)
                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface es.caib.seycon.ng.servei.ServeiService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

        protected abstract es.caib.seycon.ng.comu.Servei handleUpdate​(es.caib.seycon.ng.comu.Servei servei)
                                                               throws Exception
        Throws:
        Exception
      • findServeisByCriteri

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Servei> findServeisByCriteri​(String codi,
                                                                              String descripcio)
                                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findServeisByCriteri in interface es.caib.seycon.ng.servei.ServeiService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getServeis

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Servei> getServeis()
                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getServeis in interface es.caib.seycon.ng.servei.ServeiService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • delete

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void delete​(es.caib.seycon.ng.comu.Servei servei)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delete in interface es.caib.seycon.ng.servei.ServeiService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelete

        protected abstract void handleDelete​(es.caib.seycon.ng.comu.Servei servei)
                                      throws Exception
        Throws:
        Exception
      • getPrincipal

        protected Principal getPrincipal()
        Gets the current principal if one has been set, otherwise returns null.
        Returns:
        the current principal