Class AccountServiceBaseProxy

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

    public class AccountServiceBaseProxy
    extends Object
    implements es.caib.seycon.ng.servei.AccountService

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

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

      • AccountServiceBaseProxy

        public AccountServiceBaseProxy()
    • Method Detail

      • setAccountService

        public void setAccountService​(com.soffid.iam.service.AccountService accountService)
        Sets reference to accountService.
      • getAccountService

        public com.soffid.iam.service.AccountService getAccountService()
        Gets reference to accountService.
      • hasAccountSshKey

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public boolean hasAccountSshKey​(es.caib.seycon.ng.comu.Account account)
                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        hasAccountSshKey in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • isAccountPasswordAvailable

        @Transactional(rollbackFor=java.lang.Exception.class)
        public boolean isAccountPasswordAvailable​(long accountId)
                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        isAccountPasswordAvailable in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • isUpdatePending

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public boolean isUpdatePending​(es.caib.seycon.ng.comu.Account account)
                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        isUpdatePending in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • needsAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class)
        public boolean needsAccount​(String userName,
                                    String dispatcherName)
                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        needsAccount in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • setHPAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public boolean setHPAccountPassword​(es.caib.seycon.ng.comu.Account account,
                                            es.caib.seycon.ng.comu.Password password,
                                            Date untilDate,
                                            boolean force)
                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        setHPAccountPassword in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAccountByJsonQueryAsync

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

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.Account> findAccountByTextAndJsonQueryAsync​(String text,
                                                                                                               String jsonQuery)
                                                                                                        throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccountByTextAndJsonQueryAsync in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAccountByTextAsync

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

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

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<es.caib.seycon.ng.comu.Account> findAccountByJsonQuery​(String query,
                                                                                                     Integer first,
                                                                                                     Integer num)
                                                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccountByJsonQuery in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAccountByTextAndJsonQuery

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<es.caib.seycon.ng.comu.Account> findAccountByTextAndJsonQuery​(String text,
                                                                                                            String jsonQuery,
                                                                                                            Integer start,
                                                                                                            Integer pageSize)
                                                                                                     throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccountByTextAndJsonQuery in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • createAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Account createAccount​(es.caib.seycon.ng.comu.Account account)
                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                            es.caib.seycon.ng.exception.InternalErrorException,
                                                            es.caib.seycon.ng.exception.AccountAlreadyExistsException
        Specified by:
        createAccount in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.AccountAlreadyExistsException
      • createAccount2

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Account createAccount2​(es.caib.seycon.ng.comu.Account account)
                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                             es.caib.seycon.ng.exception.InternalErrorException,
                                                             es.caib.seycon.ng.exception.AccountAlreadyExistsException
        Specified by:
        createAccount2 in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.AccountAlreadyExistsException
      • findAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Account findAccount​(String accountAndDispatcher)
                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccount in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Account findAccount​(String accountName,
                                                          String dispatcherName)
                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccount in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAccountById

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Account findAccountById​(long id)
                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccountById in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • generateAccountSshPrivateKey

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Account generateAccountSshPrivateKey​(es.caib.seycon.ng.comu.Account account)
                                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        generateAccountSshPrivateKey in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • load

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Account load​(Long identifier)
                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        load in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • removeAccountSnapshot

        @Transactional(rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Account removeAccountSnapshot​(es.caib.seycon.ng.comu.Account account)
                                                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        removeAccountSnapshot in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • setAccountSshPrivateKey

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Account setAccountSshPrivateKey​(es.caib.seycon.ng.comu.Account account,
                                                                      String privateKey)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        setAccountSshPrivateKey in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • updateAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Account updateAccount​(es.caib.seycon.ng.comu.Account account)
                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                            es.caib.seycon.ng.exception.InternalErrorException,
                                                            es.caib.seycon.ng.exception.AccountAlreadyExistsException
        Specified by:
        updateAccount in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.AccountAlreadyExistsException
      • updateAccount2

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Account updateAccount2​(es.caib.seycon.ng.comu.Account account)
                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                             es.caib.seycon.ng.exception.InternalErrorException,
                                                             es.caib.seycon.ng.exception.AccountAlreadyExistsException
        Specified by:
        updateAccount2 in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.AccountAlreadyExistsException
      • createAccountAttribute

        @Transactional(rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.DadaUsuari createAccountAttribute​(es.caib.seycon.ng.comu.DadaUsuari attribute)
                                                                 throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createAccountAttribute in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • updateAccountAttribute

        @Transactional(rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.DadaUsuari updateAccountAttribute​(es.caib.seycon.ng.comu.DadaUsuari attribute)
                                                                 throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateAccountAttribute in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • generateAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Password generateAccountPassword​(es.caib.seycon.ng.comu.Account account)
                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        generateAccountPassword in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • generateAccountTemporaryPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Password generateAccountTemporaryPassword​(es.caib.seycon.ng.comu.Account account)
                                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        generateAccountTemporaryPassword in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • queryAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Password queryAccountPassword​(es.caib.seycon.ng.comu.Account account)
                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        queryAccountPassword in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • queryAccountPasswordBypassPolicy

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Password queryAccountPasswordBypassPolicy​(long accountId,
                                                                                es.caib.seycon.ng.comu.AccountAccessLevelEnum level)
                                                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        queryAccountPasswordBypassPolicy in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • queryAccountSshKey

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Password queryAccountSshKey​(es.caib.seycon.ng.comu.Account account)
                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        queryAccountSshKey in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • queryAccountSshKeyBypassPolicy

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Password queryAccountSshKeyBypassPolicy​(long accountId,
                                                                              es.caib.seycon.ng.comu.AccountAccessLevelEnum level)
                                                                       throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        queryAccountSshKeyBypassPolicy in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • setAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Password setAccountPassword​(es.caib.seycon.ng.comu.Account account,
                                                                  es.caib.seycon.ng.comu.Password password,
                                                                  boolean temporary,
                                                                  boolean online)
                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                  es.caib.seycon.ng.exception.InternalErrorException,
                                                                  es.caib.seycon.ng.exception.BadPasswordException
        Specified by:
        setAccountPassword in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.BadPasswordException
      • checkPasswordSynchronizationStatus

        @Transactional(rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.PasswordValidation checkPasswordSynchronizationStatus​(es.caib.seycon.ng.comu.Account account)
                                                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        checkPasswordSynchronizationStatus in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • createAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.UserAccount createAccount​(es.caib.seycon.ng.comu.Usuari usuari,
                                                                es.caib.seycon.ng.comu.Dispatcher dispatcher,
                                                                String name)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                es.caib.seycon.ng.exception.InternalErrorException,
                                                                es.caib.seycon.ng.exception.NeedsAccountNameException,
                                                                es.caib.seycon.ng.exception.AccountAlreadyExistsException
        Specified by:
        createAccount in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.NeedsAccountNameException
        es.caib.seycon.ng.exception.AccountAlreadyExistsException
      • getHPAccountOwner

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.Usuari getHPAccountOwner​(es.caib.seycon.ng.comu.Account account)
                                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getHPAccountOwner in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • isUpdatePendingExtended

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public int isUpdatePendingExtended​(es.caib.seycon.ng.comu.Account account)
                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        isUpdatePendingExtended in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • gessAccountName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class)
        public String gessAccountName​(String userName,
                                      String dispatcherName)
                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        gessAccountName in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • guessAccountNameForDomain

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class)
        public String guessAccountNameForDomain​(String userName,
                                                String domainName)
                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        guessAccountNameForDomain in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • predictAccountName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class,
                       readOnly=true)
        public String predictAccountName​(Long userId,
                                         String dispatcher,
                                         Long domainId)
                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                         es.caib.seycon.ng.exception.InternalErrorException,
                                         es.caib.seycon.ng.exception.NeedsAccountNameException,
                                         es.caib.seycon.ng.exception.AccountAlreadyExistsException
        Specified by:
        predictAccountName in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.NeedsAccountNameException
        es.caib.seycon.ng.exception.AccountAlreadyExistsException
      • findAccountByJsonQuery

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Account> findAccountByJsonQuery​(String query)
                                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccountByJsonQuery in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAccountByText

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

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

        @Transactional(rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.HostService> findAccountServices​(es.caib.seycon.ng.comu.Account account)
                                                                       throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccountServices in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getAccountUsers

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<String> getAccountUsers​(es.caib.seycon.ng.comu.Account account,
                                                  es.caib.seycon.ng.comu.AccountAccessLevelEnum level)
                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAccountUsers in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getActiveTasks

        @Transactional(rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.SeyconAgentTaskLog> getActiveTasks​(es.caib.seycon.ng.comu.Account account)
                                                                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getActiveTasks in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getUserAccounts

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.UserAccount> getUserAccounts​(es.caib.seycon.ng.comu.Usuari usuari)
                                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getUserAccounts in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getUserGrantedAccountIds

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<Long> getUserGrantedAccountIds​(es.caib.seycon.ng.comu.Usuari usuari)
                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getUserGrantedAccountIds in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getUserGrantedAccounts

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.Account> getUserGrantedAccounts​(es.caib.seycon.ng.comu.Usuari usuari,
                                                                                 es.caib.seycon.ng.comu.AccountAccessLevelEnum level)
                                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getUserGrantedAccounts in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAccountsByCriteria

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.Account> findAccountsByCriteria​(es.caib.seycon.ng.comu.AccountCriteria criteria)
                                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccountsByCriteria in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAccountsNearToExpire

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.Account> findAccountsNearToExpire​(Date currentDate,
                                                                             Date limitDate,
                                                                             Collection<es.caib.seycon.ng.comu.AccountType> accTypes,
                                                                             Collection<es.caib.seycon.ng.comu.TipusUsuari> userTypes)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccountsNearToExpire in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findSharedAccountsByUser

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.Account> findSharedAccountsByUser​(String userName)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findSharedAccountsByUser in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findSharedAccountsHistoryByUser

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.AccountHistory> findSharedAccountsHistoryByUser​(String userName)
                                                                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findSharedAccountsHistoryByUser in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserAccounts

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.UserAccount> findUserAccounts​(String userName,
                                                                         String dispatcherName)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserAccounts in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserAccountsByDomain

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.UserAccount> findUserAccountsByDomain​(String user,
                                                                                 String passwordDomain)
                                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserAccountsByDomain in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getAccountAttributes

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.DadaUsuari> getAccountAttributes​(es.caib.seycon.ng.comu.Account acc)
                                                                     throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAccountAttributes in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • listNonUserAccounts

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.Account> listNonUserAccounts​(es.caib.seycon.ng.comu.Dispatcher dispatcher,
                                                                        String nom)
                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        listNonUserAccounts in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • listUserAccounts

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.UserAccount> listUserAccounts​(es.caib.seycon.ng.comu.Usuari usuari)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        listUserAccounts in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • checkinHPAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void checkinHPAccount​(es.caib.seycon.ng.comu.Account account)
                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        checkinHPAccount in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • checkinHPAccounts

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void checkinHPAccounts()
                               throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        checkinHPAccounts in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • generateUserAccounts

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void removeAccount​(es.caib.seycon.ng.comu.Account account)
                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        removeAccount in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • removeAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void removeAccount​(es.caib.seycon.ng.comu.UserAccount account)
                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        removeAccount in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • removeAccountAttribute

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void removeAccountAttribute​(es.caib.seycon.ng.comu.DadaUsuari attribute)
                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        removeAccountAttribute in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • renameAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void renameAccount​(es.caib.seycon.ng.comu.Account account)
                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                  es.caib.seycon.ng.exception.InternalErrorException,
                                  es.caib.seycon.ng.exception.AccountAlreadyExistsException
        Specified by:
        renameAccount in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.AccountAlreadyExistsException
      • sendAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void sendAccountPassword​(es.caib.seycon.ng.comu.Account account)
                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                        es.caib.seycon.ng.exception.InternalErrorException,
                                        es.caib.seycon.ng.exception.BadPasswordException
        Specified by:
        sendAccountPassword in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.BadPasswordException
      • setAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void setAccountPassword​(es.caib.seycon.ng.comu.Account account,
                                       es.caib.seycon.ng.comu.Password password)
                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                       es.caib.seycon.ng.exception.InternalErrorException,
                                       es.caib.seycon.ng.exception.BadPasswordException
        Specified by:
        setAccountPassword in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.BadPasswordException
      • setAccountTemporaryPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void setAccountTemporaryPassword​(es.caib.seycon.ng.comu.Account account,
                                                es.caib.seycon.ng.comu.Password password)
                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                es.caib.seycon.ng.exception.InternalErrorException,
                                                es.caib.seycon.ng.exception.BadPasswordException
        Specified by:
        setAccountTemporaryPassword in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.BadPasswordException
      • synchronizeAccount

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void synchronizeAccount​(String accountName,
                                       String system)
                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        synchronizeAccount in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • updateAccountLastUpdate

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void updateAccountLastUpdate​(es.caib.seycon.ng.comu.Account account)
                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateAccountLastUpdate in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • updateAccountPasswordDate

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void updateAccountPasswordDate​(es.caib.seycon.ng.comu.Account account,
                                              Long passwordTerm)
                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateAccountPasswordDate in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • updateAccountPasswordDate2

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void updateAccountPasswordDate2​(es.caib.seycon.ng.comu.Account account,
                                               Date expirationDate)
                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateAccountPasswordDate2 in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • grantAcccountToUser

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void grantAcccountToUser​(es.caib.seycon.ng.comu.Account account,
                                        String user,
                                        Long processId,
                                        Date until)
                                 throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        grantAcccountToUser in interface es.caib.seycon.ng.servei.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • registerAccountReservationProcess

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void registerAccountReservationProcess​(es.caib.seycon.ng.comu.Account account,
                                                      String user,
                                                      Long processId)
                                               throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        registerAccountReservationProcess in interface es.caib.seycon.ng.servei.AccountService
        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