Class AccountServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.AccountService
    Direct Known Subclasses:
    AccountServiceImpl

    public abstract class AccountServiceBase
    extends Object
    implements com.soffid.iam.service.AccountService

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

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

      • AccountServiceBase

        public AccountServiceBase()
    • Method Detail

      • setAccountAccessEntityDao

        public void setAccountAccessEntityDao​(AccountAccessEntityDao accountAccessEntityDao)
        Sets reference to accountAccessEntityDao.
      • getAccountAccessEntityDao

        public AccountAccessEntityDao getAccountAccessEntityDao()
        Gets reference to accountAccessEntityDao.
      • setAccountAttributeEntityDao

        public void setAccountAttributeEntityDao​(AccountAttributeEntityDao accountAttributeEntityDao)
        Sets reference to accountAttributeEntityDao.
      • getAccountAttributeEntityDao

        public AccountAttributeEntityDao getAccountAttributeEntityDao()
        Gets reference to accountAttributeEntityDao.
      • setAccountEntityDao

        public void setAccountEntityDao​(AccountEntityDao accountEntityDao)
        Sets reference to accountEntityDao.
      • getAccountEntityDao

        public AccountEntityDao getAccountEntityDao()
        Gets reference to accountEntityDao.
      • setAccountMetadataEntityDao

        public void setAccountMetadataEntityDao​(AccountMetadataEntityDao accountMetadataEntityDao)
        Sets reference to accountMetadataEntityDao.
      • getAccountMetadataEntityDao

        public AccountMetadataEntityDao getAccountMetadataEntityDao()
        Gets reference to accountMetadataEntityDao.
      • setAccountSnapshotEntityDao

        public void setAccountSnapshotEntityDao​(AccountSnapshotEntityDao accountSnapshotEntityDao)
        Sets reference to accountSnapshotEntityDao.
      • getAccountSnapshotEntityDao

        public AccountSnapshotEntityDao getAccountSnapshotEntityDao()
        Gets reference to accountSnapshotEntityDao.
      • setApplicationService

        public void setApplicationService​(com.soffid.iam.service.ApplicationService aplicacioService)
        Sets reference to aplicacioService.
      • getApplicationService

        public com.soffid.iam.service.ApplicationService getApplicationService()
        Gets reference to aplicacioService.
      • setAsyncRunnerService

        public void setAsyncRunnerService​(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)
        Sets reference to asyncRunnerService.
      • getAsyncRunnerService

        public com.soffid.iam.service.AsyncRunnerService getAsyncRunnerService()
        Gets reference to asyncRunnerService.
      • setAttributeValidationService

        public void setAttributeValidationService​(AttributeValidationService attributeValidationService)
        Sets reference to attributeValidationService.
      • getAttributeValidationService

        public AttributeValidationService getAttributeValidationService()
        Gets reference to attributeValidationService.
      • setAuditEntityDao

        public void setAuditEntityDao​(AuditEntityDao auditoriaEntityDao)
        Sets reference to auditoriaEntityDao.
      • getAuditEntityDao

        public AuditEntityDao getAuditEntityDao()
        Gets reference to auditoriaEntityDao.
      • setAuditService

        public void setAuditService​(com.soffid.iam.service.AuditService auditoriaService)
        Sets reference to auditoriaService.
      • getAuditService

        public com.soffid.iam.service.AuditService getAuditService()
        Gets reference to auditoriaService.
      • setAuthorizationService

        public void setAuthorizationService​(com.soffid.iam.service.AuthorizationService autoritzacioService)
        Sets reference to autoritzacioService.
      • getAuthorizationService

        public com.soffid.iam.service.AuthorizationService getAuthorizationService()
        Gets reference to autoritzacioService.
      • setBpmEngine

        public void setBpmEngine​(com.soffid.iam.bpm.service.BpmEngine bpmEngine)
        Sets reference to bpmEngine.
      • getBpmEngine

        public com.soffid.iam.bpm.service.BpmEngine getBpmEngine()
        Gets reference to bpmEngine.
      • setSystemEntityDao

        public void setSystemEntityDao​(SystemEntityDao dispatcherEntityDao)
        Sets reference to dispatcherEntityDao.
      • getSystemEntityDao

        public SystemEntityDao getSystemEntityDao()
        Gets reference to dispatcherEntityDao.
      • setDispatcherService

        public void setDispatcherService​(com.soffid.iam.service.DispatcherService dispatcherService)
        Sets reference to dispatcherService.
      • getDispatcherService

        public com.soffid.iam.service.DispatcherService getDispatcherService()
        Gets reference to dispatcherService.
      • setUserDomainEntityDao

        public void setUserDomainEntityDao​(UserDomainEntityDao dominiUsuariEntityDao)
        Sets reference to dominiUsuariEntityDao.
      • getUserDomainEntityDao

        public UserDomainEntityDao getUserDomainEntityDao()
        Gets reference to dominiUsuariEntityDao.
      • setUserDomainService

        public void setUserDomainService​(com.soffid.iam.service.UserDomainService dominiUsuariService)
        Sets reference to dominiUsuariService.
      • getUserDomainService

        public com.soffid.iam.service.UserDomainService getUserDomainService()
        Gets reference to dominiUsuariService.
      • setGroupEntityDao

        public void setGroupEntityDao​(GroupEntityDao grupEntityDao)
        Sets reference to grupEntityDao.
      • getGroupEntityDao

        public GroupEntityDao getGroupEntityDao()
        Gets reference to grupEntityDao.
      • setHostServiceEntityDao

        public void setHostServiceEntityDao​(HostServiceEntityDao hostServiceEntityDao)
        Sets reference to hostServiceEntityDao.
      • getHostServiceEntityDao

        public HostServiceEntityDao getHostServiceEntityDao()
        Gets reference to hostServiceEntityDao.
      • setInternalPasswordService

        public void setInternalPasswordService​(InternalPasswordService internalPasswordService)
        Sets reference to internalPasswordService.
      • getInternalPasswordService

        public InternalPasswordService getInternalPasswordService()
        Gets reference to internalPasswordService.
      • setIssueEntityDao

        public void setIssueEntityDao​(IssueEntityDao issueEntityDao)
        Sets reference to issueEntityDao.
      • getIssueEntityDao

        public IssueEntityDao getIssueEntityDao()
        Gets reference to issueEntityDao.
      • setIssueService

        public void setIssueService​(com.soffid.iam.service.IssueService issueService)
        Sets reference to issueService.
      • getIssueService

        public com.soffid.iam.service.IssueService getIssueService()
        Gets reference to issueService.
      • setJumpServerGroupEntityDao

        public void setJumpServerGroupEntityDao​(JumpServerGroupEntityDao jumpServerGroupEntityDao)
        Sets reference to jumpServerGroupEntityDao.
      • getJumpServerGroupEntityDao

        public JumpServerGroupEntityDao getJumpServerGroupEntityDao()
        Gets reference to jumpServerGroupEntityDao.
      • setMailService

        public void setMailService​(MailService mailService)
        Sets reference to mailService.
      • getMailService

        public MailService getMailService()
        Gets reference to mailService.
      • setPamSecurityHandlerService

        public void setPamSecurityHandlerService​(PamSecurityHandlerService pamSecurityHandlerService)
        Sets reference to pamSecurityHandlerService.
      • getPamSecurityHandlerService

        public PamSecurityHandlerService getPamSecurityHandlerService()
        Gets reference to pamSecurityHandlerService.
      • setRoleAccountEntityDao

        public void setRoleAccountEntityDao​(RoleAccountEntityDao rolAccountEntityDao)
        Sets reference to rolAccountEntityDao.
      • getRoleAccountEntityDao

        public RoleAccountEntityDao getRoleAccountEntityDao()
        Gets reference to rolAccountEntityDao.
      • setRoleEntityDao

        public void setRoleEntityDao​(RoleEntityDao rolEntityDao)
        Sets reference to rolEntityDao.
      • getRoleEntityDao

        public RoleEntityDao getRoleEntityDao()
        Gets reference to rolEntityDao.
      • setServerEntityDao

        public void setServerEntityDao​(ServerEntityDao serverEntityDao)
        Sets reference to serverEntityDao.
      • getServerEntityDao

        public ServerEntityDao getServerEntityDao()
        Gets reference to serverEntityDao.
      • setSignalService

        public void setSignalService​(SignalService signalService)
        Sets reference to signalService.
      • getSignalService

        public SignalService getSignalService()
        Gets reference to signalService.
      • setTaskEntityDao

        public void setTaskEntityDao​(TaskEntityDao tasqueEntityDao)
        Sets reference to tasqueEntityDao.
      • getTaskEntityDao

        public TaskEntityDao getTaskEntityDao()
        Gets reference to tasqueEntityDao.
      • setMetaDataEntityDao

        public void setMetaDataEntityDao​(MetaDataEntityDao tipusDadaEntityDao)
        Sets reference to tipusDadaEntityDao.
      • getMetaDataEntityDao

        public MetaDataEntityDao getMetaDataEntityDao()
        Gets reference to tipusDadaEntityDao.
      • setUserTypeEntityDao

        public void setUserTypeEntityDao​(UserTypeEntityDao tipusUsuariEntityDao)
        Sets reference to tipusUsuariEntityDao.
      • getUserTypeEntityDao

        public UserTypeEntityDao getUserTypeEntityDao()
        Gets reference to tipusUsuariEntityDao.
      • setUserAccountEntityDao

        public void setUserAccountEntityDao​(UserAccountEntityDao userAccountEntityDao)
        Sets reference to userAccountEntityDao.
      • getUserAccountEntityDao

        public UserAccountEntityDao getUserAccountEntityDao()
        Gets reference to userAccountEntityDao.
      • setUserEntityDao

        public void setUserEntityDao​(UserEntityDao usuariEntityDao)
        Sets reference to usuariEntityDao.
      • getUserEntityDao

        public UserEntityDao getUserEntityDao()
        Gets reference to usuariEntityDao.
      • setUserService

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

        public com.soffid.iam.service.UserService getUserService()
        Gets reference to usuariService.
      • setVaultFolderEntityDao

        public void setVaultFolderEntityDao​(VaultFolderEntityDao vaultFolderEntityDao)
        Sets reference to vaultFolderEntityDao.
      • getVaultFolderEntityDao

        public VaultFolderEntityDao getVaultFolderEntityDao()
        Gets reference to vaultFolderEntityDao.
      • setVaultService

        public void setVaultService​(com.soffid.iam.service.VaultService vaultService)
        Sets reference to vaultService.
      • getVaultService

        public com.soffid.iam.service.VaultService getVaultService()
        Gets reference to vaultService.
      • hasAccountSshKey

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

        protected abstract boolean handleHasAccountSshKey​(com.soffid.iam.api.Account account)
                                                   throws Exception
        Throws:
        Exception
      • isAccountPasswordAvailable

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

        protected abstract boolean handleIsAccountPasswordAvailable​(long accountId)
                                                             throws Exception
        Throws:
        Exception
      • isUpdatePending

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

        protected abstract boolean handleIsUpdatePending​(com.soffid.iam.api.Account account)
                                                  throws Exception
        Throws:
        Exception
      • 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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • setHPAccountPassword

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

        protected abstract boolean handleSetHPAccountPassword​(com.soffid.iam.api.Account account,
                                                              com.soffid.iam.api.Password password,
                                                              Date untilDate,
                                                              boolean force)
                                                       throws Exception
        Throws:
        Exception
      • findAccountByJsonQueryAsync

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

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.Account> handleFindAccountByJsonQueryAsync​(String query)
                                                                                                               throws Exception
        Throws:
        Exception
      • findAccountByTextAndJsonQueryAsync

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

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.Account> handleFindAccountByTextAndJsonQueryAsync​(String text,
                                                                                                                             String jsonQuery)
                                                                                                                      throws Exception
        Throws:
        Exception
      • findAccountByTextAsync

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

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.Account> handleFindAccountByTextAsync​(String text)
                                                                                                          throws Exception
        Throws:
        Exception
      • 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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDisableAccounts

        protected abstract com.soffid.iam.api.AsyncProcessTracker handleDisableAccounts​(String scimQuery,
                                                                                        List<com.soffid.iam.api.DisableObjectRule> rules)
                                                                                 throws Exception
        Throws:
        Exception
      • 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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDisableAccountsPreview

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<com.soffid.iam.api.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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAccountByJsonQuery

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.Account> handleFindAccountByJsonQuery​(String query,
                                                                                                                   Integer first,
                                                                                                                   Integer num)
                                                                                                            throws Exception
        Throws:
        Exception
      • findAccountByTextAndJsonQuery

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

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.Account> handleFindAccountByTextAndJsonQuery​(String text,
                                                                                                                          String jsonQuery,
                                                                                                                          Integer start,
                                                                                                                          Integer pageSize)
                                                                                                                   throws Exception
        Throws:
        Exception
      • createAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Account createAccount​(com.soffid.iam.api.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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.AccountAlreadyExistsException
      • handleCreateAccount

        protected abstract com.soffid.iam.api.Account handleCreateAccount​(com.soffid.iam.api.Account account)
                                                                   throws Exception
        Throws:
        Exception
      • createAccount2

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Account createAccount2​(com.soffid.iam.api.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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.AccountAlreadyExistsException
      • handleCreateAccount2

        protected abstract com.soffid.iam.api.Account handleCreateAccount2​(com.soffid.iam.api.Account account)
                                                                    throws Exception
        Throws:
        Exception
      • findAccount

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

        protected abstract com.soffid.iam.api.Account handleFindAccount​(String accountAndDispatcher)
                                                                 throws Exception
        Throws:
        Exception
      • findAccount

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

        protected abstract com.soffid.iam.api.Account handleFindAccount​(String accountName,
                                                                        String dispatcherName)
                                                                 throws Exception
        Throws:
        Exception
      • findAccountById

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

        protected abstract com.soffid.iam.api.Account handleFindAccountById​(long id)
                                                                     throws Exception
        Throws:
        Exception
      • generateAccountSshPrivateKey

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

        protected abstract com.soffid.iam.api.Account handleGenerateAccountSshPrivateKey​(com.soffid.iam.api.Account account)
                                                                                  throws Exception
        Throws:
        Exception
      • load

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

        protected abstract com.soffid.iam.api.Account handleLoad​(Long identifier)
                                                          throws Exception
        Throws:
        Exception
      • removeAccountSnapshot

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Account removeAccountSnapshot​(com.soffid.iam.api.Account account)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        removeAccountSnapshot in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRemoveAccountSnapshot

        protected abstract com.soffid.iam.api.Account handleRemoveAccountSnapshot​(com.soffid.iam.api.Account account)
                                                                           throws Exception
        Throws:
        Exception
      • setAccountSshPrivateKey

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

        protected abstract com.soffid.iam.api.Account handleSetAccountSshPrivateKey​(com.soffid.iam.api.Account account,
                                                                                    String privateKey)
                                                                             throws Exception
        Throws:
        Exception
      • updateAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Account updateAccount​(com.soffid.iam.api.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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.AccountAlreadyExistsException
      • handleUpdateAccount

        protected abstract com.soffid.iam.api.Account handleUpdateAccount​(com.soffid.iam.api.Account account)
                                                                   throws Exception
        Throws:
        Exception
      • updateAccount2

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Account updateAccount2​(com.soffid.iam.api.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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.AccountAlreadyExistsException
      • handleUpdateAccount2

        protected abstract com.soffid.iam.api.Account handleUpdateAccount2​(com.soffid.iam.api.Account account)
                                                                    throws Exception
        Throws:
        Exception
      • createAccountAttribute

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.UserData createAccountAttribute​(com.soffid.iam.api.UserData attribute)
                                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createAccountAttribute in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreateAccountAttribute

        protected abstract com.soffid.iam.api.UserData handleCreateAccountAttribute​(com.soffid.iam.api.UserData attribute)
                                                                             throws Exception
        Throws:
        Exception
      • updateAccountAttribute

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.UserData updateAccountAttribute​(com.soffid.iam.api.UserData attribute)
                                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateAccountAttribute in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdateAccountAttribute

        protected abstract com.soffid.iam.api.UserData handleUpdateAccountAttribute​(com.soffid.iam.api.UserData attribute)
                                                                             throws Exception
        Throws:
        Exception
      • generateAccountPassword

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

        protected abstract com.soffid.iam.api.Password handleGenerateAccountPassword​(com.soffid.iam.api.Account account)
                                                                              throws Exception
        Throws:
        Exception
      • generateAccountTemporaryPassword

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

        protected abstract com.soffid.iam.api.Password handleGenerateAccountTemporaryPassword​(com.soffid.iam.api.Account account)
                                                                                       throws Exception
        Throws:
        Exception
      • queryAccountPassword

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

        protected abstract com.soffid.iam.api.Password handleQueryAccountPassword​(com.soffid.iam.api.Account account)
                                                                           throws Exception
        Throws:
        Exception
      • queryAccountPasswordBypassPolicy

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

        protected abstract com.soffid.iam.api.Password handleQueryAccountPasswordBypassPolicy​(long accountId,
                                                                                              es.caib.seycon.ng.comu.AccountAccessLevelEnum level)
                                                                                       throws Exception
        Throws:
        Exception
      • queryAccountSshKey

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

        protected abstract com.soffid.iam.api.Password handleQueryAccountSshKey​(com.soffid.iam.api.Account account)
                                                                         throws Exception
        Throws:
        Exception
      • queryAccountSshKeyBypassPolicy

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

        protected abstract com.soffid.iam.api.Password handleQueryAccountSshKeyBypassPolicy​(long accountId,
                                                                                            es.caib.seycon.ng.comu.AccountAccessLevelEnum level)
                                                                                     throws Exception
        Throws:
        Exception
      • setAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Password setAccountPassword​(com.soffid.iam.api.Account account,
                                                              com.soffid.iam.api.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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.BadPasswordException
      • handleSetAccountPassword

        protected abstract com.soffid.iam.api.Password handleSetAccountPassword​(com.soffid.iam.api.Account account,
                                                                                com.soffid.iam.api.Password password,
                                                                                boolean temporary,
                                                                                boolean online)
                                                                         throws Exception
        Throws:
        Exception
      • checkPasswordSynchronizationStatus

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PasswordValidation checkPasswordSynchronizationStatus​(com.soffid.iam.api.Account account)
                                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        checkPasswordSynchronizationStatus in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCheckPasswordSynchronizationStatus

        protected abstract com.soffid.iam.api.PasswordValidation handleCheckPasswordSynchronizationStatus​(com.soffid.iam.api.Account account)
                                                                                                   throws Exception
        Throws:
        Exception
      • createAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.UserAccount createAccount​(com.soffid.iam.api.User usuari,
                                                            com.soffid.iam.api.System 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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.NeedsAccountNameException
        es.caib.seycon.ng.exception.AccountAlreadyExistsException
      • handleCreateAccount

        protected abstract com.soffid.iam.api.UserAccount handleCreateAccount​(com.soffid.iam.api.User usuari,
                                                                              com.soffid.iam.api.System dispatcher,
                                                                              String name)
                                                                       throws Exception
        Throws:
        Exception
      • getHPAccountOwner

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.User getHPAccountOwner​(com.soffid.iam.api.Account account)
                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getHPAccountOwner in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetHPAccountOwner

        protected abstract com.soffid.iam.api.User handleGetHPAccountOwner​(com.soffid.iam.api.Account account)
                                                                    throws Exception
        Throws:
        Exception
      • isUpdatePendingExtended

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

        protected abstract int handleIsUpdatePendingExtended​(com.soffid.iam.api.Account account)
                                                      throws Exception
        Throws:
        Exception
      • guessAccountName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class)
        public String guessAccountName​(String userName,
                                       String dispatcherName)
                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        guessAccountName in interface com.soffid.iam.service.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 com.soffid.iam.service.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 com.soffid.iam.service.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<com.soffid.iam.api.Account> findAccountByJsonQuery​(String query)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccountByJsonQuery in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAccountByJsonQuery

        protected abstract Collection<com.soffid.iam.api.Account> handleFindAccountByJsonQuery​(String query)
                                                                                        throws Exception
        Throws:
        Exception
      • findAccountByText

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Account> findAccountByText​(String text)
                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccountByText in interface com.soffid.iam.service.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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAccountServices

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

        protected abstract Collection<com.soffid.iam.api.HostService> handleFindAccountServices​(com.soffid.iam.api.Account account)
                                                                                         throws Exception
        Throws:
        Exception
      • getAccountUsers

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<String> getAccountUsers​(com.soffid.iam.api.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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetAccountUsers

        protected abstract Collection<String> handleGetAccountUsers​(com.soffid.iam.api.Account account,
                                                                    es.caib.seycon.ng.comu.AccountAccessLevelEnum level)
                                                             throws Exception
        Throws:
        Exception
      • getActiveTasks

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

        protected abstract Collection<com.soffid.iam.api.SyncAgentTaskLog> handleGetActiveTasks​(com.soffid.iam.api.Account account)
                                                                                         throws Exception
        Throws:
        Exception
      • getUserAccounts

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.UserAccount> getUserAccounts​(com.soffid.iam.api.User usuari)
                                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getUserAccounts in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetUserAccounts

        protected abstract Collection<com.soffid.iam.api.UserAccount> handleGetUserAccounts​(com.soffid.iam.api.User usuari)
                                                                                     throws Exception
        Throws:
        Exception
      • getUserGrantedAccountIds

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<Long> getUserGrantedAccountIds​(com.soffid.iam.api.User usuari)
                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getUserGrantedAccountIds in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetUserGrantedAccountIds

        protected abstract Collection<Long> handleGetUserGrantedAccountIds​(com.soffid.iam.api.User usuari)
                                                                    throws Exception
        Throws:
        Exception
      • getUserGrantedAccounts

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Account> getUserGrantedAccounts​(com.soffid.iam.api.User usuari)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getUserGrantedAccounts in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetUserGrantedAccounts

        protected abstract Collection<com.soffid.iam.api.Account> handleGetUserGrantedAccounts​(com.soffid.iam.api.User usuari)
                                                                                        throws Exception
        Throws:
        Exception
      • getUserGrantedAccounts

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Account> getUserGrantedAccounts​(com.soffid.iam.api.User 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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetUserGrantedAccounts

        protected abstract Collection<com.soffid.iam.api.Account> handleGetUserGrantedAccounts​(com.soffid.iam.api.User usuari,
                                                                                               es.caib.seycon.ng.comu.AccountAccessLevelEnum level)
                                                                                        throws Exception
        Throws:
        Exception
      • findAccountsByCriteria

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAccountsByCriteria

        protected abstract List<com.soffid.iam.api.Account> handleFindAccountsByCriteria​(es.caib.seycon.ng.comu.AccountCriteria criteria)
                                                                                  throws Exception
        Throws:
        Exception
      • findAccountsNearToExpire

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

        protected abstract List<com.soffid.iam.api.Account> handleFindAccountsNearToExpire​(Date currentDate,
                                                                                           Date limitDate,
                                                                                           Collection<es.caib.seycon.ng.comu.AccountType> accTypes,
                                                                                           Collection<com.soffid.iam.api.UserType> userTypes)
                                                                                    throws Exception
        Throws:
        Exception
      • findSharedAccountsByUser

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

        protected abstract List<com.soffid.iam.api.Account> handleFindSharedAccountsByUser​(String userName)
                                                                                    throws Exception
        Throws:
        Exception
      • findSharedAccountsHistoryByUser

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

        protected abstract List<com.soffid.iam.api.AccountHistory> handleFindSharedAccountsHistoryByUser​(String userName)
                                                                                                  throws Exception
        Throws:
        Exception
      • findUsersAccounts

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.UserAccount> findUsersAccounts​(String userName,
                                                                      String dispatcherName)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsersAccounts in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsersAccounts

        protected abstract List<com.soffid.iam.api.UserAccount> handleFindUsersAccounts​(String userName,
                                                                                        String dispatcherName)
                                                                                 throws Exception
        Throws:
        Exception
      • findUserAccountsByDomain

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

        protected abstract List<com.soffid.iam.api.UserAccount> handleFindUserAccountsByDomain​(String user,
                                                                                               String passwordDomain)
                                                                                        throws Exception
        Throws:
        Exception
      • getAccountAttributes

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.UserData> getAccountAttributes​(com.soffid.iam.api.Account acc)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAccountAttributes in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetAccountAttributes

        protected abstract List<com.soffid.iam.api.UserData> handleGetAccountAttributes​(com.soffid.iam.api.Account acc)
                                                                                 throws Exception
        Throws:
        Exception
      • listNonUserAccounts

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.Account> listNonUserAccounts​(com.soffid.iam.api.System dispatcher,
                                                                    String nom)
                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        listNonUserAccounts in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleListNonUserAccounts

        protected abstract List<com.soffid.iam.api.Account> handleListNonUserAccounts​(com.soffid.iam.api.System dispatcher,
                                                                                      String nom)
                                                                               throws Exception
        Throws:
        Exception
      • listUserAccounts

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.UserAccount> listUserAccounts​(com.soffid.iam.api.User usuari)
                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        listUserAccounts in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleListUserAccounts

        protected abstract List<com.soffid.iam.api.UserAccount> handleListUserAccounts​(com.soffid.iam.api.User usuari)
                                                                                throws Exception
        Throws:
        Exception
      • checkinHPAccount

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

        protected abstract void handleCheckinHPAccount​(com.soffid.iam.api.Account account)
                                                throws Exception
        Throws:
        Exception
      • checkinHPAccounts

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

        protected abstract void handleCheckinHPAccounts()
                                                 throws Exception
        Throws:
        Exception
      • 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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGenerateUserAccounts

        protected abstract void handleGenerateUserAccounts​(String user)
                                                    throws Exception
        Throws:
        Exception
      • removeAccount

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

        protected abstract void handleRemoveAccount​(com.soffid.iam.api.Account account)
                                             throws Exception
        Throws:
        Exception
      • removeAccount

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

        protected abstract void handleRemoveAccount​(com.soffid.iam.api.UserAccount account)
                                             throws Exception
        Throws:
        Exception
      • removeAccountAttribute

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void removeAccountAttribute​(com.soffid.iam.api.UserData attribute)
                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        removeAccountAttribute in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRemoveAccountAttribute

        protected abstract void handleRemoveAccountAttribute​(com.soffid.iam.api.UserData attribute)
                                                      throws Exception
        Throws:
        Exception
      • renameAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void renameAccount​(com.soffid.iam.api.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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.AccountAlreadyExistsException
      • handleRenameAccount

        protected abstract void handleRenameAccount​(com.soffid.iam.api.Account account)
                                             throws Exception
        Throws:
        Exception
      • sendAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void sendAccountPassword​(com.soffid.iam.api.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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.BadPasswordException
      • handleSendAccountPassword

        protected abstract void handleSendAccountPassword​(com.soffid.iam.api.Account account)
                                                   throws Exception
        Throws:
        Exception
      • setAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void setAccountPassword​(com.soffid.iam.api.Account account,
                                       com.soffid.iam.api.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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.BadPasswordException
      • handleSetAccountPassword

        protected abstract void handleSetAccountPassword​(com.soffid.iam.api.Account account,
                                                         com.soffid.iam.api.Password password)
                                                  throws Exception
        Throws:
        Exception
      • setAccountTemporaryPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void setAccountTemporaryPassword​(com.soffid.iam.api.Account account,
                                                com.soffid.iam.api.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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.BadPasswordException
      • handleSetAccountTemporaryPassword

        protected abstract void handleSetAccountTemporaryPassword​(com.soffid.iam.api.Account account,
                                                                  com.soffid.iam.api.Password password)
                                                           throws Exception
        Throws:
        Exception
      • 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 com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleSynchronizeAccount

        protected abstract void handleSynchronizeAccount​(String accountName,
                                                         String system)
                                                  throws Exception
        Throws:
        Exception
      • updateAccountLastUpdate

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

        protected abstract void handleUpdateAccountLastUpdate​(com.soffid.iam.api.Account account)
                                                       throws Exception
        Throws:
        Exception
      • updateAccountPasswordDate

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

        protected abstract void handleUpdateAccountPasswordDate​(com.soffid.iam.api.Account account,
                                                                Long passwordTerm)
                                                         throws Exception
        Throws:
        Exception
      • updateAccountPasswordDate2

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

        protected abstract void handleUpdateAccountPasswordDate2​(com.soffid.iam.api.Account account,
                                                                 Date expirationDate)
                                                          throws Exception
        Throws:
        Exception
      • grantAcccountToUser

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

        protected abstract void handleGrantAcccountToUser​(com.soffid.iam.api.Account account,
                                                          String user,
                                                          Long processId,
                                                          Date until)
                                                   throws Exception
        Throws:
        Exception
      • registerAccountReservationProcess

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void registerAccountReservationProcess​(com.soffid.iam.api.Account account,
                                                      String user,
                                                      Long processId)
                                               throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        registerAccountReservationProcess in interface com.soffid.iam.service.AccountService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRegisterAccountReservationProcess

        protected abstract void handleRegisterAccountReservationProcess​(com.soffid.iam.api.Account account,
                                                                        String user,
                                                                        Long processId)
                                                                 throws Exception
        Throws:
        Exception
      • getPrincipal

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