Class CrudRegistryServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.CrudRegistryService
    Direct Known Subclasses:
    CrudRegistryServiceImpl

    public abstract class CrudRegistryServiceBase
    extends Object
    implements com.soffid.iam.service.CrudRegistryService

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

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

      • CrudRegistryServiceBase

        public CrudRegistryServiceBase()
    • Method Detail

      • getHandler

        @Transactional(rollbackFor=java.lang.Exception.class)
        public <E> com.soffid.iam.api.CrudHandler<E> getHandler​(Class<E> cl)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getHandler in interface com.soffid.iam.service.CrudRegistryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetHandler

        protected abstract <E> com.soffid.iam.api.CrudHandler<E> handleGetHandler​(Class<E> cl)
                                                                           throws Exception
        Throws:
        Exception
      • getHandler

        @Transactional(rollbackFor=java.lang.Exception.class)
        public <E> com.soffid.iam.api.CrudHandler<E> getHandler​(String className)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getHandler in interface com.soffid.iam.service.CrudRegistryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetHandler

        protected abstract <E> com.soffid.iam.api.CrudHandler<E> handleGetHandler​(String className)
                                                                           throws Exception
        Throws:
        Exception
      • registerDefaultHandlers

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void registerDefaultHandlers()
                                     throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        registerDefaultHandlers in interface com.soffid.iam.service.CrudRegistryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRegisterDefaultHandlers

        protected abstract void handleRegisterDefaultHandlers()
                                                       throws Exception
        Throws:
        Exception
      • registerHandler

        @Transactional(rollbackFor=java.lang.Exception.class)
        public <E> void registerHandler​(Class<E> cl,
                                        com.soffid.iam.api.CrudHandler<E> handler)
                                 throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        registerHandler in interface com.soffid.iam.service.CrudRegistryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRegisterHandler

        protected abstract <E> void handleRegisterHandler​(Class<E> cl,
                                                          com.soffid.iam.api.CrudHandler<E> handler)
                                                   throws Exception
        Throws:
        Exception
      • getPrincipal

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