Class UserServiceBean

  • All Implemented Interfaces:
    com.soffid.iam.service.ejb.UserService, Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean, org.springframework.ejb.support.SmartSessionBean

    public class UserServiceBean
    extends org.springframework.ejb.support.AbstractStatelessSessionBean
    implements com.soffid.iam.service.ejb.UserService
    See Also:
    com.soffid.iam.service.UserService,, es.caib.seycon.ng.servei.UsuariService,, Serialized Form
    • Constructor Detail

      • UserServiceBean

        public UserServiceBean()
    • Method Detail

      • getESSORules

        @PermitAll
        public byte[] getESSORules​(String user)
                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getESSORules in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserByJsonQueryAsync

        @PermitAll
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.User> findUserByJsonQueryAsync​(String query)
                                                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserByJsonQueryAsync in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserByTextAndFilterAsync

        @PermitAll
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.User> findUserByTextAndFilterAsync​(String text,
                                                                                                  String filter)
                                                                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserByTextAndFilterAsync in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserByTextAsync

        @PermitAll
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.User> findUserByTextAsync​(String text)
                                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserByTextAsync in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • disableUsers

        @PermitAll
        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 com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • disableUsersPreview

        @PermitAll
        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 com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserByJsonQuery

        @PermitAll
        public com.soffid.iam.api.PagedResult<com.soffid.iam.api.User> 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 com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserByTextAndFilter

        @PermitAll
        public com.soffid.iam.api.PagedResult<com.soffid.iam.api.User> findUserByTextAndFilter​(String text,
                                                                                               String filter,
                                                                                               Integer start,
                                                                                               Integer end)
                                                                                        throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserByTextAndFilter in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findDataByUserAndCode

        @PermitAll
        public com.soffid.iam.api.UserData findDataByUserAndCode​(String codiUsuari,
                                                                 String codiTipusDada)
                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findDataByUserAndCode in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • create

        @PermitAll
        public com.soffid.iam.api.User create​(com.soffid.iam.api.User usuari)
                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserByUserName

        @PermitAll
        public com.soffid.iam.api.User findUserByUserName​(String codiUsuari)
                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserByUserName in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserByUserId

        @PermitAll
        public com.soffid.iam.api.User findUserByUserId​(Long idUsuari)
                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserByUserId in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getCurrentUser

        @PermitAll
        public com.soffid.iam.api.User getCurrentUser()
                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getCurrentUser in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • update

        @PermitAll
        public com.soffid.iam.api.User update​(com.soffid.iam.api.User usuari)
                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • updateUserCoreData

        @PermitAll
        public com.soffid.iam.api.User updateUserCoreData​(com.soffid.iam.api.User usuari)
                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateUserCoreData in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • isUpdatePendingExtended

        @PermitAll
        public int isUpdatePendingExtended​(String userName)
                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        isUpdatePendingExtended in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • setTemporaryPassword

        @PermitAll
        public String setTemporaryPassword​(String codiUsuari,
                                           String codiDominiContrasenyes)
                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        setTemporaryPassword in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • createNewUserProcess

        @PermitAll
        public String createNewUserProcess​(String nomProces,
                                           String codiUsuari,
                                           boolean canviaAProces)
                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createNewUserProcess in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getFollowingName

        @PermitAll
        public String getFollowingName()
                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getFollowingName in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getTasks

        @PermitAll
        public String[] getTasks​(String codiUsuari)
                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getTasks in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • refreshChanges

        @PermitAll
        public String[] refreshChanges​(String codiUsuari)
                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        refreshChanges in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserDataByUserName

        @PermitAll
        public Collection<com.soffid.iam.api.UserData> findUserDataByUserName​(String codiUsuari)
                                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserDataByUserName in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findBpmUserProcessInstanceByUserName

        @PermitAll
        public Collection<com.soffid.iam.bpm.api.ProcessInstance> findBpmUserProcessInstanceByUserName​(String codiUsuari)
                                                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findBpmUserProcessInstanceByUserName in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findSessionByUserName

        @PermitAll
        public Collection<com.soffid.iam.api.Session> findSessionByUserName​(String codiUsuari)
                                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findSessionByUserName in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserByCriteria

        @PermitAll
        public Collection<com.soffid.iam.api.User> findUserByCriteria​(com.soffid.iam.api.UserCriteria criteria)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserByCriteria in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserByText

        @PermitAll
        public Collection<com.soffid.iam.api.User> findUserByText​(String text)
                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserByText in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserByCriteria

        @PermitAll
        public Collection<com.soffid.iam.api.User> findUserByCriteria​(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:
        findUserByCriteria in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserPrintersByUserName

        @PermitAll
        public Collection<com.soffid.iam.api.PrinterUser> findUserPrintersByUserName​(String codiUsuari)
                                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserPrintersByUserName in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUsersByUserName

        @PermitAll
        public Collection<com.soffid.iam.api.User> findUsersByUserName​(String codi)
                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsersByUserName in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findNetworksACByUserName

        @PermitAll
        public Collection<com.soffid.iam.api.NetworkAuthorization> findNetworksACByUserName​(String codiUsuari)
                                                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findNetworksACByUserName in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getActiveTasks

        @PermitAll
        public Collection<com.soffid.iam.api.SyncAgentTaskLog> getActiveTasks​(String userName)
                                                                       throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getActiveTasks in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getBpmUserProcessList

        @PermitAll
        public Collection<com.soffid.iam.api.BpmProcess> getBpmUserProcessList()
                                                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getBpmUserProcessList in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findPasswordDomainStatus

        @PermitAll
        public List<com.soffid.iam.api.PasswordDomainStatus> findPasswordDomainStatus​(String user)
                                                                               throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findPasswordDomainStatus in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserByJsonQuery

        @PermitAll
        public List<com.soffid.iam.api.User> findUserByJsonQuery​(String query)
                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserByJsonQuery in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserByTextAndFilter

        @PermitAll
        public List<com.soffid.iam.api.User> findUserByTextAndFilter​(String text,
                                                                     String filter)
                                                              throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserByTextAndFilter in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserAttributes

        @PermitAll
        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 com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • delete

        @PermitAll
        public void delete​(com.soffid.iam.api.User usuari)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delete in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • merge

        @PermitAll
        public void merge​(Long srcId,
                          Long targetId,
                          Long eventId)
                   throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        merge in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • sendPassword

        @PermitAll
        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 com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • setPassword

        @PermitAll
        public void setPassword​(String codiUsuari,
                                String codiDominiContrasenyes,
                                com.soffid.iam.api.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 com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.BadPasswordException
      • setTemporaryPassword

        @PermitAll
        public void setTemporaryPassword​(String codiUsuari,
                                         String codiDominiContrasenyes,
                                         com.soffid.iam.api.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 com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.BadPasswordException
      • unlockPasswordDomain

        @PermitAll
        public void unlockPasswordDomain​(String user,
                                         String passwordDomain)
                                  throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        unlockPasswordDomain in interface com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • updateUserAttributes

        @PermitAll
        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 com.soffid.iam.service.ejb.UserService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • ejbCreate

        @PostConstruct
        public void ejbCreate()
                       throws javax.ejb.CreateException
        Initizlizes been
        Overrides:
        ejbCreate in class org.springframework.ejb.support.AbstractStatelessSessionBean
        Throws:
        javax.ejb.CreateException
        See Also:
        AbstractStatelessSessionBean.onEjbCreate()
      • onEjbCreate

        protected void onEjbCreate()
        Specified by:
        onEjbCreate in class org.springframework.ejb.support.AbstractStatelessSessionBean
      • setSessionContext

        public void setSessionContext​(javax.ejb.SessionContext sessionContext)
        Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.
        Specified by:
        setSessionContext in interface javax.ejb.SessionBean
        See Also:
        SessionBean.setSessionContext(javax.ejb.SessionContext)
      • getSessionContext

        public final javax.ejb.SessionContext getSessionContext()
        Specified by:
        getSessionContext in interface org.springframework.ejb.support.SmartSessionBean
      • setBeanFactoryLocator

        public void setBeanFactoryLocator​(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
      • setBeanFactoryLocatorKey

        public void setBeanFactoryLocatorKey​(String arg0)
      • getBeanFactory

        protected org.springframework.beans.factory.BeanFactory getBeanFactory()
      • ejbRemove

        public void ejbRemove()
      • onEjbRemove

        protected void onEjbRemove()