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 void
apply(RuleEntity rule)
Operation applyvoid
apply(RuleEntity rule, UserEntity user)
Operation applycom.soffid.iam.api.AsyncProcessTracker
applyAsync(RuleEntity rule)
Operation applyAsyncvoid
applyRules(UserEntity user)
Operation applyRulesFile
dryRun(RuleEntity rule)
Operation dryRunAccountEntityDao
getAccountEntityDao()
Gets reference toaccountEntityDao
.com.soffid.iam.service.AccountService
getAccountService()
Gets reference toaccountService
.com.soffid.iam.service.ApplicationService
getApplicationService()
Gets reference toaplicacioService
.com.soffid.iam.service.AsyncRunnerService
getAsyncRunnerService()
Gets reference toasyncRunnerService
.com.soffid.iam.service.DispatcherService
getDispatcherService()
Gets reference todispatcherService
.GroupEntityDao
getGroupEntityDao()
Gets reference togrupEntityDao
.protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.RoleAccountEntityDao
getRoleAccountEntityDao()
Gets reference torolAccountEntityDao
.RoleEntityDao
getRoleEntityDao()
Gets reference torolEntityDao
.RuleAssignedRoleEntityDao
getRuleAssignedRoleEntityDao()
Gets reference toruleAssignedRoleEntityDao
.RuleEntityDao
getRuleEntityDao()
Gets reference toruleEntityDao
.SoffidEventListener
getSoffidEventListener()
Gets reference tosoffidEventListener
.SystemEntityDao
getSystemEntityDao()
Gets reference todispatcherEntityDao
.TaskEntityDao
getTaskEntityDao()
Gets reference totasqueEntityDao
.UserEntityDao
getUserEntityDao()
Gets reference tousuariEntityDao
.com.soffid.iam.service.UserService
getUserService()
Gets reference tousuariService
.protected abstract void
handleApply(RuleEntity rule)
protected abstract void
handleApply(RuleEntity rule, UserEntity user)
protected abstract com.soffid.iam.api.AsyncProcessTracker
handleApplyAsync(RuleEntity rule)
protected abstract void
handleApplyRules(UserEntity user)
protected abstract File
handleDryRun(RuleEntity rule)
protected abstract com.soffid.iam.api.AsyncProcessTracker
handleQueryProcessStatus(com.soffid.iam.api.AsyncProcessTracker process)
com.soffid.iam.api.AsyncProcessTracker
queryProcessStatus(com.soffid.iam.api.AsyncProcessTracker process)
Operation queryProcessStatus Query the rule process statusvoid
setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.void
setAccountService(com.soffid.iam.service.AccountService accountService)
Sets reference toaccountService
.void
setApplicationService(com.soffid.iam.service.ApplicationService aplicacioService)
Sets reference toaplicacioService
.void
setAsyncRunnerService(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)
Sets reference toasyncRunnerService
.void
setDispatcherService(com.soffid.iam.service.DispatcherService dispatcherService)
Sets reference todispatcherService
.void
setGroupEntityDao(GroupEntityDao grupEntityDao)
Sets reference togrupEntityDao
.void
setRoleAccountEntityDao(RoleAccountEntityDao rolAccountEntityDao)
Sets reference torolAccountEntityDao
.void
setRoleEntityDao(RoleEntityDao rolEntityDao)
Sets reference torolEntityDao
.void
setRuleAssignedRoleEntityDao(RuleAssignedRoleEntityDao ruleAssignedRoleEntityDao)
Sets reference toruleAssignedRoleEntityDao
.void
setRuleEntityDao(RuleEntityDao ruleEntityDao)
Sets reference toruleEntityDao
.void
setSoffidEventListener(SoffidEventListener soffidEventListener)
Sets reference tosoffidEventListener
.void
setSystemEntityDao(SystemEntityDao dispatcherEntityDao)
Sets reference todispatcherEntityDao
.void
setTaskEntityDao(TaskEntityDao tasqueEntityDao)
Sets reference totasqueEntityDao
.void
setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.void
setUserService(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.InternalErrorException
Description copied from interface:RuleEvaluatorService
Operation applyAsync- Specified by:
applyAsync
in 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.InternalErrorException
Description copied from interface:RuleEvaluatorService
Operation queryProcessStatus Query the rule process status- Specified by:
queryProcessStatus
in 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.InternalErrorException
Description copied from interface:RuleEvaluatorService
Operation dryRun- Specified by:
dryRun
in 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.InternalErrorException
Description copied from interface:RuleEvaluatorService
Operation apply- Specified by:
apply
in 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.InternalErrorException
Description copied from interface:RuleEvaluatorService
Operation apply- Specified by:
apply
in 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.InternalErrorException
Description copied from interface:RuleEvaluatorService
Operation applyRules- Specified by:
applyRules
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-