Class GrupServiceBase

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

    public abstract class GrupServiceBase
    extends Object
    implements es.caib.seycon.ng.servei.GrupService

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

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

      • GrupServiceBase

        public GrupServiceBase()
    • Method Detail

      • setGroupService

        public void setGroupService​(com.soffid.iam.service.GroupService groupService)
        Sets reference to groupService.
      • getGroupService

        public com.soffid.iam.service.GroupService getGroupService()
        Gets reference to groupService.
      • findGroupByJsonQueryAsync

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.Grup> findGroupByJsonQueryAsync​(String query)
                                                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByJsonQueryAsync in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByJsonQueryAsync

        protected abstract com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.Grup> handleFindGroupByJsonQueryAsync​(String query)
                                                                                                              throws Exception
        Throws:
        Exception
      • findGroupByTextAndFilterAsync

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.Grup> findGroupByTextAndFilterAsync​(String text,
                                                                                                       String filter)
                                                                                                throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByTextAndFilterAsync in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByTextAndFilterAsync

        protected abstract com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.Grup> handleFindGroupByTextAndFilterAsync​(String text,
                                                                                                                         String filter)
                                                                                                                  throws Exception
        Throws:
        Exception
      • findGroupByTextAsync

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.Grup> findGroupByTextAsync​(String text)
                                                                                       throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByTextAsync in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByTextAsync

        protected abstract com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.Grup> handleFindGroupByTextAsync​(String text)
                                                                                                         throws Exception
        Throws:
        Exception
      • findGroupHistoryByTextAndFilterAsync

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.Grup> findGroupHistoryByTextAndFilterAsync​(String text,
                                                                                                              String filter,
                                                                                                              Date date)
                                                                                                       throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupHistoryByTextAndFilterAsync in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupHistoryByTextAndFilterAsync

        protected abstract com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.Grup> handleFindGroupHistoryByTextAndFilterAsync​(String text,
                                                                                                                                String filter,
                                                                                                                                Date date)
                                                                                                                         throws Exception
        Throws:
        Exception
      • findUsuarisPertanyenAlGrupByCodiGrupAsync

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.UsuariGrup> findUsuarisPertanyenAlGrupByCodiGrupAsync​(String codiGrup)
                                                                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsuarisPertanyenAlGrupByCodiGrupAsync in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsuarisPertanyenAlGrupByCodiGrupAsync

        protected abstract com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.UsuariGrup> handleFindUsuarisPertanyenAlGrupByCodiGrupAsync​(String codiGrup)
                                                                                                                                    throws Exception
        Throws:
        Exception
      • findGroupByJsonQuery

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<es.caib.seycon.ng.comu.Grup> findGroupByJsonQuery​(String query,
                                                                                                Integer startIndex,
                                                                                                Integer count)
                                                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByJsonQuery in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByJsonQuery

        protected abstract com.soffid.iam.api.PagedResult<es.caib.seycon.ng.comu.Grup> handleFindGroupByJsonQuery​(String query,
                                                                                                                  Integer startIndex,
                                                                                                                  Integer count)
                                                                                                           throws Exception
        Throws:
        Exception
      • findGroupByTextAndFilter

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<es.caib.seycon.ng.comu.Grup> findGroupByTextAndFilter​(String text,
                                                                                                    String filter,
                                                                                                    Integer first,
                                                                                                    Integer pageSize)
                                                                                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByTextAndFilter in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByTextAndFilter

        protected abstract com.soffid.iam.api.PagedResult<es.caib.seycon.ng.comu.Grup> handleFindGroupByTextAndFilter​(String text,
                                                                                                                      String filter,
                                                                                                                      Integer first,
                                                                                                                      Integer pageSize)
                                                                                                               throws Exception
        Throws:
        Exception
      • findGroupUserByJsonQuery

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<es.caib.seycon.ng.comu.UsuariGrup> findGroupUserByJsonQuery​(String query,
                                                                                                          Integer startIndex,
                                                                                                          Integer count)
                                                                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupUserByJsonQuery in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupUserByJsonQuery

        protected abstract com.soffid.iam.api.PagedResult<es.caib.seycon.ng.comu.UsuariGrup> handleFindGroupUserByJsonQuery​(String query,
                                                                                                                            Integer startIndex,
                                                                                                                            Integer count)
                                                                                                                     throws Exception
        Throws:
        Exception
      • create

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

        protected abstract es.caib.seycon.ng.comu.Grup handleCreate​(es.caib.seycon.ng.comu.Grup grup)
                                                             throws Exception
        Throws:
        Exception
      • createHistoric

        @Transactional(rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Grup createHistoric​(es.caib.seycon.ng.comu.Grup grup)
                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createHistoric in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreateHistoric

        protected abstract es.caib.seycon.ng.comu.Grup handleCreateHistoric​(es.caib.seycon.ng.comu.Grup grup)
                                                                     throws Exception
        Throws:
        Exception
      • findGroupByGroupNameAndDate

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Grup findGroupByGroupNameAndDate​(String codi,
                                                                       Date date)
                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByGroupNameAndDate in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByGroupNameAndDate

        protected abstract es.caib.seycon.ng.comu.Grup handleFindGroupByGroupNameAndDate​(String codi,
                                                                                         Date date)
                                                                                  throws Exception
        Throws:
        Exception
      • findGrupByCodiGrup

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

        protected abstract es.caib.seycon.ng.comu.Grup handleFindGrupByCodiGrup​(String codi)
                                                                         throws Exception
        Throws:
        Exception
      • findGrupById

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Grup findGrupById​(Long grupId)
                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGrupById in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGrupById

        protected abstract es.caib.seycon.ng.comu.Grup handleFindGrupById​(Long grupId)
                                                                   throws Exception
        Throws:
        Exception
      • findGrupPrimariByCodiUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Grup findGrupPrimariByCodiUsuari​(String codiUsuari)
                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGrupPrimariByCodiUsuari in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGrupPrimariByCodiUsuari

        protected abstract es.caib.seycon.ng.comu.Grup handleFindGrupPrimariByCodiUsuari​(String codiUsuari)
                                                                                  throws Exception
        Throws:
        Exception
      • getSuperGrup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Grup getSuperGrup​(String codiGrup)
                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getSuperGrup in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetSuperGrup

        protected abstract es.caib.seycon.ng.comu.Grup handleGetSuperGrup​(String codiGrup)
                                                                   throws Exception
        Throws:
        Exception
      • update

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

        protected abstract es.caib.seycon.ng.comu.Grup handleUpdate​(es.caib.seycon.ng.comu.Grup grup)
                                                             throws Exception
        Throws:
        Exception
      • getServidorOfimatic

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Maquina getServidorOfimatic​(es.caib.seycon.ng.comu.Grup grup)
                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getServidorOfimatic in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetServidorOfimatic

        protected abstract es.caib.seycon.ng.comu.Maquina handleGetServidorOfimatic​(es.caib.seycon.ng.comu.Grup grup)
                                                                             throws Exception
        Throws:
        Exception
      • create

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

        protected abstract es.caib.seycon.ng.comu.UsuariGrup handleCreate​(es.caib.seycon.ng.comu.UsuariGrup usuariGrup)
                                                                   throws Exception
        Throws:
        Exception
      • findUsuariGrupByCodiUsuariAndCodiGrup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.UsuariGrup findUsuariGrupByCodiUsuariAndCodiGrup​(String codiUsuari,
                                                                                       String codiGrup)
                                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsuariGrupByCodiUsuariAndCodiGrup in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsuariGrupByCodiUsuariAndCodiGrup

        protected abstract es.caib.seycon.ng.comu.UsuariGrup handleFindUsuariGrupByCodiUsuariAndCodiGrup​(String codiUsuari,
                                                                                                         String codiGrup)
                                                                                                  throws Exception
        Throws:
        Exception
      • update

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

        protected abstract es.caib.seycon.ng.comu.UsuariGrup handleUpdate​(es.caib.seycon.ng.comu.UsuariGrup usuariGrup)
                                                                   throws Exception
        Throws:
        Exception
      • findGroupNames

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       readOnly=true)
        public Collection<String> findGroupNames()
                                          throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupNames in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGrupsByCodiUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Grup> findGrupsByCodiUsuari​(String codiUsuari)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGrupsByCodiUsuari in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGrupsByCodiUsuari

        protected abstract Collection<es.caib.seycon.ng.comu.Grup> handleFindGrupsByCodiUsuari​(String codiUsuari)
                                                                                        throws Exception
        Throws:
        Exception
      • findGrupsByFiltre

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Grup> findGrupsByFiltre​(String codi,
                                                                         String pare,
                                                                         String unitatOfimatica,
                                                                         String descripcio,
                                                                         String tipus,
                                                                         String obsolet)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGrupsByFiltre in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGrupsByFiltre

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Grup> findGrupsByFiltre​(String codi,
                                                                         String pare,
                                                                         String unitatOfimatica,
                                                                         String descripcio,
                                                                         String tipus,
                                                                         String obsolet,
                                                                         String servidorOfimatic,
                                                                         String seccioPressupostaria)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGrupsByFiltre in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGrupsByTipusGrup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Grup> findGrupsByTipusGrup​(String tipus)
                                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGrupsByTipusGrup in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGrupsFromRolsByCodiUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Grup> findGrupsFromRolsByCodiUsuari​(String codiUsuari)
                                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGrupsFromRolsByCodiUsuari in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGrupsFromRolsByCodiUsuari

        protected abstract Collection<es.caib.seycon.ng.comu.Grup> handleFindGrupsFromRolsByCodiUsuari​(String codiUsuari)
                                                                                                throws Exception
        Throws:
        Exception
      • findGrupsFromUsuarisByCodiUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Grup> findGrupsFromUsuarisByCodiUsuari​(String codiUsuari)
                                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGrupsFromUsuarisByCodiUsuari in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGrupsFromUsuarisByCodiUsuari

        protected abstract Collection<es.caib.seycon.ng.comu.Grup> handleFindGrupsFromUsuarisByCodiUsuari​(String codiUsuari)
                                                                                                   throws Exception
        Throws:
        Exception
      • findRolsUsuarisAmbGrupByCodiUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.RolAccount> findRolsUsuarisAmbGrupByCodiUsuari​(String codiUsuari)
                                                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findRolsUsuarisAmbGrupByCodiUsuari in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindRolsUsuarisAmbGrupByCodiUsuari

        protected abstract Collection<es.caib.seycon.ng.comu.RolAccount> handleFindRolsUsuarisAmbGrupByCodiUsuari​(String codiUsuari)
                                                                                                           throws Exception
        Throws:
        Exception
      • findRolsUsuarisTipusDominiGrupsAndGrupsUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.RolAccount> findRolsUsuarisTipusDominiGrupsAndGrupsUsuari​(String codiGrup)
                                                                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findRolsUsuarisTipusDominiGrupsAndGrupsUsuari in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindRolsUsuarisTipusDominiGrupsAndGrupsUsuari

        protected abstract Collection<es.caib.seycon.ng.comu.RolAccount> handleFindRolsUsuarisTipusDominiGrupsAndGrupsUsuari​(String codiGrup)
                                                                                                                      throws Exception
        Throws:
        Exception
      • findSubGrupsByCodiGrup

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

        protected abstract Collection<es.caib.seycon.ng.comu.Grup> handleFindSubGrupsByCodiGrup​(String codi)
                                                                                         throws Exception
        Throws:
        Exception
      • findSubGrupsByCodiGrupAndDate

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Grup> findSubGrupsByCodiGrupAndDate​(String codi,
                                                                                     Date date)
                                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findSubGrupsByCodiGrupAndDate in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindSubGrupsByCodiGrupAndDate

        protected abstract Collection<es.caib.seycon.ng.comu.Grup> handleFindSubGrupsByCodiGrupAndDate​(String codi,
                                                                                                       Date date)
                                                                                                throws Exception
        Throws:
        Exception
      • findUserGroupHistoryByUserName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.UsuariGrup> findUserGroupHistoryByUserName​(String userName)
                                                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserGroupHistoryByUserName in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUserGroupHistoryByUserName

        protected abstract Collection<es.caib.seycon.ng.comu.UsuariGrup> handleFindUserGroupHistoryByUserName​(String userName)
                                                                                                       throws Exception
        Throws:
        Exception
      • findUsuariGrupsByCodiUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.UsuariGrup> findUsuariGrupsByCodiUsuari​(String codiUsuari)
                                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsuariGrupsByCodiUsuari in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsuariGrupsByCodiUsuari

        protected abstract Collection<es.caib.seycon.ng.comu.UsuariGrup> handleFindUsuariGrupsByCodiUsuari​(String codiUsuari)
                                                                                                    throws Exception
        Throws:
        Exception
      • findUsuarisPertanyenAlGrupByCodiGrup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.UsuariGrup> findUsuarisPertanyenAlGrupByCodiGrup​(String codiGrup)
                                                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsuarisPertanyenAlGrupByCodiGrup in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsuarisPertanyenAlGrupByCodiGrup

        protected abstract Collection<es.caib.seycon.ng.comu.UsuariGrup> handleFindUsuarisPertanyenAlGrupByCodiGrup​(String codiGrup)
                                                                                                             throws Exception
        Throws:
        Exception
      • findUsuarisPertanyenAlGrupByCodiGrup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.UsuariGrup> findUsuarisPertanyenAlGrupByCodiGrup​(String codiGrup,
                                                                                                  Date date)
                                                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsuarisPertanyenAlGrupByCodiGrup in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsuarisPertanyenAlGrupByCodiGrup

        protected abstract Collection<es.caib.seycon.ng.comu.UsuariGrup> handleFindUsuarisPertanyenAlGrupByCodiGrup​(String codiGrup,
                                                                                                                    Date date)
                                                                                                             throws Exception
        Throws:
        Exception
      • getConselleriesAmbDireccionsGenerals

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

        protected abstract Collection<es.caib.seycon.ng.comu.Grup> handleGetConselleriesAmbDireccionsGenerals()
                                                                                                       throws Exception
        Throws:
        Exception
      • getGrups

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Grup> getLlistaDePares​(String codiGrup)
                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getLlistaDePares in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getRolsFromGrup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Rol> getRolsFromGrup​(es.caib.seycon.ng.comu.Grup grup)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getRolsFromGrup in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetRolsFromGrup

        protected abstract Collection<es.caib.seycon.ng.comu.Rol> handleGetRolsFromGrup​(es.caib.seycon.ng.comu.Grup grup)
                                                                                 throws Exception
        Throws:
        Exception
      • getRolsFromGrup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.RolsGrup> getRolsFromGrup​(String codiGrup)
                                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getRolsFromGrup in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getRolsFromGrupYParesGrup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.RolsGrup> getRolsFromGrupYParesGrup​(es.caib.seycon.ng.comu.Grup grup)
                                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getRolsFromGrupYParesGrup in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetRolsFromGrupYParesGrup

        protected abstract Collection<es.caib.seycon.ng.comu.RolsGrup> handleGetRolsFromGrupYParesGrup​(es.caib.seycon.ng.comu.Grup grup)
                                                                                                throws Exception
        Throws:
        Exception
      • findGroupByJsonQuery

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.Grup> findGroupByJsonQuery​(String query)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByJsonQuery in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByJsonQuery

        protected abstract List<es.caib.seycon.ng.comu.Grup> handleFindGroupByJsonQuery​(String query)
                                                                                 throws Exception
        Throws:
        Exception
      • findGroupByText

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.Grup> findGroupByText​(String text)
                                                          throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByText in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByText

        protected abstract List<es.caib.seycon.ng.comu.Grup> handleFindGroupByText​(String text)
                                                                            throws Exception
        Throws:
        Exception
      • findGroupByTextAndFilter

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.Grup> findGroupByTextAndFilter​(String text,
                                                                          String filter)
                                                                   throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByTextAndFilter in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByTextAndFilter

        protected abstract List<es.caib.seycon.ng.comu.Grup> handleFindGroupByTextAndFilter​(String text,
                                                                                            String filter)
                                                                                     throws Exception
        Throws:
        Exception
      • addGrupToUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void addGrupToUsuari​(String codiUsuari,
                                    String codiGrup)
                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        addGrupToUsuari in interface es.caib.seycon.ng.servei.GrupService
        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.Grup grup)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delete in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelete

        protected abstract void handleDelete​(es.caib.seycon.ng.comu.Grup grup)
                                      throws Exception
        Throws:
        Exception
      • delete

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

        protected abstract void handleDelete​(es.caib.seycon.ng.comu.UsuariGrup usuariGrup)
                                      throws Exception
        Throws:
        Exception
      • propagateRolsChangesToDispatcher

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void propagateRolsChangesToDispatcher​(String codiGrup)
                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        propagateRolsChangesToDispatcher in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handlePropagateRolsChangesToDispatcher

        protected abstract void handlePropagateRolsChangesToDispatcher​(String codiGrup)
                                                                throws Exception
        Throws:
        Exception
      • removeGrupFromUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void removeGrupFromUsuari​(String codiUsuari,
                                         String codiGrup)
                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        removeGrupFromUsuari in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRemoveGrupFromUsuari

        protected abstract void handleRemoveGrupFromUsuari​(String codiUsuari,
                                                           String codiGrup)
                                                    throws Exception
        Throws:
        Exception
      • setSuperGrup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void setSuperGrup​(String codiSubGrup,
                                 String codiSuperGrup)
                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        setSuperGrup in interface es.caib.seycon.ng.servei.GrupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPrincipal

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