Class RuleEvaluatorServiceBase

  • All Implemented Interfaces:
    RuleEvaluatorService
    Direct Known Subclasses:
    RuleEvaluatorServiceImpl

    public abstract class RuleEvaluatorServiceBase
    extends Object
    implements RuleEvaluatorService

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

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

      • RuleEvaluatorServiceBase

        public RuleEvaluatorServiceBase()
    • Method Detail

      • setAccountEntityDao

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

        public AccountEntityDao getAccountEntityDao()
        Gets reference to accountEntityDao.
      • 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.
      • 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.
      • 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.
      • setGroupEntityDao

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

        public GroupEntityDao getGroupEntityDao()
        Gets reference to grupEntityDao.
      • 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.
      • setRuleAssignedRoleEntityDao

        public void setRuleAssignedRoleEntityDao​(RuleAssignedRoleEntityDao ruleAssignedRoleEntityDao)
        Sets reference to ruleAssignedRoleEntityDao.
      • getRuleAssignedRoleEntityDao

        public RuleAssignedRoleEntityDao getRuleAssignedRoleEntityDao()
        Gets reference to ruleAssignedRoleEntityDao.
      • setRuleEntityDao

        public void setRuleEntityDao​(RuleEntityDao ruleEntityDao)
        Sets reference to ruleEntityDao.
      • getRuleEntityDao

        public RuleEntityDao getRuleEntityDao()
        Gets reference to ruleEntityDao.
      • setSoffidEventListener

        public void setSoffidEventListener​(SoffidEventListener soffidEventListener)
        Sets reference to soffidEventListener.
      • getSoffidEventListener

        public SoffidEventListener getSoffidEventListener()
        Gets reference to soffidEventListener.
      • 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.
      • applyAsync

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncProcessTracker applyAsync​(RuleEntity rule)
                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: RuleEvaluatorService
        Operation applyAsync
        Specified by:
        applyAsync in interface RuleEvaluatorService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleApplyAsync

        protected abstract com.soffid.iam.api.AsyncProcessTracker handleApplyAsync​(RuleEntity rule)
                                                                            throws Exception
        Throws:
        Exception
      • queryProcessStatus

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncProcessTracker queryProcessStatus​(com.soffid.iam.api.AsyncProcessTracker process)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: RuleEvaluatorService
        Operation queryProcessStatus Query the rule process status
        Specified by:
        queryProcessStatus in interface RuleEvaluatorService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleQueryProcessStatus

        protected abstract com.soffid.iam.api.AsyncProcessTracker handleQueryProcessStatus​(com.soffid.iam.api.AsyncProcessTracker process)
                                                                                    throws Exception
        Throws:
        Exception
      • dryRun

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       noRollbackFor=java.lang.Exception.class,
                       readOnly=true)
        public File dryRun​(RuleEntity rule)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: RuleEvaluatorService
        Operation dryRun
        Specified by:
        dryRun in interface RuleEvaluatorService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • apply

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void apply​(RuleEntity rule)
                   throws es.caib.seycon.ng.exception.InternalErrorException,
                          es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: RuleEvaluatorService
        Operation apply
        Specified by:
        apply in interface RuleEvaluatorService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • apply

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void apply​(RuleEntity rule,
                          UserEntity user)
                   throws es.caib.seycon.ng.exception.InternalErrorException,
                          es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: RuleEvaluatorService
        Operation apply
        Specified by:
        apply in interface RuleEvaluatorService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • applyRules

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void applyRules​(UserEntity user)
                        throws es.caib.seycon.ng.exception.InternalErrorException,
                               es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: RuleEvaluatorService
        Operation applyRules
        Specified by:
        applyRules in interface RuleEvaluatorService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPrincipal

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