Class ServerPluginServiceBean

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

    public class ServerPluginServiceBean
    extends org.springframework.ejb.support.AbstractStatelessSessionBean
    implements com.soffid.iam.service.ejb.ServerPluginService
    See Also:
    com.soffid.iam.service.ServerPluginService,, es.caib.seycon.ng.servei.ServerPluginService,, Serialized Form
    • Constructor Detail

      • ServerPluginServiceBean

        public ServerPluginServiceBean()
    • Method Detail

      • getAgentDescriptor

        @PermitAll
        public com.soffid.iam.api.AgentDescriptor getAgentDescriptor​(String className)
                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAgentDescriptor in interface com.soffid.iam.service.ejb.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getServerVersion

        @PermitAll
        public String getServerVersion()
                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getServerVersion in interface com.soffid.iam.service.ejb.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAgentDescriptorWorkflows

        @PermitAll
        public Collection<com.soffid.iam.api.AgentDescriptorWorkflow> findAgentDescriptorWorkflows​(com.soffid.iam.api.AgentDescriptor agent)
                                                                                            throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAgentDescriptorWorkflows in interface com.soffid.iam.service.ejb.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getAgentDescriptors

        @PermitAll
        public Collection<com.soffid.iam.api.AgentDescriptor> getAgentDescriptors()
                                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAgentDescriptors in interface com.soffid.iam.service.ejb.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getAllAgentDescriptorsInfo

        @PermitAll
        public Collection<com.soffid.iam.api.AgentDescriptor> getAllAgentDescriptorsInfo()
                                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAllAgentDescriptorsInfo in interface com.soffid.iam.service.ejb.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPluginAgentDescriptors

        @PermitAll
        public Collection<com.soffid.iam.api.AgentDescriptor> getPluginAgentDescriptors​(com.soffid.iam.api.ServerPlugin plugin)
                                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getPluginAgentDescriptors in interface com.soffid.iam.service.ejb.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • listServerPlugins

        @PermitAll
        public Collection<com.soffid.iam.api.ServerPlugin> listServerPlugins()
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        listServerPlugins in interface com.soffid.iam.service.ejb.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • deletePlugin

        @PermitAll
        public void deletePlugin​(com.soffid.iam.api.ServerPlugin plugin)
                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        deletePlugin in interface com.soffid.iam.service.ejb.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • deployPlugin

        @PermitAll
        public void deployPlugin​(byte[] i)
                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.seycon.ng.exception.InternalErrorException,
                                 com.soffid.iam.exception.DuplicatedClassException
        Specified by:
        deployPlugin in interface com.soffid.iam.service.ejb.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        com.soffid.iam.exception.DuplicatedClassException
      • enablePlugin

        @PermitAll
        public void enablePlugin​(com.soffid.iam.api.ServerPlugin plugin,
                                 boolean status)
                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        enablePlugin in interface com.soffid.iam.service.ejb.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • updatePlugin

        @PermitAll
        public void updatePlugin​(com.soffid.iam.api.ServerPlugin plugin)
                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updatePlugin in interface com.soffid.iam.service.ejb.ServerPluginService
        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()