Class 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
    • Constructor Detail

      • SoDRuleServiceBean

        public SoDRuleServiceBean()
    • 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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 class org.springframework.ejb.support.AbstractStatelessSessionBean
        Throws:
        javax.ejb.CreateException
        See Also:
        AbstractStatelessSessionBean.onEjbCreate()
      • onEjbCreate

        protected void onEjbCreate()
        Specified by:
        onEjbCreate in class org.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 interface javax.ejb.SessionBean
        See Also:
        SessionBean.setSessionContext(javax.ejb.SessionContext)
      • getSessionContext

        public final javax.ejb.SessionContext getSessionContext()
        Specified by:
        getSessionContext in interface org.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()