Class EntitlementDelegationServiceBean

  • All Implemented Interfaces:
    com.soffid.iam.service.ejb.EntitlementDelegationService, Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean, org.springframework.ejb.support.SmartSessionBean

    public class EntitlementDelegationServiceBean
    extends org.springframework.ejb.support.AbstractStatelessSessionBean
    implements com.soffid.iam.service.ejb.EntitlementDelegationService
    See Also:
    com.soffid.iam.service.EntitlementDelegationService,, com.soffid.iam.service.EntitlementDelegationService,, Serialized Form
    • Constructor Detail

      • EntitlementDelegationServiceBean

        public EntitlementDelegationServiceBean()
    • Method Detail

      • acceptDelegation

        @PermitAll
        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.ejb.EntitlementDelegationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • cancelDelegation

        @PermitAll
        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.ejb.EntitlementDelegationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • delegate

        @PermitAll
        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.ejb.EntitlementDelegationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAccountsToDelegate

        @PermitAll
        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.ejb.EntitlementDelegationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findActiveDelegations

        @PermitAll
        public List<com.soffid.iam.api.RoleAccount> findActiveDelegations()
                                                                   throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findActiveDelegations in interface com.soffid.iam.service.ejb.EntitlementDelegationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findDelegationsToAccept

        @PermitAll
        public List<com.soffid.iam.api.RoleAccount> findDelegationsToAccept()
                                                                     throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findDelegationsToAccept in interface com.soffid.iam.service.ejb.EntitlementDelegationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • revertExpiredDelegations

        @PermitAll
        public void revertExpiredDelegations()
                                      throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        revertExpiredDelegations in interface com.soffid.iam.service.ejb.EntitlementDelegationService
        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()