Package com.soffid.iam.service
Class SoDRuleServiceBase
- java.lang.Object
-
- com.soffid.iam.service.SoDRuleServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.SoDRuleService
- Direct Known Subclasses:
SoDRuleServiceImpl
public abstract class SoDRuleServiceBase extends Object implements com.soffid.iam.service.SoDRuleService
Spring Service base class for
see com.soffid.iam.service.SoDRuleServicecom.soffid.iam.service.SoDRuleService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description SoDRuleServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.soffid.iam.api.SoDRolecreate(com.soffid.iam.api.SoDRole role)com.soffid.iam.api.SoDRulecreate(com.soffid.iam.api.SoDRule rule)com.soffid.iam.api.SoDRuleMatrixcreate(com.soffid.iam.api.SoDRuleMatrix role)Collection<com.soffid.iam.api.SoDRule>findAffectingRulesByRolAccount(com.soffid.iam.api.RoleAccount ra)Collection<com.soffid.iam.api.SoDRuleMatrix>findMatrixByRule(Long ruleId)Collection<com.soffid.iam.api.SoDRole>findRolesByRule(Long ruleId)Collection<com.soffid.iam.api.SoDRule>findRuleByApplication(Long applicationId)List<com.soffid.iam.api.SoDRule>findSodRuleByJsonQuery(String query, Integer first, Integer pageSize)com.soffid.iam.api.AsyncList<com.soffid.iam.api.SoDRule>findSodRuleByJsonQueryAsync(String query)List<com.soffid.iam.api.RoleAccount>findViolotions(String applicationName, es.caib.seycon.ng.comu.SoDRisk riskLevel)com.soffid.iam.service.ApplicationServicegetApplicationService()Gets reference toaplicacioService.com.soffid.iam.service.AsyncRunnerServicegetAsyncRunnerService()Gets reference toasyncRunnerService.com.soffid.iam.service.ConfigurationServicegetConfigurationService()Gets reference toconfiguracioService.InformationSystemEntityDaogetInformationSystemEntityDao()Gets reference toaplicacioEntityDao.protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.RoleEntityDaogetRoleEntityDao()Gets reference torolEntityDao.com.soffid.iam.api.SoDRulegetRuleById(Long ruleId)SoDRoleEntityDaogetSoDRoleEntityDao()Gets reference tosoDRoleEntityDao.SoDRuleEntityDaogetSoDRuleEntityDao()Gets reference tosoDRuleEntityDao.SoDRuleMatrixEntityDaogetSoDRuleMatrixEntityDao()Gets reference tosoDRuleMatrixEntityDao.UserEntityDaogetUserEntityDao()Gets reference tousuariEntityDao.protected abstract com.soffid.iam.api.SoDRolehandleCreate(com.soffid.iam.api.SoDRole role)protected abstract com.soffid.iam.api.SoDRulehandleCreate(com.soffid.iam.api.SoDRule rule)protected abstract com.soffid.iam.api.SoDRuleMatrixhandleCreate(com.soffid.iam.api.SoDRuleMatrix role)protected abstract Collection<com.soffid.iam.api.SoDRule>handleFindAffectingRulesByRolAccount(com.soffid.iam.api.RoleAccount ra)protected abstract Collection<com.soffid.iam.api.SoDRuleMatrix>handleFindMatrixByRule(Long ruleId)protected abstract Collection<com.soffid.iam.api.SoDRole>handleFindRolesByRule(Long ruleId)protected abstract Collection<com.soffid.iam.api.SoDRule>handleFindRuleByApplication(Long applicationId)protected abstract List<com.soffid.iam.api.SoDRule>handleFindSodRuleByJsonQuery(String query, Integer first, Integer pageSize)protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.SoDRule>handleFindSodRuleByJsonQueryAsync(String query)protected abstract List<com.soffid.iam.api.RoleAccount>handleFindViolotions(String applicationName, es.caib.seycon.ng.comu.SoDRisk riskLevel)protected abstract com.soffid.iam.api.SoDRulehandleGetRuleById(Long ruleId)protected abstract voidhandleInternalRemovingRole(Long roleId)protected abstract com.soffid.iam.api.SoDRulehandleIsAllowed(com.soffid.iam.api.RoleAccount ra)protected abstract booleanhandleIsGreater(es.caib.seycon.ng.comu.SoDRisk first, es.caib.seycon.ng.comu.SoDRisk second)protected abstract voidhandleQualifyRolAccountList(List<com.soffid.iam.api.RoleAccount> ra)protected abstract es.caib.seycon.ng.comu.SoDRiskhandleQualifyUser(Collection<com.soffid.iam.api.RoleAccount> ra)protected abstract voidhandleRemove(com.soffid.iam.api.SoDRole role)protected abstract voidhandleRemove(com.soffid.iam.api.SoDRule rule)protected abstract voidhandleRemove(com.soffid.iam.api.SoDRuleMatrix role)protected abstract com.soffid.iam.api.SoDRulehandleUpdate(com.soffid.iam.api.SoDRule rule)protected abstract com.soffid.iam.api.SoDRuleMatrixhandleUpdate(com.soffid.iam.api.SoDRuleMatrix role)voidinternalRemovingRole(Long roleId)com.soffid.iam.api.SoDRuleisAllowed(com.soffid.iam.api.RoleAccount ra)booleanisGreater(es.caib.seycon.ng.comu.SoDRisk first, es.caib.seycon.ng.comu.SoDRisk second)voidqualifyRolAccountList(List<com.soffid.iam.api.RoleAccount> ra)es.caib.seycon.ng.comu.SoDRiskqualifyUser(Collection<com.soffid.iam.api.RoleAccount> ra)voidremove(com.soffid.iam.api.SoDRole role)voidremove(com.soffid.iam.api.SoDRule rule)voidremove(com.soffid.iam.api.SoDRuleMatrix role)voidsetApplicationService(com.soffid.iam.service.ApplicationService aplicacioService)Sets reference toaplicacioService.voidsetAsyncRunnerService(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)Sets reference toasyncRunnerService.voidsetConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)Sets reference toconfiguracioService.voidsetInformationSystemEntityDao(InformationSystemEntityDao aplicacioEntityDao)Sets reference toaplicacioEntityDao.voidsetRoleEntityDao(RoleEntityDao rolEntityDao)Sets reference torolEntityDao.voidsetSoDRoleEntityDao(SoDRoleEntityDao soDRoleEntityDao)Sets reference tosoDRoleEntityDao.voidsetSoDRuleEntityDao(SoDRuleEntityDao soDRuleEntityDao)Sets reference tosoDRuleEntityDao.voidsetSoDRuleMatrixEntityDao(SoDRuleMatrixEntityDao soDRuleMatrixEntityDao)Sets reference tosoDRuleMatrixEntityDao.voidsetUserEntityDao(UserEntityDao usuariEntityDao)Sets reference tousuariEntityDao.com.soffid.iam.api.SoDRuleupdate(com.soffid.iam.api.SoDRule rule)com.soffid.iam.api.SoDRuleMatrixupdate(com.soffid.iam.api.SoDRuleMatrix role)
-
-
-
Method Detail
-
setInformationSystemEntityDao
public void setInformationSystemEntityDao(InformationSystemEntityDao aplicacioEntityDao)
Sets reference toaplicacioEntityDao.
-
getInformationSystemEntityDao
public InformationSystemEntityDao getInformationSystemEntityDao()
Gets reference toaplicacioEntityDao.
-
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.
-
setConfigurationService
public void setConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)
Sets reference toconfiguracioService.
-
getConfigurationService
public com.soffid.iam.service.ConfigurationService getConfigurationService()
Gets reference toconfiguracioService.
-
setRoleEntityDao
public void setRoleEntityDao(RoleEntityDao rolEntityDao)
Sets reference torolEntityDao.
-
getRoleEntityDao
public RoleEntityDao getRoleEntityDao()
Gets reference torolEntityDao.
-
setSoDRoleEntityDao
public void setSoDRoleEntityDao(SoDRoleEntityDao soDRoleEntityDao)
Sets reference tosoDRoleEntityDao.
-
getSoDRoleEntityDao
public SoDRoleEntityDao getSoDRoleEntityDao()
Gets reference tosoDRoleEntityDao.
-
setSoDRuleEntityDao
public void setSoDRuleEntityDao(SoDRuleEntityDao soDRuleEntityDao)
Sets reference tosoDRuleEntityDao.
-
getSoDRuleEntityDao
public SoDRuleEntityDao getSoDRuleEntityDao()
Gets reference tosoDRuleEntityDao.
-
setSoDRuleMatrixEntityDao
public void setSoDRuleMatrixEntityDao(SoDRuleMatrixEntityDao soDRuleMatrixEntityDao)
Sets reference tosoDRuleMatrixEntityDao.
-
getSoDRuleMatrixEntityDao
public SoDRuleMatrixEntityDao getSoDRuleMatrixEntityDao()
Gets reference tosoDRuleMatrixEntityDao.
-
setUserEntityDao
public void setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao.
-
getUserEntityDao
public UserEntityDao getUserEntityDao()
Gets reference tousuariEntityDao.
-
isGreater
@Transactional(rollbackFor=java.lang.Exception.class) public boolean isGreater(es.caib.seycon.ng.comu.SoDRisk first, es.caib.seycon.ng.comu.SoDRisk second) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
isGreaterin interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleIsGreater
protected abstract boolean handleIsGreater(es.caib.seycon.ng.comu.SoDRisk first, es.caib.seycon.ng.comu.SoDRisk second) throws Exception- Throws:
Exception
-
findSodRuleByJsonQueryAsync
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.AsyncList<com.soffid.iam.api.SoDRule> findSodRuleByJsonQueryAsync(String query) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findSodRuleByJsonQueryAsyncin interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindSodRuleByJsonQueryAsync
protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.SoDRule> handleFindSodRuleByJsonQueryAsync(String query) throws Exception
- Throws:
Exception
-
create
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.SoDRuleMatrix create(com.soffid.iam.api.SoDRuleMatrix role) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
createin interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreate
protected abstract com.soffid.iam.api.SoDRuleMatrix handleCreate(com.soffid.iam.api.SoDRuleMatrix role) throws Exception- Throws:
Exception
-
update
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.SoDRuleMatrix update(com.soffid.iam.api.SoDRuleMatrix role) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
updatein interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdate
protected abstract com.soffid.iam.api.SoDRuleMatrix handleUpdate(com.soffid.iam.api.SoDRuleMatrix role) throws Exception- Throws:
Exception
-
qualifyUser
@Transactional(rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.SoDRisk qualifyUser(Collection<com.soffid.iam.api.RoleAccount> ra) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
qualifyUserin interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleQualifyUser
protected abstract es.caib.seycon.ng.comu.SoDRisk handleQualifyUser(Collection<com.soffid.iam.api.RoleAccount> ra) throws Exception
- Throws:
Exception
-
create
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.SoDRole create(com.soffid.iam.api.SoDRole role) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
createin interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreate
protected abstract com.soffid.iam.api.SoDRole handleCreate(com.soffid.iam.api.SoDRole role) throws Exception- Throws:
Exception
-
create
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.SoDRule create(com.soffid.iam.api.SoDRule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
createin interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreate
protected abstract com.soffid.iam.api.SoDRule handleCreate(com.soffid.iam.api.SoDRule rule) throws Exception- Throws:
Exception
-
getRuleById
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.SoDRule getRuleById(Long ruleId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getRuleByIdin interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetRuleById
protected abstract com.soffid.iam.api.SoDRule handleGetRuleById(Long ruleId) throws Exception
- Throws:
Exception
-
isAllowed
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.SoDRule isAllowed(com.soffid.iam.api.RoleAccount ra) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
isAllowedin interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleIsAllowed
protected abstract com.soffid.iam.api.SoDRule handleIsAllowed(com.soffid.iam.api.RoleAccount ra) throws Exception- Throws:
Exception
-
update
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.SoDRule update(com.soffid.iam.api.SoDRule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
updatein interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdate
protected abstract com.soffid.iam.api.SoDRule handleUpdate(com.soffid.iam.api.SoDRule rule) throws Exception- Throws:
Exception
-
findAffectingRulesByRolAccount
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.SoDRule> findAffectingRulesByRolAccount(com.soffid.iam.api.RoleAccount ra) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findAffectingRulesByRolAccountin interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindAffectingRulesByRolAccount
protected abstract Collection<com.soffid.iam.api.SoDRule> handleFindAffectingRulesByRolAccount(com.soffid.iam.api.RoleAccount ra) throws Exception
- Throws:
Exception
-
findMatrixByRule
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.SoDRuleMatrix> findMatrixByRule(Long ruleId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findMatrixByRulein interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindMatrixByRule
protected abstract Collection<com.soffid.iam.api.SoDRuleMatrix> handleFindMatrixByRule(Long ruleId) throws Exception
- Throws:
Exception
-
findRolesByRule
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.SoDRole> findRolesByRule(Long ruleId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findRolesByRulein interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindRolesByRule
protected abstract Collection<com.soffid.iam.api.SoDRole> handleFindRolesByRule(Long ruleId) throws Exception
- Throws:
Exception
-
findRuleByApplication
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.SoDRule> findRuleByApplication(Long applicationId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findRuleByApplicationin interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindRuleByApplication
protected abstract Collection<com.soffid.iam.api.SoDRule> handleFindRuleByApplication(Long applicationId) throws Exception
- Throws:
Exception
-
findSodRuleByJsonQuery
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public List<com.soffid.iam.api.SoDRule> findSodRuleByJsonQuery(String query, Integer first, Integer pageSize) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findSodRuleByJsonQueryin interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindSodRuleByJsonQuery
protected abstract List<com.soffid.iam.api.SoDRule> handleFindSodRuleByJsonQuery(String query, Integer first, Integer pageSize) throws Exception
- Throws:
Exception
-
findViolotions
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public List<com.soffid.iam.api.RoleAccount> findViolotions(String applicationName, es.caib.seycon.ng.comu.SoDRisk riskLevel) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findViolotionsin interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindViolotions
protected abstract List<com.soffid.iam.api.RoleAccount> handleFindViolotions(String applicationName, es.caib.seycon.ng.comu.SoDRisk riskLevel) throws Exception
- Throws:
Exception
-
internalRemovingRole
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void internalRemovingRole(Long roleId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
internalRemovingRolein interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleInternalRemovingRole
protected abstract void handleInternalRemovingRole(Long roleId) throws Exception
- Throws:
Exception
-
qualifyRolAccountList
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void qualifyRolAccountList(List<com.soffid.iam.api.RoleAccount> ra) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
qualifyRolAccountListin interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleQualifyRolAccountList
protected abstract void handleQualifyRolAccountList(List<com.soffid.iam.api.RoleAccount> ra) throws Exception
- Throws:
Exception
-
remove
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void remove(com.soffid.iam.api.SoDRuleMatrix role) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
removein interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRemove
protected abstract void handleRemove(com.soffid.iam.api.SoDRuleMatrix role) throws Exception- Throws:
Exception
-
remove
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void remove(com.soffid.iam.api.SoDRole role) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
removein interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRemove
protected abstract void handleRemove(com.soffid.iam.api.SoDRole role) throws Exception- Throws:
Exception
-
remove
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void remove(com.soffid.iam.api.SoDRule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
removein interfacecom.soffid.iam.service.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRemove
protected abstract void handleRemove(com.soffid.iam.api.SoDRule rule) throws Exception- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-