Class EntitlementDelegationServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.EntitlementDelegationService
    Direct Known Subclasses:
    EntitlementDelegationServiceImpl

    public abstract class EntitlementDelegationServiceBase
    extends Object
    implements com.soffid.iam.service.EntitlementDelegationService

    Spring Service base class for com.soffid.iam.service.EntitlementDelegationService, provides access to all services and entities referenced by this service.

    see com.soffid.iam.service.EntitlementDelegationService
    • Constructor Detail

      • EntitlementDelegationServiceBase

        public EntitlementDelegationServiceBase()
    • Method Detail

      • setAccountEntityDao

        public void setAccountEntityDao​(AccountEntityDao accountEntityDao)
        Sets reference to accountEntityDao.
      • getAccountEntityDao

        public AccountEntityDao getAccountEntityDao()
        Gets reference to accountEntityDao.
      • setAccountService

        public void setAccountService​(com.soffid.iam.service.AccountService accountService)
        Sets reference to accountService.
      • getAccountService

        public com.soffid.iam.service.AccountService getAccountService()
        Gets reference to accountService.
      • setApplicationService

        public void setApplicationService​(com.soffid.iam.service.ApplicationService aplicacioService)
        Sets reference to aplicacioService.
      • getApplicationService

        public com.soffid.iam.service.ApplicationService getApplicationService()
        Gets reference to aplicacioService.
      • setAuditEntityDao

        public void setAuditEntityDao​(AuditEntityDao auditoriaEntityDao)
        Sets reference to auditoriaEntityDao.
      • getAuditEntityDao

        public AuditEntityDao getAuditEntityDao()
        Gets reference to auditoriaEntityDao.
      • setSystemEntityDao

        public void setSystemEntityDao​(SystemEntityDao dispatcherEntityDao)
        Sets reference to dispatcherEntityDao.
      • getSystemEntityDao

        public SystemEntityDao getSystemEntityDao()
        Gets reference to dispatcherEntityDao.
      • setRoleAccountEntityDao

        public void setRoleAccountEntityDao​(RoleAccountEntityDao rolAccountEntityDao)
        Sets reference to rolAccountEntityDao.
      • getRoleAccountEntityDao

        public RoleAccountEntityDao getRoleAccountEntityDao()
        Gets reference to rolAccountEntityDao.
      • setRoleEntityDao

        public void setRoleEntityDao​(RoleEntityDao rolEntityDao)
        Sets reference to rolEntityDao.
      • getRoleEntityDao

        public RoleEntityDao getRoleEntityDao()
        Gets reference to rolEntityDao.
      • setUserEntityDao

        public void setUserEntityDao​(UserEntityDao usuariEntityDao)
        Sets reference to usuariEntityDao.
      • getUserEntityDao

        public UserEntityDao getUserEntityDao()
        Gets reference to usuariEntityDao.
      • acceptDelegation

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.RoleAccount acceptDelegation​(com.soffid.iam.api.RoleAccount ra)
                                                        throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        acceptDelegation in interface com.soffid.iam.service.EntitlementDelegationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleAcceptDelegation

        protected abstract com.soffid.iam.api.RoleAccount handleAcceptDelegation​(com.soffid.iam.api.RoleAccount ra)
                                                                          throws Exception
        Throws:
        Exception
      • cancelDelegation

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.RoleAccount cancelDelegation​(com.soffid.iam.api.RoleAccount rolAccount)
                                                        throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        cancelDelegation in interface com.soffid.iam.service.EntitlementDelegationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCancelDelegation

        protected abstract com.soffid.iam.api.RoleAccount handleCancelDelegation​(com.soffid.iam.api.RoleAccount rolAccount)
                                                                          throws Exception
        Throws:
        Exception
      • delegate

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.RoleAccount delegate​(com.soffid.iam.api.RoleAccount rolAccount,
                                                       String user,
                                                       String account,
                                                       Date since,
                                                       Date until)
                                                throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delegate in interface com.soffid.iam.service.EntitlementDelegationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelegate

        protected abstract com.soffid.iam.api.RoleAccount handleDelegate​(com.soffid.iam.api.RoleAccount rolAccount,
                                                                         String user,
                                                                         String account,
                                                                         Date since,
                                                                         Date until)
                                                                  throws Exception
        Throws:
        Exception
      • findAccountsToDelegate

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<String> findAccountsToDelegate​(com.soffid.iam.api.RoleAccount rolAccount,
                                                   String user)
                                            throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccountsToDelegate in interface com.soffid.iam.service.EntitlementDelegationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAccountsToDelegate

        protected abstract List<String> handleFindAccountsToDelegate​(com.soffid.iam.api.RoleAccount rolAccount,
                                                                     String user)
                                                              throws Exception
        Throws:
        Exception
      • findActiveDelegations

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.RoleAccount> findActiveDelegations()
                                                                   throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findActiveDelegations in interface com.soffid.iam.service.EntitlementDelegationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindActiveDelegations

        protected abstract List<com.soffid.iam.api.RoleAccount> handleFindActiveDelegations()
                                                                                     throws Exception
        Throws:
        Exception
      • findDelegationsToAccept

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.RoleAccount> findDelegationsToAccept()
                                                                     throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findDelegationsToAccept in interface com.soffid.iam.service.EntitlementDelegationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindDelegationsToAccept

        protected abstract List<com.soffid.iam.api.RoleAccount> handleFindDelegationsToAccept()
                                                                                       throws Exception
        Throws:
        Exception
      • revertExpiredDelegations

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void revertExpiredDelegations()
                                      throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        revertExpiredDelegations in interface com.soffid.iam.service.EntitlementDelegationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRevertExpiredDelegations

        protected abstract void handleRevertExpiredDelegations()
                                                        throws Exception
        Throws:
        Exception
      • getPrincipal

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