Package com.soffid.iam.service
Class RulesServiceBase
- java.lang.Object
-
- com.soffid.iam.service.RulesServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.RulesService
- Direct Known Subclasses:
RulesServiceImpl
public abstract class RulesServiceBase extends Object implements com.soffid.iam.service.RulesService
Spring Service base class for
see com.soffid.iam.service.RulesServicecom.soffid.iam.service.RulesService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description RulesServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidapply(com.soffid.iam.api.Rule rule)com.soffid.iam.api.AsyncProcessTrackerapplyAsync(com.soffid.iam.api.Rule rule)com.soffid.iam.api.Rulecreate(com.soffid.iam.api.Rule rule)com.soffid.iam.api.RuleAssignedRolecreate(com.soffid.iam.api.RuleAssignedRole ruleAssignment)voiddelete(com.soffid.iam.api.Rule rule)voiddelete(com.soffid.iam.api.RuleAssignedRole ruleAssignment)Collection<com.soffid.iam.api.RuleAssignedRole>findRuleAssignments(com.soffid.iam.api.Rule rule)Collection<com.soffid.iam.api.Rule>findRules(String description)Collection<com.soffid.iam.api.Rule>findRulesByRole(Long roleId)StringgenerateChangesReport(com.soffid.iam.api.Rule rule, Collection<com.soffid.iam.api.RuleAssignedRole> grants)AuditEntityDaogetAuditEntityDao()Gets reference toauditoriaEntityDao.protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.RoleEntityDaogetRoleEntityDao()Gets reference torolEntityDao.RuleAssignedRoleEntityDaogetRuleAssignedRoleEntityDao()Gets reference toruleAssignedRoleEntityDao.RuleEntityDaogetRuleEntityDao()Gets reference toruleEntityDao.RuleEvaluatorServicegetRuleEvaluatorService()Gets reference toruleEvaluatorService.protected abstract voidhandleApply(com.soffid.iam.api.Rule rule)protected abstract com.soffid.iam.api.AsyncProcessTrackerhandleApplyAsync(com.soffid.iam.api.Rule rule)protected abstract com.soffid.iam.api.RulehandleCreate(com.soffid.iam.api.Rule rule)protected abstract com.soffid.iam.api.RuleAssignedRolehandleCreate(com.soffid.iam.api.RuleAssignedRole ruleAssignment)protected abstract voidhandleDelete(com.soffid.iam.api.Rule rule)protected abstract voidhandleDelete(com.soffid.iam.api.RuleAssignedRole ruleAssignment)protected abstract Collection<com.soffid.iam.api.RuleAssignedRole>handleFindRuleAssignments(com.soffid.iam.api.Rule rule)protected abstract Collection<com.soffid.iam.api.Rule>handleFindRules(String description)protected abstract Collection<com.soffid.iam.api.Rule>handleFindRulesByRole(Long roleId)protected abstract StringhandleGenerateChangesReport(com.soffid.iam.api.Rule rule, Collection<com.soffid.iam.api.RuleAssignedRole> grants)protected abstract com.soffid.iam.api.AsyncProcessTrackerhandleQueryProcessStatus(com.soffid.iam.api.AsyncProcessTracker process)protected abstract com.soffid.iam.api.RulehandleUpdate(com.soffid.iam.api.Rule rule)protected abstract com.soffid.iam.api.RuleAssignedRolehandleUpdate(com.soffid.iam.api.RuleAssignedRole ruleAssignment)com.soffid.iam.api.AsyncProcessTrackerqueryProcessStatus(com.soffid.iam.api.AsyncProcessTracker process)voidsetAuditEntityDao(AuditEntityDao auditoriaEntityDao)Sets reference toauditoriaEntityDao.voidsetRoleEntityDao(RoleEntityDao rolEntityDao)Sets reference torolEntityDao.voidsetRuleAssignedRoleEntityDao(RuleAssignedRoleEntityDao ruleAssignedRoleEntityDao)Sets reference toruleAssignedRoleEntityDao.voidsetRuleEntityDao(RuleEntityDao ruleEntityDao)Sets reference toruleEntityDao.voidsetRuleEvaluatorService(RuleEvaluatorService ruleEvaluatorService)Sets reference toruleEvaluatorService.com.soffid.iam.api.Ruleupdate(com.soffid.iam.api.Rule rule)com.soffid.iam.api.RuleAssignedRoleupdate(com.soffid.iam.api.RuleAssignedRole ruleAssignment)
-
-
-
Method Detail
-
setAuditEntityDao
public void setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao.
-
getAuditEntityDao
public AuditEntityDao getAuditEntityDao()
Gets reference toauditoriaEntityDao.
-
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.
-
setRuleEvaluatorService
public void setRuleEvaluatorService(RuleEvaluatorService ruleEvaluatorService)
Sets reference toruleEvaluatorService.
-
getRuleEvaluatorService
public RuleEvaluatorService getRuleEvaluatorService()
Gets reference toruleEvaluatorService.
-
applyAsync
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.AsyncProcessTracker applyAsync(com.soffid.iam.api.Rule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
applyAsyncin interfacecom.soffid.iam.service.RulesService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleApplyAsync
protected abstract com.soffid.iam.api.AsyncProcessTracker handleApplyAsync(com.soffid.iam.api.Rule rule) throws Exception- Throws:
Exception
-
queryProcessStatus
@Transactional(isolation=DEFAULT, propagation=REQUIRED, noRollbackFor=java.lang.Exception.class, readOnly=true) 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- Specified by:
queryProcessStatusin interfacecom.soffid.iam.service.RulesService- 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
-
create
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Rule create(com.soffid.iam.api.Rule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
createin interfacecom.soffid.iam.service.RulesService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreate
protected abstract com.soffid.iam.api.Rule handleCreate(com.soffid.iam.api.Rule rule) throws Exception- Throws:
Exception
-
update
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Rule update(com.soffid.iam.api.Rule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
updatein interfacecom.soffid.iam.service.RulesService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdate
protected abstract com.soffid.iam.api.Rule handleUpdate(com.soffid.iam.api.Rule rule) throws Exception- Throws:
Exception
-
create
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.RuleAssignedRole create(com.soffid.iam.api.RuleAssignedRole ruleAssignment) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
createin interfacecom.soffid.iam.service.RulesService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreate
protected abstract com.soffid.iam.api.RuleAssignedRole handleCreate(com.soffid.iam.api.RuleAssignedRole ruleAssignment) throws Exception- Throws:
Exception
-
update
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.RuleAssignedRole update(com.soffid.iam.api.RuleAssignedRole ruleAssignment) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
updatein interfacecom.soffid.iam.service.RulesService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdate
protected abstract com.soffid.iam.api.RuleAssignedRole handleUpdate(com.soffid.iam.api.RuleAssignedRole ruleAssignment) throws Exception- Throws:
Exception
-
generateChangesReport
@Transactional(isolation=DEFAULT, propagation=REQUIRED, noRollbackFor=java.lang.Exception.class, readOnly=true) public String generateChangesReport(com.soffid.iam.api.Rule rule, Collection<com.soffid.iam.api.RuleAssignedRole> grants) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
generateChangesReportin interfacecom.soffid.iam.service.RulesService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGenerateChangesReport
protected abstract String handleGenerateChangesReport(com.soffid.iam.api.Rule rule, Collection<com.soffid.iam.api.RuleAssignedRole> grants) throws Exception
- Throws:
Exception
-
findRuleAssignments
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.RuleAssignedRole> findRuleAssignments(com.soffid.iam.api.Rule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findRuleAssignmentsin interfacecom.soffid.iam.service.RulesService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindRuleAssignments
protected abstract Collection<com.soffid.iam.api.RuleAssignedRole> handleFindRuleAssignments(com.soffid.iam.api.Rule rule) throws Exception
- Throws:
Exception
-
findRules
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.Rule> findRules(String description) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findRulesin interfacecom.soffid.iam.service.RulesService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindRules
protected abstract Collection<com.soffid.iam.api.Rule> handleFindRules(String description) throws Exception
- Throws:
Exception
-
findRulesByRole
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.Rule> findRulesByRole(Long roleId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findRulesByRolein interfacecom.soffid.iam.service.RulesService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindRulesByRole
protected abstract Collection<com.soffid.iam.api.Rule> handleFindRulesByRole(Long roleId) throws Exception
- Throws:
Exception
-
apply
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void apply(com.soffid.iam.api.Rule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
applyin interfacecom.soffid.iam.service.RulesService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleApply
protected abstract void handleApply(com.soffid.iam.api.Rule rule) throws Exception- Throws:
Exception
-
delete
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void delete(com.soffid.iam.api.Rule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
deletein interfacecom.soffid.iam.service.RulesService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDelete
protected abstract void handleDelete(com.soffid.iam.api.Rule rule) throws Exception- Throws:
Exception
-
delete
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void delete(com.soffid.iam.api.RuleAssignedRole ruleAssignment) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
deletein interfacecom.soffid.iam.service.RulesService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDelete
protected abstract void handleDelete(com.soffid.iam.api.RuleAssignedRole ruleAssignment) throws Exception- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-