Class ServiceServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.ServiceService
    Direct Known Subclasses:
    ServiceServiceImpl

    public abstract class ServiceServiceBase
    extends Object
    implements com.soffid.iam.service.ServiceService

    Spring Service base class for com.soffid.iam.service.ServiceService, provides access to all services and entities referenced by this service.

    see com.soffid.iam.service.ServiceService
    • Constructor Detail

      • ServiceServiceBase

        public ServiceServiceBase()
    • Method Detail

      • setServiceEntityDao

        public void setServiceEntityDao​(ServiceEntityDao serveiEntityDao)
        Sets reference to serveiEntityDao.
      • getServiceEntityDao

        public ServiceEntityDao getServiceEntityDao()
        Gets reference to serveiEntityDao.
      • create

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Service create​(com.soffid.iam.api.Service servei)
                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.ServiceService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract com.soffid.iam.api.Service handleCreate​(com.soffid.iam.api.Service servei)
                                                            throws Exception
        Throws:
        Exception
      • findServiceByName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Service findServiceByName​(String codi)
                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findServiceByName in interface com.soffid.iam.service.ServiceService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindServiceByName

        protected abstract com.soffid.iam.api.Service handleFindServiceByName​(String codi)
                                                                       throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Service update​(com.soffid.iam.api.Service servei)
                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.ServiceService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

        protected abstract com.soffid.iam.api.Service handleUpdate​(com.soffid.iam.api.Service servei)
                                                            throws Exception
        Throws:
        Exception
      • findServicesByCriteria

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Service> findServicesByCriteria​(String codi,
                                                                             String descripcio)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findServicesByCriteria in interface com.soffid.iam.service.ServiceService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getServices

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Service> getServices()
                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getServices in interface com.soffid.iam.service.ServiceService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • delete

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void delete​(com.soffid.iam.api.Service servei)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delete in interface com.soffid.iam.service.ServiceService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelete

        protected abstract void handleDelete​(com.soffid.iam.api.Service 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