Package com.soffid.iam.service.ejb
Class RulesServiceBean
- java.lang.Object
-
- org.springframework.ejb.support.AbstractStatelessSessionBean
-
- com.soffid.iam.service.ejb.RulesServiceBean
-
- All Implemented Interfaces:
com.soffid.iam.service.ejb.RulesService
,Serializable
,javax.ejb.EnterpriseBean
,javax.ejb.SessionBean
,org.springframework.ejb.support.SmartSessionBean
public class RulesServiceBean extends org.springframework.ejb.support.AbstractStatelessSessionBean implements com.soffid.iam.service.ejb.RulesService
- See Also:
com.soffid.iam.service.RulesService
,,com.soffid.iam.service.RulesService
,, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
-
Constructor Summary
Constructors Constructor Description RulesServiceBean()
-
Method Summary
All Methods Instance 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)
void
ejbCreate()
Initizlizes beenvoid
ejbRemove()
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)
protected org.springframework.beans.factory.BeanFactory
getBeanFactory()
javax.ejb.SessionContext
getSessionContext()
protected void
onEjbCreate()
protected void
onEjbRemove()
com.soffid.iam.api.AsyncProcessTracker
queryProcessStatus(com.soffid.iam.api.AsyncProcessTracker process)
void
setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
void
setBeanFactoryLocatorKey(String arg0)
void
setSessionContext(javax.ejb.SessionContext sessionContext)
Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.com.soffid.iam.api.Rule
update(com.soffid.iam.api.Rule rule)
com.soffid.iam.api.RuleAssignedRole
update(com.soffid.iam.api.RuleAssignedRole ruleAssignment)
-
Methods inherited from class org.springframework.ejb.support.AbstractStatelessSessionBean
ejbActivate, ejbPassivate
-
-
-
-
Field Detail
-
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
public static final String BEAN_FACTORY_PATH_ENVIRONMENT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
applyAsync
@PermitAll 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.ejb.RulesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
queryProcessStatus
@PermitAll 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.ejb.RulesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
create
@PermitAll 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.ejb.RulesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
update
@PermitAll 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.ejb.RulesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
create
@PermitAll 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.ejb.RulesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
update
@PermitAll 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.ejb.RulesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
generateChangesReport
@PermitAll 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.ejb.RulesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findRuleAssignments
@PermitAll 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.ejb.RulesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findRules
@PermitAll 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.ejb.RulesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findRulesByRole
@PermitAll 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.ejb.RulesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
apply
@PermitAll 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.ejb.RulesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
delete
@PermitAll 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.ejb.RulesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
delete
@PermitAll 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.ejb.RulesService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
ejbCreate
@PostConstruct public void ejbCreate() throws javax.ejb.CreateException
Initizlizes been- Overrides:
ejbCreate
in classorg.springframework.ejb.support.AbstractStatelessSessionBean
- Throws:
javax.ejb.CreateException
- See Also:
AbstractStatelessSessionBean.onEjbCreate()
-
onEjbCreate
protected void onEjbCreate()
- Specified by:
onEjbCreate
in classorg.springframework.ejb.support.AbstractStatelessSessionBean
-
setSessionContext
public void setSessionContext(javax.ejb.SessionContext sessionContext)
Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.- Specified by:
setSessionContext
in interfacejavax.ejb.SessionBean
- See Also:
SessionBean.setSessionContext(javax.ejb.SessionContext)
-
getSessionContext
public final javax.ejb.SessionContext getSessionContext()
- Specified by:
getSessionContext
in interfaceorg.springframework.ejb.support.SmartSessionBean
-
setBeanFactoryLocator
public void setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
-
setBeanFactoryLocatorKey
public void setBeanFactoryLocatorKey(String arg0)
-
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
-
ejbRemove
public void ejbRemove()
-
onEjbRemove
protected void onEjbRemove()
-
-