Package es.caib.seycon.ng.servei
Class SoDRuleServiceBaseProxy
- java.lang.Object
-
- es.caib.seycon.ng.servei.SoDRuleServiceBaseProxy
-
- All Implemented Interfaces:
es.caib.seycon.ng.servei.SoDRuleService
public class SoDRuleServiceBaseProxy 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 SoDRuleServiceBaseProxy()
-
Method Summary
All Methods Instance 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
.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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-