Class ReconcileServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.reconcile.service.ReconcileService
    Direct Known Subclasses:
    ReconcileServiceImpl

    public abstract class ReconcileServiceBase
    extends Object
    implements com.soffid.iam.reconcile.service.ReconcileService

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

    see com.soffid.iam.reconcile.service.ReconcileService
    • Constructor Detail

      • ReconcileServiceBase

        public ReconcileServiceBase()
    • 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.
      • 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.
      • 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.
      • setReconcileAccountAttributesEntityDao

        public void setReconcileAccountAttributesEntityDao​(ReconcileAccountAttributesEntityDao reconcileAccountAttributesEntityDao)
        Sets reference to reconcileAccountAttributesEntityDao.
      • getReconcileAccountAttributesEntityDao

        public ReconcileAccountAttributesEntityDao getReconcileAccountAttributesEntityDao()
        Gets reference to reconcileAccountAttributesEntityDao.
      • setReconcileAccountEntityDao

        public void setReconcileAccountEntityDao​(ReconcileAccountEntityDao reconcileAccountEntityDao)
        Sets reference to reconcileAccountEntityDao.
      • getReconcileAccountEntityDao

        public ReconcileAccountEntityDao getReconcileAccountEntityDao()
        Gets reference to reconcileAccountEntityDao.
      • setReconcileAssignmentEntityDao

        public void setReconcileAssignmentEntityDao​(ReconcileAssignmentEntityDao reconcileAssignmentEntityDao)
        Sets reference to reconcileAssignmentEntityDao.
      • getReconcileAssignmentEntityDao

        public ReconcileAssignmentEntityDao getReconcileAssignmentEntityDao()
        Gets reference to reconcileAssignmentEntityDao.
      • setReconcileRoleEntityDao

        public void setReconcileRoleEntityDao​(ReconcileRoleEntityDao reconcileRoleEntityDao)
        Sets reference to reconcileRoleEntityDao.
      • getReconcileRoleEntityDao

        public ReconcileRoleEntityDao getReconcileRoleEntityDao()
        Gets reference to reconcileRoleEntityDao.
      • setTaskEntityDao

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

        public TaskEntityDao getTaskEntityDao()
        Gets reference to tasqueEntityDao.
      • 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.
      • isPendingTasks

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public boolean isPendingTasks​(Long processId,
                                      Long taskId)
                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        isPendingTasks in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleIsPendingTasks

        protected abstract boolean handleIsPendingTasks​(Long processId,
                                                        Long taskId)
                                                 throws Exception
        Throws:
        Exception
      • addUser

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.reconcile.common.ReconcileAccount addUser​(com.soffid.iam.reconcile.common.ReconcileAccount userInfo)
                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        addUser in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleAddUser

        protected abstract com.soffid.iam.reconcile.common.ReconcileAccount handleAddUser​(com.soffid.iam.reconcile.common.ReconcileAccount userInfo)
                                                                                   throws Exception
        Throws:
        Exception
      • findReconAccountById

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.reconcile.common.ReconcileAccount findReconAccountById​(Long accountId)
                                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findReconAccountById in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindReconAccountById

        protected abstract com.soffid.iam.reconcile.common.ReconcileAccount handleFindReconAccountById​(Long accountId)
                                                                                                throws Exception
        Throws:
        Exception
      • addAssignment

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.reconcile.common.ReconcileAssignment addAssignment​(com.soffid.iam.reconcile.common.ReconcileAssignment assignmentInfo)
                                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        addAssignment in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleAddAssignment

        protected abstract com.soffid.iam.reconcile.common.ReconcileAssignment handleAddAssignment​(com.soffid.iam.reconcile.common.ReconcileAssignment assignmentInfo)
                                                                                            throws Exception
        Throws:
        Exception
      • findReconAssignmentById

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.reconcile.common.ReconcileAssignment findReconAssignmentById​(Long assignId)
                                                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findReconAssignmentById in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindReconAssignmentById

        protected abstract com.soffid.iam.reconcile.common.ReconcileAssignment handleFindReconAssignmentById​(Long assignId)
                                                                                                      throws Exception
        Throws:
        Exception
      • addRole

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.reconcile.common.ReconcileRole addRole​(com.soffid.iam.reconcile.common.ReconcileRole roleInfo)
                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        addRole in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleAddRole

        protected abstract com.soffid.iam.reconcile.common.ReconcileRole handleAddRole​(com.soffid.iam.reconcile.common.ReconcileRole roleInfo)
                                                                                throws Exception
        Throws:
        Exception
      • findReconRoleById

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.reconcile.common.ReconcileRole findReconRoleById​(Long roleId)
                                                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findReconRoleById in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindReconRoleById

        protected abstract com.soffid.iam.reconcile.common.ReconcileRole handleFindReconRoleById​(Long roleId)
                                                                                          throws Exception
        Throws:
        Exception
      • findAllReconAccounts

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.reconcile.common.ReconcileAccount> findAllReconAccounts​(Long processId)
                                                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAllReconAccounts in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAllReconAccounts

        protected abstract List<com.soffid.iam.reconcile.common.ReconcileAccount> handleFindAllReconAccounts​(Long processId)
                                                                                                      throws Exception
        Throws:
        Exception
      • findAllReconAssignment

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.reconcile.common.ReconcileAssignment> findAllReconAssignment​(Long processId)
                                                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAllReconAssignment in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAllReconAssignment

        protected abstract List<com.soffid.iam.reconcile.common.ReconcileAssignment> handleFindAllReconAssignment​(Long processId)
                                                                                                           throws Exception
        Throws:
        Exception
      • findAllReconRole

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.reconcile.common.ReconcileRole> findAllReconRole​(Long processId)
                                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAllReconRole in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAllReconRole

        protected abstract List<com.soffid.iam.reconcile.common.ReconcileRole> handleFindAllReconRole​(Long processId)
                                                                                               throws Exception
        Throws:
        Exception
      • createReconcileTask

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void createReconcileTask​(Long processId,
                                        String dispatcher)
                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createReconcileTask in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreateReconcileTask

        protected abstract void handleCreateReconcileTask​(Long processId,
                                                          String dispatcher)
                                                   throws Exception
        Throws:
        Exception
      • reconcileAssignment

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void reconcileAssignment​(Long processId)
                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        reconcileAssignment in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleReconcileAssignment

        protected abstract void handleReconcileAssignment​(Long processId)
                                                   throws Exception
        Throws:
        Exception
      • reconcileData

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void reconcileData​(Long processId)
                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        reconcileData in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleReconcileData

        protected abstract void handleReconcileData​(Long processId)
                                             throws Exception
        Throws:
        Exception
      • reconcileRoles

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void reconcileRoles​(Long processId)
                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        reconcileRoles in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleReconcileRoles

        protected abstract void handleReconcileRoles​(Long processId)
                                              throws Exception
        Throws:
        Exception
      • reconcileUsers

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void reconcileUsers​(Long processId)
                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        reconcileUsers in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleReconcileUsers

        protected abstract void handleReconcileUsers​(Long processId)
                                              throws Exception
        Throws:
        Exception
      • updateAssignment

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void updateAssignment​(com.soffid.iam.reconcile.common.ReconcileAssignment assignInfo)
                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateAssignment in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdateAssignment

        protected abstract void handleUpdateAssignment​(com.soffid.iam.reconcile.common.ReconcileAssignment assignInfo)
                                                throws Exception
        Throws:
        Exception
      • updateRole

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void updateRole​(com.soffid.iam.reconcile.common.ReconcileRole roleInfo)
                        throws es.caib.seycon.ng.exception.InternalErrorException,
                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateRole in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdateRole

        protected abstract void handleUpdateRole​(com.soffid.iam.reconcile.common.ReconcileRole roleInfo)
                                          throws Exception
        Throws:
        Exception
      • updateUser

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void updateUser​(com.soffid.iam.reconcile.common.ReconcileAccount userInfo)
                        throws es.caib.seycon.ng.exception.InternalErrorException,
                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateUser in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdateUser

        protected abstract void handleUpdateUser​(com.soffid.iam.reconcile.common.ReconcileAccount userInfo)
                                          throws Exception
        Throws:
        Exception
      • validateReconcileAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void validateReconcileAccount​(com.soffid.iam.reconcile.common.ReconcileAccount accountinfo)
                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        validateReconcileAccount in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleValidateReconcileAccount

        protected abstract void handleValidateReconcileAccount​(com.soffid.iam.reconcile.common.ReconcileAccount accountinfo)
                                                        throws Exception
        Throws:
        Exception
      • validateReconcileRole

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void validateReconcileRole​(com.soffid.iam.reconcile.common.ReconcileRole roleInfo)
                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        validateReconcileRole in interface com.soffid.iam.reconcile.service.ReconcileService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleValidateReconcileRole

        protected abstract void handleValidateReconcileRole​(com.soffid.iam.reconcile.common.ReconcileRole roleInfo)
                                                     throws Exception
        Throws:
        Exception
      • getPrincipal

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