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.SoDRuleMatrix
create(com.soffid.iam.api.SoDRuleMatrix role)
es.caib.seycon.ng.comu.SoDRole
create(es.caib.seycon.ng.comu.SoDRole role)
es.caib.seycon.ng.comu.SoDRule
create(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 Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.es.caib.seycon.ng.comu.SoDRule
getRuleById(Long ruleId)
com.soffid.iam.service.SoDRuleService
getSoDRuleService()
Gets reference tosoDRuleService
.protected abstract com.soffid.iam.api.SoDRuleMatrix
handleCreate(com.soffid.iam.api.SoDRuleMatrix role)
protected abstract es.caib.seycon.ng.comu.SoDRole
handleCreate(es.caib.seycon.ng.comu.SoDRole role)
protected abstract es.caib.seycon.ng.comu.SoDRule
handleCreate(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.SoDRule
handleGetRuleById(Long ruleId)
protected abstract void
handleInternalRemovingRole(Long roleId)
protected abstract es.caib.seycon.ng.comu.SoDRule
handleIsAllowed(es.caib.seycon.ng.comu.RolAccount ra)
protected abstract boolean
handleIsGreater(es.caib.seycon.ng.comu.SoDRisk first, es.caib.seycon.ng.comu.SoDRisk second)
protected abstract void
handleQualifyRolAccountList(List<es.caib.seycon.ng.comu.RolAccount> ra)
protected abstract es.caib.seycon.ng.comu.SoDRisk
handleQualifyUser(Collection<es.caib.seycon.ng.comu.RolAccount> ra)
protected abstract void
handleRemove(com.soffid.iam.api.SoDRuleMatrix role)
protected abstract void
handleRemove(es.caib.seycon.ng.comu.SoDRole role)
protected abstract void
handleRemove(es.caib.seycon.ng.comu.SoDRule rule)
protected abstract com.soffid.iam.api.SoDRuleMatrix
handleUpdate(com.soffid.iam.api.SoDRuleMatrix role)
protected abstract es.caib.seycon.ng.comu.SoDRule
handleUpdate(es.caib.seycon.ng.comu.SoDRule rule)
void
internalRemovingRole(Long roleId)
es.caib.seycon.ng.comu.SoDRule
isAllowed(es.caib.seycon.ng.comu.RolAccount ra)
boolean
isGreater(es.caib.seycon.ng.comu.SoDRisk first, es.caib.seycon.ng.comu.SoDRisk second)
void
qualifyRolAccountList(List<es.caib.seycon.ng.comu.RolAccount> ra)
es.caib.seycon.ng.comu.SoDRisk
qualifyUser(Collection<es.caib.seycon.ng.comu.RolAccount> ra)
void
remove(com.soffid.iam.api.SoDRuleMatrix role)
void
remove(es.caib.seycon.ng.comu.SoDRole role)
void
remove(es.caib.seycon.ng.comu.SoDRule rule)
void
setSoDRuleService(com.soffid.iam.service.SoDRuleService soDRuleService)
Sets reference tosoDRuleService
.com.soffid.iam.api.SoDRuleMatrix
update(com.soffid.iam.api.SoDRuleMatrix role)
es.caib.seycon.ng.comu.SoDRule
update(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:
isGreater
in 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:
findSodRuleByJsonQueryAsync
in 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:
create
in 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:
update
in 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:
qualifyUser
in 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:
create
in 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:
create
in 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:
getRuleById
in 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:
isAllowed
in 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:
update
in 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:
findAffectingRulesByRolAccount
in 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:
findMatrixByRule
in 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:
findRolesByRule
in 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:
findRuleByApplication
in 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:
findSodRuleByJsonQuery
in 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:
findViolotions
in 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:
internalRemovingRole
in 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:
qualifyRolAccountList
in 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:
remove
in 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:
remove
in 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:
remove
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-