Package es.caib.seycon.ng.servei
Class SoDRuleServiceBase
- java.lang.Object
-
- es.caib.seycon.ng.servei.SoDRuleServiceBase
-
- All Implemented Interfaces:
es.caib.seycon.ng.servei.SoDRuleService
public abstract class SoDRuleServiceBase extends Object implements es.caib.seycon.ng.servei.SoDRuleService
Spring Service base class for
see es.caib.seycon.ng.servei.SoDRuleServicees.caib.seycon.ng.servei.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.SoDRuleMatrixcreate(com.soffid.iam.api.SoDRuleMatrix role)es.caib.seycon.ng.comu.SoDRolecreate(es.caib.seycon.ng.comu.SoDRole role)es.caib.seycon.ng.comu.SoDRulecreate(es.caib.seycon.ng.comu.SoDRule rule)Collection<es.caib.seycon.ng.comu.SoDRule>findAffectingRulesByRolAccount(es.caib.seycon.ng.comu.RolAccount ra)Collection<com.soffid.iam.api.SoDRuleMatrix>findMatrixByRule(Long ruleId)Collection<es.caib.seycon.ng.comu.SoDRole>findRolesByRule(Long ruleId)Collection<es.caib.seycon.ng.comu.SoDRule>findRuleByApplication(Long applicationId)List<es.caib.seycon.ng.comu.SoDRule>findSodRuleByJsonQuery(String query, Integer first, Integer pageSize)com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.SoDRule>findSodRuleByJsonQueryAsync(String query)List<es.caib.seycon.ng.comu.RolAccount>findViolotions(String applicationName, es.caib.seycon.ng.comu.SoDRisk riskLevel)protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.es.caib.seycon.ng.comu.SoDRulegetRuleById(Long ruleId)com.soffid.iam.service.SoDRuleServicegetSoDRuleService()Gets reference tosoDRuleService.protected abstract com.soffid.iam.api.SoDRuleMatrixhandleCreate(com.soffid.iam.api.SoDRuleMatrix role)protected abstract es.caib.seycon.ng.comu.SoDRolehandleCreate(es.caib.seycon.ng.comu.SoDRole role)protected abstract es.caib.seycon.ng.comu.SoDRulehandleCreate(es.caib.seycon.ng.comu.SoDRule rule)protected abstract Collection<es.caib.seycon.ng.comu.SoDRule>handleFindAffectingRulesByRolAccount(es.caib.seycon.ng.comu.RolAccount ra)protected abstract Collection<com.soffid.iam.api.SoDRuleMatrix>handleFindMatrixByRule(Long ruleId)protected abstract Collection<es.caib.seycon.ng.comu.SoDRole>handleFindRolesByRule(Long ruleId)protected abstract Collection<es.caib.seycon.ng.comu.SoDRule>handleFindRuleByApplication(Long applicationId)protected abstract List<es.caib.seycon.ng.comu.SoDRule>handleFindSodRuleByJsonQuery(String query, Integer first, Integer pageSize)protected abstract com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.SoDRule>handleFindSodRuleByJsonQueryAsync(String query)protected abstract List<es.caib.seycon.ng.comu.RolAccount>handleFindViolotions(String applicationName, es.caib.seycon.ng.comu.SoDRisk riskLevel)protected abstract es.caib.seycon.ng.comu.SoDRulehandleGetRuleById(Long ruleId)protected abstract voidhandleInternalRemovingRole(Long roleId)protected abstract es.caib.seycon.ng.comu.SoDRulehandleIsAllowed(es.caib.seycon.ng.comu.RolAccount ra)protected abstract booleanhandleIsGreater(es.caib.seycon.ng.comu.SoDRisk first, es.caib.seycon.ng.comu.SoDRisk second)protected abstract voidhandleQualifyRolAccountList(List<es.caib.seycon.ng.comu.RolAccount> ra)protected abstract es.caib.seycon.ng.comu.SoDRiskhandleQualifyUser(Collection<es.caib.seycon.ng.comu.RolAccount> ra)protected abstract voidhandleRemove(com.soffid.iam.api.SoDRuleMatrix role)protected abstract voidhandleRemove(es.caib.seycon.ng.comu.SoDRole role)protected abstract voidhandleRemove(es.caib.seycon.ng.comu.SoDRule rule)protected abstract com.soffid.iam.api.SoDRuleMatrixhandleUpdate(com.soffid.iam.api.SoDRuleMatrix role)protected abstract es.caib.seycon.ng.comu.SoDRulehandleUpdate(es.caib.seycon.ng.comu.SoDRule rule)voidinternalRemovingRole(Long roleId)es.caib.seycon.ng.comu.SoDRuleisAllowed(es.caib.seycon.ng.comu.RolAccount ra)booleanisGreater(es.caib.seycon.ng.comu.SoDRisk first, es.caib.seycon.ng.comu.SoDRisk second)voidqualifyRolAccountList(List<es.caib.seycon.ng.comu.RolAccount> ra)es.caib.seycon.ng.comu.SoDRiskqualifyUser(Collection<es.caib.seycon.ng.comu.RolAccount> ra)voidremove(com.soffid.iam.api.SoDRuleMatrix role)voidremove(es.caib.seycon.ng.comu.SoDRole role)voidremove(es.caib.seycon.ng.comu.SoDRule rule)voidsetSoDRuleService(com.soffid.iam.service.SoDRuleService soDRuleService)Sets reference tosoDRuleService.com.soffid.iam.api.SoDRuleMatrixupdate(com.soffid.iam.api.SoDRuleMatrix role)es.caib.seycon.ng.comu.SoDRuleupdate(es.caib.seycon.ng.comu.SoDRule rule)
-
-
-
Method Detail
-
setSoDRuleService
public void setSoDRuleService(com.soffid.iam.service.SoDRuleService soDRuleService)
Sets reference tosoDRuleService.
-
getSoDRuleService
public com.soffid.iam.service.SoDRuleService getSoDRuleService()
Gets reference tosoDRuleService.
-
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 interfacees.caib.seycon.ng.servei.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<es.caib.seycon.ng.comu.SoDRule> findSodRuleByJsonQueryAsync(String query) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findSodRuleByJsonQueryAsyncin interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindSodRuleByJsonQueryAsync
protected abstract com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.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 interfacees.caib.seycon.ng.servei.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 interfacees.caib.seycon.ng.servei.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<es.caib.seycon.ng.comu.RolAccount> ra) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
qualifyUserin interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleQualifyUser
protected abstract es.caib.seycon.ng.comu.SoDRisk handleQualifyUser(Collection<es.caib.seycon.ng.comu.RolAccount> ra) throws Exception
- Throws:
Exception
-
create
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.SoDRole create(es.caib.seycon.ng.comu.SoDRole role) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
createin interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreate
protected abstract es.caib.seycon.ng.comu.SoDRole handleCreate(es.caib.seycon.ng.comu.SoDRole role) throws Exception- Throws:
Exception
-
create
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.SoDRule create(es.caib.seycon.ng.comu.SoDRule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
createin interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreate
protected abstract es.caib.seycon.ng.comu.SoDRule handleCreate(es.caib.seycon.ng.comu.SoDRule rule) throws Exception- Throws:
Exception
-
getRuleById
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.SoDRule getRuleById(Long ruleId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getRuleByIdin interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetRuleById
protected abstract es.caib.seycon.ng.comu.SoDRule handleGetRuleById(Long ruleId) throws Exception
- Throws:
Exception
-
isAllowed
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.SoDRule isAllowed(es.caib.seycon.ng.comu.RolAccount ra) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
isAllowedin interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleIsAllowed
protected abstract es.caib.seycon.ng.comu.SoDRule handleIsAllowed(es.caib.seycon.ng.comu.RolAccount ra) throws Exception- Throws:
Exception
-
update
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.SoDRule update(es.caib.seycon.ng.comu.SoDRule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
updatein interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdate
protected abstract es.caib.seycon.ng.comu.SoDRule handleUpdate(es.caib.seycon.ng.comu.SoDRule rule) throws Exception- Throws:
Exception
-
findAffectingRulesByRolAccount
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.SoDRule> findAffectingRulesByRolAccount(es.caib.seycon.ng.comu.RolAccount ra) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findAffectingRulesByRolAccountin interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindAffectingRulesByRolAccount
protected abstract Collection<es.caib.seycon.ng.comu.SoDRule> handleFindAffectingRulesByRolAccount(es.caib.seycon.ng.comu.RolAccount 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 interfacees.caib.seycon.ng.servei.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<es.caib.seycon.ng.comu.SoDRole> findRolesByRule(Long ruleId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findRolesByRulein interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindRolesByRule
protected abstract Collection<es.caib.seycon.ng.comu.SoDRole> handleFindRolesByRule(Long ruleId) throws Exception
- Throws:
Exception
-
findRuleByApplication
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.SoDRule> findRuleByApplication(Long applicationId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findRuleByApplicationin interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindRuleByApplication
protected abstract Collection<es.caib.seycon.ng.comu.SoDRule> handleFindRuleByApplication(Long applicationId) throws Exception
- Throws:
Exception
-
findSodRuleByJsonQuery
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public List<es.caib.seycon.ng.comu.SoDRule> findSodRuleByJsonQuery(String query, Integer first, Integer pageSize) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findSodRuleByJsonQueryin interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindSodRuleByJsonQuery
protected abstract List<es.caib.seycon.ng.comu.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<es.caib.seycon.ng.comu.RolAccount> 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 interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindViolotions
protected abstract List<es.caib.seycon.ng.comu.RolAccount> 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 interfacees.caib.seycon.ng.servei.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<es.caib.seycon.ng.comu.RolAccount> ra) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
qualifyRolAccountListin interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleQualifyRolAccountList
protected abstract void handleQualifyRolAccountList(List<es.caib.seycon.ng.comu.RolAccount> 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 interfacees.caib.seycon.ng.servei.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(es.caib.seycon.ng.comu.SoDRole role) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
removein interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRemove
protected abstract void handleRemove(es.caib.seycon.ng.comu.SoDRole role) throws Exception- Throws:
Exception
-
remove
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void remove(es.caib.seycon.ng.comu.SoDRule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
removein interfacees.caib.seycon.ng.servei.SoDRuleService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRemove
protected abstract void handleRemove(es.caib.seycon.ng.comu.SoDRule rule) throws Exception- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-