Class TenantServiceBean

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

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

      • TenantServiceBean

        public TenantServiceBean()
    • Method Detail

      • importTenant

        @PermitAll
        public com.soffid.iam.api.Tenant importTenant​(InputStream in)
                                               throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        importTenant in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • create

        @PermitAll
        public com.soffid.iam.api.Tenant create​(com.soffid.iam.api.Tenant tenant)
                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getMasterTenant

        @PermitAll
        public com.soffid.iam.api.Tenant getMasterTenant()
                                                  throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getMasterTenant in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getTenant

        @PermitAll
        public com.soffid.iam.api.Tenant getTenant​(Long id)
                                            throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getTenant in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getTenant

        @PermitAll
        public com.soffid.iam.api.Tenant getTenant​(String name)
                                            throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getTenant in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • update

        @PermitAll
        public com.soffid.iam.api.Tenant update​(com.soffid.iam.api.Tenant tenant)
                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • listTenants

        @PermitAll
        public Collection<com.soffid.iam.api.Tenant> listTenants()
                                                          throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        listTenants in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • find

        @PermitAll
        public List<com.soffid.iam.api.Tenant> find​(com.soffid.iam.api.TenantCriteria criteria)
                                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        find in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getDisabledPermissions

        @PermitAll
        public List<String> getDisabledPermissions​(com.soffid.iam.api.Tenant tenant)
                                            throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getDisabledPermissions in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getTenantServers

        @PermitAll
        public List<String> getTenantServers​(com.soffid.iam.api.Tenant tenant)
                                      throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getTenantServers in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • addTenantServer

        @PermitAll
        public void addTenantServer​(com.soffid.iam.api.Tenant tenant,
                                    String server)
                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        addTenantServer in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • disablePermission

        @PermitAll
        public void disablePermission​(com.soffid.iam.api.Tenant tenant,
                                      String permission)
                               throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        disablePermission in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • enablePermission

        @PermitAll
        public void enablePermission​(com.soffid.iam.api.Tenant tenant,
                                     String permission)
                              throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        enablePermission in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • remove

        @PermitAll
        public void remove​(com.soffid.iam.api.Tenant tenant)
                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        remove in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • removeTenantServer

        @PermitAll
        public void removeTenantServer​(com.soffid.iam.api.Tenant tenant,
                                       String server)
                                throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        removeTenantServer in interface com.soffid.iam.service.ejb.TenantService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • exportTenant

        @PermitAll
        public void exportTenant​(com.soffid.iam.api.Tenant tenant,
                                 OutputStream out)
                          throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        exportTenant in interface com.soffid.iam.service.ejb.TenantService
        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()