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 void
apply(com.soffid.iam.api.Rule rule)
com.soffid.iam.api.AsyncProcessTracker
applyAsync(com.soffid.iam.api.Rule rule)
com.soffid.iam.api.Rule
create(com.soffid.iam.api.Rule rule)
com.soffid.iam.api.RuleAssignedRole
create(com.soffid.iam.api.RuleAssignedRole ruleAssignment)
void
delete(com.soffid.iam.api.Rule rule)
void
delete(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)
String
generateChangesReport(com.soffid.iam.api.Rule rule, Collection<com.soffid.iam.api.RuleAssignedRole> grants)
AuditEntityDao
getAuditEntityDao()
Gets reference toauditoriaEntityDao
.protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.RoleEntityDao
getRoleEntityDao()
Gets reference torolEntityDao
.RuleAssignedRoleEntityDao
getRuleAssignedRoleEntityDao()
Gets reference toruleAssignedRoleEntityDao
.RuleEntityDao
getRuleEntityDao()
Gets reference toruleEntityDao
.RuleEvaluatorService
getRuleEvaluatorService()
Gets reference toruleEvaluatorService
.protected abstract void
handleApply(com.soffid.iam.api.Rule rule)
protected abstract com.soffid.iam.api.AsyncProcessTracker
handleApplyAsync(com.soffid.iam.api.Rule rule)
protected abstract com.soffid.iam.api.Rule
handleCreate(com.soffid.iam.api.Rule rule)
protected abstract com.soffid.iam.api.RuleAssignedRole
handleCreate(com.soffid.iam.api.RuleAssignedRole ruleAssignment)
protected abstract void
handleDelete(com.soffid.iam.api.Rule rule)
protected abstract void
handleDelete(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 String
handleGenerateChangesReport(com.soffid.iam.api.Rule rule, Collection<com.soffid.iam.api.RuleAssignedRole> grants)
protected abstract com.soffid.iam.api.AsyncProcessTracker
handleQueryProcessStatus(com.soffid.iam.api.AsyncProcessTracker process)
protected abstract com.soffid.iam.api.Rule
handleUpdate(com.soffid.iam.api.Rule rule)
protected abstract com.soffid.iam.api.RuleAssignedRole
handleUpdate(com.soffid.iam.api.RuleAssignedRole ruleAssignment)
com.soffid.iam.api.AsyncProcessTracker
queryProcessStatus(com.soffid.iam.api.AsyncProcessTracker process)
void
setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao
.void
setRoleEntityDao(RoleEntityDao rolEntityDao)
Sets reference torolEntityDao
.void
setRuleAssignedRoleEntityDao(RuleAssignedRoleEntityDao ruleAssignedRoleEntityDao)
Sets reference toruleAssignedRoleEntityDao
.void
setRuleEntityDao(RuleEntityDao ruleEntityDao)
Sets reference toruleEntityDao
.void
setRuleEvaluatorService(RuleEvaluatorService ruleEvaluatorService)
Sets reference toruleEvaluatorService
.com.soffid.iam.api.Rule
update(com.soffid.iam.api.Rule rule)
com.soffid.iam.api.RuleAssignedRole
update(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:
applyAsync
in 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:
queryProcessStatus
in 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:
create
in 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:
update
in 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:
create
in 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:
update
in 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:
generateChangesReport
in 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:
findRuleAssignments
in 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:
findRules
in 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:
findRulesByRole
in 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:
apply
in 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:
delete
in 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:
delete
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-