Package com.soffid.iam.service
Class RuleEvaluatorServiceBase
- java.lang.Object
-
- com.soffid.iam.service.RuleEvaluatorServiceBase
-
- All Implemented Interfaces:
RuleEvaluatorService
- Direct Known Subclasses:
RuleEvaluatorServiceImpl
public abstract class RuleEvaluatorServiceBase extends Object implements RuleEvaluatorService
Spring Service base class for
see com.soffid.iam.service.RuleEvaluatorServicecom.soffid.iam.service.RuleEvaluatorService, provides access to all services and entities referenced by this service.
-
-
Field Summary
-
Fields inherited from interface com.soffid.iam.service.RuleEvaluatorService
SERVICE_NAME
-
-
Constructor Summary
Constructors Constructor Description RuleEvaluatorServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidapply(RuleEntity rule)Operation applyvoidapply(RuleEntity rule, UserEntity user)Operation applycom.soffid.iam.api.AsyncProcessTrackerapplyAsync(RuleEntity rule)Operation applyAsyncvoidapplyRules(UserEntity user)Operation applyRulesFiledryRun(RuleEntity rule)Operation dryRunAccountEntityDaogetAccountEntityDao()Gets reference toaccountEntityDao.com.soffid.iam.service.AccountServicegetAccountService()Gets reference toaccountService.com.soffid.iam.service.ApplicationServicegetApplicationService()Gets reference toaplicacioService.com.soffid.iam.service.AsyncRunnerServicegetAsyncRunnerService()Gets reference toasyncRunnerService.com.soffid.iam.service.DispatcherServicegetDispatcherService()Gets reference todispatcherService.GroupEntityDaogetGroupEntityDao()Gets reference togrupEntityDao.protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.RoleAccountEntityDaogetRoleAccountEntityDao()Gets reference torolAccountEntityDao.RoleEntityDaogetRoleEntityDao()Gets reference torolEntityDao.RuleAssignedRoleEntityDaogetRuleAssignedRoleEntityDao()Gets reference toruleAssignedRoleEntityDao.RuleEntityDaogetRuleEntityDao()Gets reference toruleEntityDao.SoffidEventListenergetSoffidEventListener()Gets reference tosoffidEventListener.SystemEntityDaogetSystemEntityDao()Gets reference todispatcherEntityDao.TaskEntityDaogetTaskEntityDao()Gets reference totasqueEntityDao.UserEntityDaogetUserEntityDao()Gets reference tousuariEntityDao.com.soffid.iam.service.UserServicegetUserService()Gets reference tousuariService.protected abstract voidhandleApply(RuleEntity rule)protected abstract voidhandleApply(RuleEntity rule, UserEntity user)protected abstract com.soffid.iam.api.AsyncProcessTrackerhandleApplyAsync(RuleEntity rule)protected abstract voidhandleApplyRules(UserEntity user)protected abstract FilehandleDryRun(RuleEntity rule)protected abstract com.soffid.iam.api.AsyncProcessTrackerhandleQueryProcessStatus(com.soffid.iam.api.AsyncProcessTracker process)com.soffid.iam.api.AsyncProcessTrackerqueryProcessStatus(com.soffid.iam.api.AsyncProcessTracker process)Operation queryProcessStatus Query the rule process statusvoidsetAccountEntityDao(AccountEntityDao accountEntityDao)Sets reference toaccountEntityDao.voidsetAccountService(com.soffid.iam.service.AccountService accountService)Sets reference toaccountService.voidsetApplicationService(com.soffid.iam.service.ApplicationService aplicacioService)Sets reference toaplicacioService.voidsetAsyncRunnerService(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)Sets reference toasyncRunnerService.voidsetDispatcherService(com.soffid.iam.service.DispatcherService dispatcherService)Sets reference todispatcherService.voidsetGroupEntityDao(GroupEntityDao grupEntityDao)Sets reference togrupEntityDao.voidsetRoleAccountEntityDao(RoleAccountEntityDao rolAccountEntityDao)Sets reference torolAccountEntityDao.voidsetRoleEntityDao(RoleEntityDao rolEntityDao)Sets reference torolEntityDao.voidsetRuleAssignedRoleEntityDao(RuleAssignedRoleEntityDao ruleAssignedRoleEntityDao)Sets reference toruleAssignedRoleEntityDao.voidsetRuleEntityDao(RuleEntityDao ruleEntityDao)Sets reference toruleEntityDao.voidsetSoffidEventListener(SoffidEventListener soffidEventListener)Sets reference tosoffidEventListener.voidsetSystemEntityDao(SystemEntityDao dispatcherEntityDao)Sets reference todispatcherEntityDao.voidsetTaskEntityDao(TaskEntityDao tasqueEntityDao)Sets reference totasqueEntityDao.voidsetUserEntityDao(UserEntityDao usuariEntityDao)Sets reference tousuariEntityDao.voidsetUserService(com.soffid.iam.service.UserService usuariService)Sets reference tousuariService.
-
-
-
Method Detail
-
setAccountEntityDao
public void setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao.
-
getAccountEntityDao
public AccountEntityDao getAccountEntityDao()
Gets reference toaccountEntityDao.
-
setAccountService
public void setAccountService(com.soffid.iam.service.AccountService accountService)
Sets reference toaccountService.
-
getAccountService
public com.soffid.iam.service.AccountService getAccountService()
Gets reference toaccountService.
-
setApplicationService
public void setApplicationService(com.soffid.iam.service.ApplicationService aplicacioService)
Sets reference toaplicacioService.
-
getApplicationService
public com.soffid.iam.service.ApplicationService getApplicationService()
Gets reference toaplicacioService.
-
setAsyncRunnerService
public void setAsyncRunnerService(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)
Sets reference toasyncRunnerService.
-
getAsyncRunnerService
public com.soffid.iam.service.AsyncRunnerService getAsyncRunnerService()
Gets reference toasyncRunnerService.
-
setSystemEntityDao
public void setSystemEntityDao(SystemEntityDao dispatcherEntityDao)
Sets reference todispatcherEntityDao.
-
getSystemEntityDao
public SystemEntityDao getSystemEntityDao()
Gets reference todispatcherEntityDao.
-
setDispatcherService
public void setDispatcherService(com.soffid.iam.service.DispatcherService dispatcherService)
Sets reference todispatcherService.
-
getDispatcherService
public com.soffid.iam.service.DispatcherService getDispatcherService()
Gets reference todispatcherService.
-
setGroupEntityDao
public void setGroupEntityDao(GroupEntityDao grupEntityDao)
Sets reference togrupEntityDao.
-
getGroupEntityDao
public GroupEntityDao getGroupEntityDao()
Gets reference togrupEntityDao.
-
setRoleAccountEntityDao
public void setRoleAccountEntityDao(RoleAccountEntityDao rolAccountEntityDao)
Sets reference torolAccountEntityDao.
-
getRoleAccountEntityDao
public RoleAccountEntityDao getRoleAccountEntityDao()
Gets reference torolAccountEntityDao.
-
setRoleEntityDao
public void setRoleEntityDao(RoleEntityDao rolEntityDao)
Sets reference torolEntityDao.
-
getRoleEntityDao
public RoleEntityDao getRoleEntityDao()
Gets reference torolEntityDao.
-
setRuleAssignedRoleEntityDao
public void setRuleAssignedRoleEntityDao(RuleAssignedRoleEntityDao ruleAssignedRoleEntityDao)
Sets reference toruleAssignedRoleEntityDao.
-
getRuleAssignedRoleEntityDao
public RuleAssignedRoleEntityDao getRuleAssignedRoleEntityDao()
Gets reference toruleAssignedRoleEntityDao.
-
setRuleEntityDao
public void setRuleEntityDao(RuleEntityDao ruleEntityDao)
Sets reference toruleEntityDao.
-
getRuleEntityDao
public RuleEntityDao getRuleEntityDao()
Gets reference toruleEntityDao.
-
setSoffidEventListener
public void setSoffidEventListener(SoffidEventListener soffidEventListener)
Sets reference tosoffidEventListener.
-
getSoffidEventListener
public SoffidEventListener getSoffidEventListener()
Gets reference tosoffidEventListener.
-
setTaskEntityDao
public void setTaskEntityDao(TaskEntityDao tasqueEntityDao)
Sets reference totasqueEntityDao.
-
getTaskEntityDao
public TaskEntityDao getTaskEntityDao()
Gets reference totasqueEntityDao.
-
setUserEntityDao
public void setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao.
-
getUserEntityDao
public UserEntityDao getUserEntityDao()
Gets reference tousuariEntityDao.
-
setUserService
public void setUserService(com.soffid.iam.service.UserService usuariService)
Sets reference tousuariService.
-
getUserService
public com.soffid.iam.service.UserService getUserService()
Gets reference tousuariService.
-
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.InternalErrorExceptionDescription copied from interface:RuleEvaluatorServiceOperation applyAsync- Specified by:
applyAsyncin interfaceRuleEvaluatorService- 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.InternalErrorExceptionDescription copied from interface:RuleEvaluatorServiceOperation queryProcessStatus Query the rule process status- Specified by:
queryProcessStatusin interfaceRuleEvaluatorService- 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.InternalErrorExceptionDescription copied from interface:RuleEvaluatorServiceOperation dryRun- Specified by:
dryRunin interfaceRuleEvaluatorService- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDryRun
protected abstract File handleDryRun(RuleEntity rule) throws Exception
- Throws:
Exception
-
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.InternalErrorExceptionDescription copied from interface:RuleEvaluatorServiceOperation apply- Specified by:
applyin interfaceRuleEvaluatorService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleApply
protected abstract void handleApply(RuleEntity rule) throws Exception
- Throws:
Exception
-
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.InternalErrorExceptionDescription copied from interface:RuleEvaluatorServiceOperation apply- Specified by:
applyin interfaceRuleEvaluatorService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleApply
protected abstract void handleApply(RuleEntity rule, UserEntity user) throws Exception
- Throws:
Exception
-
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.InternalErrorExceptionDescription copied from interface:RuleEvaluatorServiceOperation applyRules- Specified by:
applyRulesin interfaceRuleEvaluatorService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleApplyRules
protected abstract void handleApplyRules(UserEntity user) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-