Class UsuariServiceBase

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

    public abstract class UsuariServiceBase
    extends Object
    implements es.caib.seycon.ng.servei.UsuariService

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

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

      • UsuariServiceBase

        public UsuariServiceBase()
    • Method Detail

      • setUserService

        public void setUserService​(com.soffid.iam.service.UserService userService)
        Sets reference to userService.
      • getUserService

        public com.soffid.iam.service.UserService getUserService()
        Gets reference to userService.
      • getMazingerRules

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public byte[] getMazingerRules​(String user)
                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getMazingerRules in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetMazingerRules

        protected abstract byte[] handleGetMazingerRules​(String user)
                                                  throws Exception
        Throws:
        Exception
      • findUserByJsonQueryAsync

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

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

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

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

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

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

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncProcessTracker disableUsers​(String scimQuery,
                                                                   List<com.soffid.iam.api.DisableObjectRule> rules)
                                                            throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        disableUsers in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDisableUsers

        protected abstract com.soffid.iam.api.AsyncProcessTracker handleDisableUsers​(String scimQuery,
                                                                                     List<com.soffid.iam.api.DisableObjectRule> rules)
                                                                              throws Exception
        Throws:
        Exception
      • disableUsersPreview

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncProcessTracker disableUsersPreview​(String scimQuery,
                                                                          List<com.soffid.iam.api.DisableObjectRule> rules,
                                                                          List<Object[]> actions)
                                                                   throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        disableUsersPreview in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDisableUsersPreview

        protected abstract com.soffid.iam.api.AsyncProcessTracker handleDisableUsersPreview​(String scimQuery,
                                                                                            List<com.soffid.iam.api.DisableObjectRule> rules,
                                                                                            List<Object[]> actions)
                                                                                     throws Exception
        Throws:
        Exception
      • findUserByJsonQuery

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

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<es.caib.seycon.ng.comu.Usuari> findUserByTextAndFilter​(String text,
                                                                                                     String filter,
                                                                                                     Integer start,
                                                                                                     Integer end)
                                                                                              throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserByTextAndFilter in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUserByTextAndFilter

        protected abstract com.soffid.iam.api.PagedResult<es.caib.seycon.ng.comu.Usuari> handleFindUserByTextAndFilter​(String text,
                                                                                                                       String filter,
                                                                                                                       Integer start,
                                                                                                                       Integer end)
                                                                                                                throws Exception
        Throws:
        Exception
      • findDadaByCodiTipusDada

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

        protected abstract es.caib.seycon.ng.comu.DadaUsuari handleFindDadaByCodiTipusDada​(String codiUsuari,
                                                                                           String codiTipusDada)
                                                                                    throws Exception
        Throws:
        Exception
      • findServidorCorreuByCodiUsuari

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

        protected abstract es.caib.seycon.ng.comu.Maquina handleFindServidorCorreuByCodiUsuari​(String codiUsuari)
                                                                                        throws Exception
        Throws:
        Exception
      • findServidorHomeByCodiUsuari

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

        protected abstract es.caib.seycon.ng.comu.Maquina handleFindServidorHomeByCodiUsuari​(String codiUsuari)
                                                                                      throws Exception
        Throws:
        Exception
      • findServidorPerfilByCodiUsuari

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

        protected abstract es.caib.seycon.ng.comu.Maquina handleFindServidorPerfilByCodiUsuari​(String codiUsuari)
                                                                                        throws Exception
        Throws:
        Exception
      • creaTargetaExtranet

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

        protected abstract es.caib.seycon.ng.comu.TargetaExtranet handleCreaTargetaExtranet​(String codiUsuari)
                                                                                     throws Exception
        Throws:
        Exception
      • findTargetaExtranetByCodiUsuariAndCodiTargeta

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

        protected abstract es.caib.seycon.ng.comu.TargetaExtranet handleFindTargetaExtranetByCodiUsuariAndCodiTargeta​(String codiUsuari,
                                                                                                                      String codiTargeta)
                                                                                                               throws Exception
        Throws:
        Exception
      • update

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

        protected abstract es.caib.seycon.ng.comu.TargetaExtranet handleUpdate​(es.caib.seycon.ng.comu.TargetaExtranet targetaExtranet)
                                                                        throws Exception
        Throws:
        Exception
      • altaUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Usuari altaUsuari​(byte[] peticio,
                                                        es.caib.signatura.api.Signature signatura)
                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        altaUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleAltaUsuari

        protected abstract es.caib.seycon.ng.comu.Usuari handleAltaUsuari​(byte[] peticio,
                                                                          es.caib.signatura.api.Signature signatura)
                                                                   throws Exception
        Throws:
        Exception
      • baixaUsuari

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

        protected abstract es.caib.seycon.ng.comu.Usuari handleBaixaUsuari​(String codiUsuari)
                                                                    throws Exception
        Throws:
        Exception
      • create

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

        protected abstract es.caib.seycon.ng.comu.Usuari handleCreate​(es.caib.seycon.ng.comu.Usuari usuari)
                                                               throws Exception
        Throws:
        Exception
      • findByNomCurt

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Usuari findByNomCurt​(String nomCurt)
                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findByNomCurt in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindByNomCurt

        protected abstract es.caib.seycon.ng.comu.Usuari handleFindByNomCurt​(String nomCurt)
                                                                      throws Exception
        Throws:
        Exception
      • findUsuariByCodiTipusDadaIValorTipusDada

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Usuari findUsuariByCodiTipusDadaIValorTipusDada​(String codiTipusDada,
                                                                                      String valorTipusDada)
                                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsuariByCodiTipusDadaIValorTipusDada in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsuariByCodiTipusDadaIValorTipusDada

        protected abstract es.caib.seycon.ng.comu.Usuari handleFindUsuariByCodiTipusDadaIValorTipusDada​(String codiTipusDada,
                                                                                                        String valorTipusDada)
                                                                                                 throws Exception
        Throws:
        Exception
      • findUsuariByCodiUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class,
                       readOnly=true)
        public es.caib.seycon.ng.comu.Usuari findUsuariByCodiUsuari​(String codiUsuari)
                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsuariByCodiUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsuariByCodiUsuari

        protected abstract es.caib.seycon.ng.comu.Usuari handleFindUsuariByCodiUsuari​(String codiUsuari)
                                                                               throws Exception
        Throws:
        Exception
      • findUsuariByIdUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Usuari findUsuariByIdUsuari​(Long idUsuari)
                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsuariByIdUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsuariByIdUsuari

        protected abstract es.caib.seycon.ng.comu.Usuari handleFindUsuariByIdUsuari​(Long idUsuari)
                                                                             throws Exception
        Throws:
        Exception
      • findUsuariByNIFUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Usuari findUsuariByNIFUsuari​(String nif)
                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsuariByNIFUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsuariByNIFUsuari

        protected abstract es.caib.seycon.ng.comu.Usuari handleFindUsuariByNIFUsuari​(String nif)
                                                                              throws Exception
        Throws:
        Exception
      • getCurrentUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Usuari getCurrentUsuari()
                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getCurrentUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetCurrentUsuari

        protected abstract es.caib.seycon.ng.comu.Usuari handleGetCurrentUsuari()
                                                                         throws Exception
        Throws:
        Exception
      • getUserInfo

        @Transactional(isolation=READ_COMMITTED,
                       propagation=REQUIRED,
                       rollbackForClassName="java.lang.Exception",
                       noRollbackForClassName="UnknownUserException")
        public es.caib.seycon.ng.comu.Usuari getUserInfo​(String user)
                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.seycon.ng.exception.UnknownUserException
        Specified by:
        getUserInfo in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.UnknownUserException
      • handleGetUserInfo

        protected abstract es.caib.seycon.ng.comu.Usuari handleGetUserInfo​(String user)
                                                                    throws Exception
        Throws:
        Exception
      • setServidorsToUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Usuari setServidorsToUsuari​(String codiUsuari,
                                                                  String nomServidorPerfil,
                                                                  String nomServidorCorreu,
                                                                  String nomServidorHome)
                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        setServidorsToUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleSetServidorsToUsuari

        protected abstract es.caib.seycon.ng.comu.Usuari handleSetServidorsToUsuari​(String codiUsuari,
                                                                                    String nomServidorPerfil,
                                                                                    String nomServidorCorreu,
                                                                                    String nomServidorHome)
                                                                             throws Exception
        Throws:
        Exception
      • update

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

        protected abstract es.caib.seycon.ng.comu.Usuari handleUpdate​(es.caib.seycon.ng.comu.Usuari usuari)
                                                               throws Exception
        Throws:
        Exception
      • updateDadesBasiquesUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Usuari updateDadesBasiquesUsuari​(es.caib.seycon.ng.comu.Usuari usuari)
                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateDadesBasiquesUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdateDadesBasiquesUsuari

        protected abstract es.caib.seycon.ng.comu.Usuari handleUpdateDadesBasiquesUsuari​(es.caib.seycon.ng.comu.Usuari usuari)
                                                                                  throws Exception
        Throws:
        Exception
      • create

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

        protected abstract es.caib.seycon.ng.comu.UsuariWFProcess handleCreate​(es.caib.seycon.ng.comu.UsuariWFProcess usuariWFProces)
                                                                        throws Exception
        Throws:
        Exception
      • update

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

        protected abstract es.caib.seycon.ng.comu.UsuariWFProcess handleUpdate​(es.caib.seycon.ng.comu.UsuariWFProcess usuariWFProces)
                                                                        throws Exception
        Throws:
        Exception
      • isUpdatePendingExtended

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public int isUpdatePendingExtended​(String userName)
                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        isUpdatePendingExtended in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleIsUpdatePendingExtended

        protected abstract int handleIsUpdatePendingExtended​(String userName)
                                                      throws Exception
        Throws:
        Exception
      • existeixNomCurt

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Boolean existeixNomCurt​(String nomCurt)
                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        existeixNomCurt in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • addUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String addUsuari​(es.caib.signatura.api.Signature signatura,
                                String userType)
                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        addUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleAddUsuari

        protected abstract String handleAddUsuari​(es.caib.signatura.api.Signature signatura,
                                                  String userType)
                                           throws Exception
        Throws:
        Exception
      • addUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String addUsuari​(Collection<X509Certificate> certs,
                                String userType)
                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        addUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • canviPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String canviPassword​(String codiUsuari,
                                    String codiDominiContrasenyes)
                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        canviPassword in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • creaNouProcesUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String creaNouProcesUsuari​(String nomProces,
                                          String codiUsuari,
                                          boolean canviaAProces)
                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        creaNouProcesUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreaNouProcesUsuari

        protected abstract String handleCreaNouProcesUsuari​(String nomProces,
                                                            String codiUsuari,
                                                            boolean canviaAProces)
                                                     throws Exception
        Throws:
        Exception
      • generaPasswordRandom

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String generaPasswordRandom()
                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        generaPasswordRandom in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGeneraPasswordRandom

        protected abstract String handleGeneraPasswordRandom()
                                                      throws Exception
        Throws:
        Exception
      • getSeguentCodi

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String getSeguentCodi()
                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getSeguentCodi in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • setPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String setPassword​(String codiUsuari,
                                  String codiDominiContrasenyes)
                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        setPassword in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getTasques

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String[] getTasques​(String codiUsuari)
                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getTasques in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • refreshCanvis

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String[] refreshCanvis​(String codiUsuari)
                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        refreshCanvis in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findDadesUsuariByCodiUsuari

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

        protected abstract Collection<es.caib.seycon.ng.comu.DadaUsuari> handleFindDadesUsuariByCodiUsuari​(String codiUsuari)
                                                                                                    throws Exception
        Throws:
        Exception
      • findImpressoresByCodiUsuari

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

        protected abstract Collection<es.caib.seycon.ng.comu.Impressora> handleFindImpressoresByCodiUsuari​(String codiUsuari)
                                                                                                    throws Exception
        Throws:
        Exception
      • findJerarquiaRolsUsuariByCodiUsuari

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

        protected abstract Collection<es.caib.seycon.ng.comu.Rol> handleFindJerarquiaRolsUsuariByCodiUsuari​(String codiUsuari)
                                                                                                     throws Exception
        Throws:
        Exception
      • findJerarquiaRolsUsuariByCodiUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Rol> findJerarquiaRolsUsuariByCodiUsuari​(String codiUsuari,
                                                                                          Boolean incloureRolsUsuariDirectes)
                                                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findJerarquiaRolsUsuariByCodiUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindJerarquiaRolsUsuariByCodiUsuari

        protected abstract Collection<es.caib.seycon.ng.comu.Rol> handleFindJerarquiaRolsUsuariByCodiUsuari​(String codiUsuari,
                                                                                                            Boolean incloureRolsUsuariDirectes)
                                                                                                     throws Exception
        Throws:
        Exception
      • findProcessInstanceWFUsuariByCodiUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class,
                       readOnly=true)
        public Collection<es.caib.bpm.vo.ProcessInstance> findProcessInstanceWFUsuariByCodiUsuari​(String codiUsuari)
                                                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findProcessInstanceWFUsuariByCodiUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindProcessInstanceWFUsuariByCodiUsuari

        protected abstract Collection<es.caib.bpm.vo.ProcessInstance> handleFindProcessInstanceWFUsuariByCodiUsuari​(String codiUsuari)
                                                                                                             throws Exception
        Throws:
        Exception
      • findProcessosWFUsuariByCodiUsuari

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

        protected abstract Collection<es.caib.seycon.ng.comu.UsuariWFProcess> handleFindProcessosWFUsuariByCodiUsuari​(String codiUsuari)
                                                                                                               throws Exception
        Throws:
        Exception
      • findProcessosWFUsuariByIdProces

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.UsuariWFProcess> findProcessosWFUsuariByIdProces​(Long idProces)
                                                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findProcessosWFUsuariByIdProces in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindProcessosWFUsuariByIdProces

        protected abstract Collection<es.caib.seycon.ng.comu.UsuariWFProcess> handleFindProcessosWFUsuariByIdProces​(Long idProces)
                                                                                                             throws Exception
        Throws:
        Exception
      • findProcessosWFUsuariByNIFUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.UsuariWFProcess> findProcessosWFUsuariByNIFUsuari​(String nifUsuari)
                                                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findProcessosWFUsuariByNIFUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindProcessosWFUsuariByNIFUsuari

        protected abstract Collection<es.caib.seycon.ng.comu.UsuariWFProcess> handleFindProcessosWFUsuariByNIFUsuari​(String nifUsuari)
                                                                                                              throws Exception
        Throws:
        Exception
      • findSessionsByCodiUsuari

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

        protected abstract Collection<es.caib.seycon.ng.comu.Sessio> handleFindSessionsByCodiUsuari​(String codiUsuari)
                                                                                             throws Exception
        Throws:
        Exception
      • findTargetesExtranetByCodiUsuari

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

        protected abstract Collection<es.caib.seycon.ng.comu.TargetaExtranet> handleFindTargetesExtranetByCodiUsuari​(String codiUsuari,
                                                                                                                     String activa)
                                                                                                              throws Exception
        Throws:
        Exception
      • findUserByCriteria

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Usuari> findUserByCriteria​(es.caib.seycon.ng.comu.UsuariCriteria criteria)
                                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserByCriteria in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUserByCriteria

        protected abstract Collection<es.caib.seycon.ng.comu.Usuari> handleFindUserByCriteria​(es.caib.seycon.ng.comu.UsuariCriteria criteria)
                                                                                       throws Exception
        Throws:
        Exception
      • findUserByText

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Usuari> findUserByText​(String text)
                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserByText in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserNames

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Usuari> findUsuariByCriteri​(String codi,
                                                                             String nom,
                                                                             String primerLlinatge,
                                                                             String nomCurt,
                                                                             String dataCreacio,
                                                                             String usuariCreacio,
                                                                             String actiu,
                                                                             String segonLlinatge,
                                                                             String multiSessio,
                                                                             String comentari,
                                                                             String tipusUsuari,
                                                                             String servidorPerfil,
                                                                             String servidorHome,
                                                                             String servidorCorreu,
                                                                             String codiGrupPrimari,
                                                                             String dni,
                                                                             String dominiCorreu,
                                                                             String grupSecundari,
                                                                             Boolean restringeixCerca)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsuariByCriteri in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUsuariImpressoresByCodiUsuari

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

        protected abstract Collection<es.caib.seycon.ng.comu.UsuariImpressora> handleFindUsuariImpressoresByCodiUsuari​(String codiUsuari)
                                                                                                                throws Exception
        Throws:
        Exception
      • findUsuarisByCodiUsuari

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

        protected abstract Collection<es.caib.seycon.ng.comu.Usuari> handleFindUsuarisByCodiUsuari​(String codi)
                                                                                            throws Exception
        Throws:
        Exception
      • findUsuarisByDadesBasiques

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Usuari> findUsuarisByDadesBasiques​(String codi,
                                                                                    String nom,
                                                                                    String primerLlinatge,
                                                                                    String segonLlinatge,
                                                                                    String dni)
                                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsuarisByDadesBasiques in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findXarxesACByCodiUsuari

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

        protected abstract Collection<es.caib.seycon.ng.comu.NetworkAuthorization> handleFindXarxesACByCodiUsuari​(String codiUsuari)
                                                                                                           throws Exception
        Throws:
        Exception
      • getActiveTasks

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

        protected abstract Collection<es.caib.seycon.ng.comu.SeyconAgentTaskLog> handleGetActiveTasks​(String userName)
                                                                                               throws Exception
        Throws:
        Exception
      • getAplicacionsByCodiUsuari

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

        protected abstract Collection<es.caib.seycon.ng.comu.Aplicacio> handleGetAplicacionsByCodiUsuari​(String codiUsuari)
                                                                                                  throws Exception
        Throws:
        Exception
      • getAplicacionsGestionablesWFByCodiUsuari

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

        protected abstract Collection<es.caib.seycon.ng.comu.Aplicacio> handleGetAplicacionsGestionablesWFByCodiUsuari​(String codiUsuari)
                                                                                                                throws Exception
        Throws:
        Exception
      • getContrasenyesTipusUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.EstatContrasenya> getContrasenyesTipusUsuari​(Date dataInici,
                                                                                              Date dataFi,
                                                                                              String tipusUsuari)
                                                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getContrasenyesTipusUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetContrasenyesTipusUsuari

        protected abstract Collection<es.caib.seycon.ng.comu.EstatContrasenya> handleGetContrasenyesTipusUsuari​(Date dataInici,
                                                                                                                Date dataFi,
                                                                                                                String tipusUsuari)
                                                                                                         throws Exception
        Throws:
        Exception
      • getRolsAplicacioByCodiUsuariAndCodiAplicacio

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

        protected abstract Collection<es.caib.seycon.ng.comu.Rol> handleGetRolsAplicacioByCodiUsuariAndCodiAplicacio​(String codiUsuari,
                                                                                                                     String codiAplicacio)
                                                                                                              throws Exception
        Throws:
        Exception
      • getTipusDades

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

        protected abstract Collection<es.caib.seycon.ng.comu.TipusDada> handleGetTipusDades()
                                                                                     throws Exception
        Throws:
        Exception
      • getUserExplicitRoles

        @Transactional(isolation=READ_COMMITTED,
                       propagation=REQUIRED,
                       rollbackForClassName="java.lang.Exception",
                       noRollbackForClassName="UnknownUserException")
        public Collection<es.caib.seycon.ng.comu.RolGrant> getUserExplicitRoles​(long userId)
                                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                es.caib.seycon.ng.exception.InternalErrorException,
                                                                                es.caib.seycon.ng.exception.InternalErrorException,
                                                                                es.caib.seycon.ng.exception.UnknownUserException
        Specified by:
        getUserExplicitRoles in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.UnknownUserException
      • handleGetUserExplicitRoles

        protected abstract Collection<es.caib.seycon.ng.comu.RolGrant> handleGetUserExplicitRoles​(long userId)
                                                                                           throws Exception
        Throws:
        Exception
      • getUserGroups

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

        protected abstract Collection<es.caib.seycon.ng.comu.Grup> handleGetUserGroups​(long userId)
                                                                                throws Exception
        Throws:
        Exception
      • getUserGroupsHierarchy

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackForClassName="java.lang.Exception",
                       noRollbackForClassName="UnknownUserException")
        public Collection<es.caib.seycon.ng.comu.Grup> getUserGroupsHierarchy​(long userId)
                                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                              es.caib.seycon.ng.exception.InternalErrorException,
                                                                              es.caib.seycon.ng.exception.InternalErrorException,
                                                                              es.caib.seycon.ng.exception.UnknownUserException
        Specified by:
        getUserGroupsHierarchy in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.UnknownUserException
      • handleGetUserGroupsHierarchy

        protected abstract Collection<es.caib.seycon.ng.comu.Grup> handleGetUserGroupsHierarchy​(long userId)
                                                                                         throws Exception
        Throws:
        Exception
      • getUserGroupsHierarchy

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackForClassName="java.lang.Exception",
                       noRollbackForClassName="UnknownUserException")
        public Collection<es.caib.seycon.ng.comu.Grup> getUserGroupsHierarchy​(long userId,
                                                                              String holderGroup)
                                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                              es.caib.seycon.ng.exception.InternalErrorException,
                                                                              es.caib.seycon.ng.exception.UnknownUserException
        Specified by:
        getUserGroupsHierarchy in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.UnknownUserException
      • handleGetUserGroupsHierarchy

        protected abstract Collection<es.caib.seycon.ng.comu.Grup> handleGetUserGroupsHierarchy​(long userId,
                                                                                                String holderGroup)
                                                                                         throws Exception
        Throws:
        Exception
      • getUserRoles

        @Transactional(isolation=READ_COMMITTED,
                       propagation=REQUIRED,
                       rollbackForClassName="java.lang.Exception",
                       noRollbackForClassName="UnknownUserException")
        public Collection<es.caib.seycon.ng.comu.RolGrant> getUserRoles​(long userId)
                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.seycon.ng.exception.UnknownUserException
        Specified by:
        getUserRoles in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.UnknownUserException
      • handleGetUserRoles

        protected abstract Collection<es.caib.seycon.ng.comu.RolGrant> handleGetUserRoles​(long userId)
                                                                                   throws Exception
        Throws:
        Exception
      • obteLlistaProcessosWFUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class,
                       readOnly=true)
        public Collection<es.caib.seycon.ng.comu.ProcesWF> obteLlistaProcessosWFUsuari()
                                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        obteLlistaProcessosWFUsuari in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleObteLlistaProcessosWFUsuari

        protected abstract Collection<es.caib.seycon.ng.comu.ProcesWF> handleObteLlistaProcessosWFUsuari()
                                                                                                  throws Exception
        Throws:
        Exception
      • findPasswordDomainStatus

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.PasswordDomainStatus> findPasswordDomainStatus​(String user)
                                                                               throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findPasswordDomainStatus in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindPasswordDomainStatus

        protected abstract List<com.soffid.iam.api.PasswordDomainStatus> handleFindPasswordDomainStatus​(String user)
                                                                                                 throws Exception
        Throws:
        Exception
      • findUserByJsonQuery

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

        protected abstract List<es.caib.seycon.ng.comu.Usuari> handleFindUserByJsonQuery​(String query)
                                                                                  throws Exception
        Throws:
        Exception
      • findUserByTextAndFilter

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

        protected abstract List<es.caib.seycon.ng.comu.Usuari> handleFindUserByTextAndFilter​(String text,
                                                                                             String filter)
                                                                                      throws Exception
        Throws:
        Exception
      • findUserAttributes

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Map<String,​Object> findUserAttributes​(String codiUsuari)
                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserAttributes in interface es.caib.seycon.ng.servei.UsuariService
        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.Usuari usuari)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delete in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelete

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

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

        protected abstract void handleDelete​(es.caib.seycon.ng.comu.UsuariWFProcess usuariWFProces)
                                      throws Exception
        Throws:
        Exception
      • merge

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void merge​(Long srcId,
                          Long targetId,
                          Long eventId)
                   throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        merge in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • sendPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void sendPassword​(String userName,
                                 String passwordDomain)
                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        sendPassword in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • setPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void setPassword​(String codiUsuari,
                                String codiDominiContrasenyes,
                                es.caib.seycon.ng.comu.Password newPassword)
                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                es.caib.seycon.ng.exception.InternalErrorException,
                                es.caib.seycon.ng.exception.BadPasswordException
        Specified by:
        setPassword in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.BadPasswordException
      • handleSetPassword

        protected abstract void handleSetPassword​(String codiUsuari,
                                                  String codiDominiContrasenyes,
                                                  es.caib.seycon.ng.comu.Password newPassword)
                                           throws Exception
        Throws:
        Exception
      • setTemporaryPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void setTemporaryPassword​(String codiUsuari,
                                         String codiDominiContrasenyes,
                                         es.caib.seycon.ng.comu.Password newPassword)
                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                         es.caib.seycon.ng.exception.InternalErrorException,
                                         es.caib.seycon.ng.exception.BadPasswordException
        Specified by:
        setTemporaryPassword in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.BadPasswordException
      • handleSetTemporaryPassword

        protected abstract void handleSetTemporaryPassword​(String codiUsuari,
                                                           String codiDominiContrasenyes,
                                                           es.caib.seycon.ng.comu.Password newPassword)
                                                    throws Exception
        Throws:
        Exception
      • unlockPasswordDomain

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void unlockPasswordDomain​(String user,
                                         String passwordDomain)
                                  throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        unlockPasswordDomain in interface es.caib.seycon.ng.servei.UsuariService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUnlockPasswordDomain

        protected abstract void handleUnlockPasswordDomain​(String user,
                                                           String passwordDomain)
                                                    throws Exception
        Throws:
        Exception
      • updateUserAttributes

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void updateUserAttributes​(String codiUsuari,
                                         Map<String,​Object> attributes)
                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateUserAttributes in interface es.caib.seycon.ng.servei.UsuariService
        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