Class SoDRuleServiceBaseProxy

  • All Implemented Interfaces:
    es.caib.seycon.ng.servei.SoDRuleService

    public class SoDRuleServiceBaseProxy
    extends Object
    implements es.caib.seycon.ng.servei.SoDRuleService

    Spring Service base class for es.caib.seycon.ng.servei.SoDRuleService, provides access to all services and entities referenced by this service.

    see es.caib.seycon.ng.servei.SoDRuleService
    • Constructor Detail

      • SoDRuleServiceBaseProxy

        public SoDRuleServiceBaseProxy()
    • Method Detail

      • setSoDRuleService

        public void setSoDRuleService​(com.soffid.iam.service.SoDRuleService soDRuleService)
        Sets reference to soDRuleService.
      • getSoDRuleService

        public com.soffid.iam.service.SoDRuleService getSoDRuleService()
        Gets reference to soDRuleService.
      • isGreater

        @Transactional(rollbackFor=java.lang.Exception.class)
        public boolean isGreater​(es.caib.seycon.ng.comu.SoDRisk first,
                                 es.caib.seycon.ng.comu.SoDRisk second)
                          throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        isGreater in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findSodRuleByJsonQueryAsync

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.SoDRule> findSodRuleByJsonQueryAsync​(String query)
                                                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findSodRuleByJsonQueryAsync in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • create

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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 es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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 es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • qualifyUser

        @Transactional(rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.SoDRisk qualifyUser​(Collection<es.caib.seycon.ng.comu.RolAccount> ra)
                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        qualifyUser in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • create

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.SoDRole create​(es.caib.seycon.ng.comu.SoDRole role)
                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • create

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.SoDRule create​(es.caib.seycon.ng.comu.SoDRule rule)
                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getRuleById

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.SoDRule getRuleById​(Long ruleId)
                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getRuleById in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • isAllowed

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.SoDRule isAllowed​(es.caib.seycon.ng.comu.RolAccount ra)
                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        isAllowed in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.SoDRule update​(es.caib.seycon.ng.comu.SoDRule rule)
                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAffectingRulesByRolAccount

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.SoDRule> findAffectingRulesByRolAccount​(es.caib.seycon.ng.comu.RolAccount ra)
                                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAffectingRulesByRolAccount in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findMatrixByRule

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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 es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findRolesByRule

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.SoDRole> findRolesByRule​(Long ruleId)
                                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findRolesByRule in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findRuleByApplication

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.SoDRule> findRuleByApplication​(Long applicationId)
                                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findRuleByApplication in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findSodRuleByJsonQuery

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.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 es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findViolotions

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.RolAccount> 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 es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • internalRemovingRole

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void internalRemovingRole​(Long roleId)
                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        internalRemovingRole in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • qualifyRolAccountList

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void qualifyRolAccountList​(List<es.caib.seycon.ng.comu.RolAccount> ra)
                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        qualifyRolAccountList in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • remove

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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 es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • remove

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void remove​(es.caib.seycon.ng.comu.SoDRole role)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        remove in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • remove

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void remove​(es.caib.seycon.ng.comu.SoDRule rule)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        remove in interface es.caib.seycon.ng.servei.SoDRuleService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPrincipal

        protected Principal getPrincipal()
        Gets the current principal if one has been set, otherwise returns null.
        Returns:
        the current principal