Package com.soffid.iam.service.ejb
Class SoDRuleServiceBean
- java.lang.Object
-
- org.springframework.ejb.support.AbstractStatelessSessionBean
-
- com.soffid.iam.service.ejb.SoDRuleServiceBean
-
- All Implemented Interfaces:
com.soffid.iam.service.ejb.SoDRuleService
,Serializable
,javax.ejb.EnterpriseBean
,javax.ejb.SessionBean
,org.springframework.ejb.support.SmartSessionBean
public class SoDRuleServiceBean extends org.springframework.ejb.support.AbstractStatelessSessionBean implements com.soffid.iam.service.ejb.SoDRuleService
- See Also:
com.soffid.iam.service.SoDRuleService
,,es.caib.seycon.ng.servei.SoDRuleService
,, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
-
Constructor Summary
Constructors Constructor Description SoDRuleServiceBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.soffid.iam.api.SoDRole
create(com.soffid.iam.api.SoDRole role)
com.soffid.iam.api.SoDRule
create(com.soffid.iam.api.SoDRule rule)
com.soffid.iam.api.SoDRuleMatrix
create(com.soffid.iam.api.SoDRuleMatrix role)
void
ejbCreate()
Initizlizes beenvoid
ejbRemove()
Collection<com.soffid.iam.api.SoDRule>
findAffectingRulesByRolAccount(com.soffid.iam.api.RoleAccount ra)
Collection<com.soffid.iam.api.SoDRuleMatrix>
findMatrixByRule(Long ruleId)
Collection<com.soffid.iam.api.SoDRole>
findRolesByRule(Long ruleId)
Collection<com.soffid.iam.api.SoDRule>
findRuleByApplication(Long applicationId)
List<com.soffid.iam.api.SoDRule>
findSodRuleByJsonQuery(String query, Integer first, Integer pageSize)
com.soffid.iam.api.AsyncList<com.soffid.iam.api.SoDRule>
findSodRuleByJsonQueryAsync(String query)
List<com.soffid.iam.api.RoleAccount>
findViolotions(String applicationName, es.caib.seycon.ng.comu.SoDRisk riskLevel)
protected org.springframework.beans.factory.BeanFactory
getBeanFactory()
com.soffid.iam.api.SoDRule
getRuleById(Long ruleId)
javax.ejb.SessionContext
getSessionContext()
com.soffid.iam.api.SoDRule
isAllowed(com.soffid.iam.api.RoleAccount ra)
protected void
onEjbCreate()
protected void
onEjbRemove()
void
qualifyRolAccountList(List<com.soffid.iam.api.RoleAccount> ra)
void
remove(com.soffid.iam.api.SoDRole role)
void
remove(com.soffid.iam.api.SoDRule rule)
void
remove(com.soffid.iam.api.SoDRuleMatrix role)
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.SoDRule
update(com.soffid.iam.api.SoDRule rule)
com.soffid.iam.api.SoDRuleMatrix
update(com.soffid.iam.api.SoDRuleMatrix role)
-
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
-
findSodRuleByJsonQueryAsync
@PermitAll public com.soffid.iam.api.AsyncList<com.soffid.iam.api.SoDRule> findSodRuleByJsonQueryAsync(String query) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findSodRuleByJsonQueryAsync
in interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
create
@PermitAll 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 interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
update
@PermitAll 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 interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
create
@PermitAll public com.soffid.iam.api.SoDRole create(com.soffid.iam.api.SoDRole role) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
create
in interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
create
@PermitAll public com.soffid.iam.api.SoDRule create(com.soffid.iam.api.SoDRule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
create
in interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getRuleById
@PermitAll public com.soffid.iam.api.SoDRule getRuleById(Long ruleId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getRuleById
in interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
isAllowed
@PermitAll public com.soffid.iam.api.SoDRule isAllowed(com.soffid.iam.api.RoleAccount ra) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
isAllowed
in interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
update
@PermitAll public com.soffid.iam.api.SoDRule update(com.soffid.iam.api.SoDRule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
update
in interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findAffectingRulesByRolAccount
@PermitAll public Collection<com.soffid.iam.api.SoDRule> findAffectingRulesByRolAccount(com.soffid.iam.api.RoleAccount ra) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findAffectingRulesByRolAccount
in interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findMatrixByRule
@PermitAll 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 interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findRolesByRule
@PermitAll public Collection<com.soffid.iam.api.SoDRole> findRolesByRule(Long ruleId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findRolesByRule
in interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findRuleByApplication
@PermitAll public Collection<com.soffid.iam.api.SoDRule> findRuleByApplication(Long applicationId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findRuleByApplication
in interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findSodRuleByJsonQuery
@PermitAll public List<com.soffid.iam.api.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 interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findViolotions
@PermitAll public List<com.soffid.iam.api.RoleAccount> 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 interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
qualifyRolAccountList
@PermitAll public void qualifyRolAccountList(List<com.soffid.iam.api.RoleAccount> ra) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
qualifyRolAccountList
in interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
remove
@PermitAll 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 interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
remove
@PermitAll public void remove(com.soffid.iam.api.SoDRole role) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
remove
in interfacecom.soffid.iam.service.ejb.SoDRuleService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
remove
@PermitAll public void remove(com.soffid.iam.api.SoDRule rule) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
remove
in interfacecom.soffid.iam.service.ejb.SoDRuleService
- 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()
-
-