Class ServerPluginServiceBase

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

    public abstract class ServerPluginServiceBase
    extends Object
    implements es.caib.seycon.ng.servei.ServerPluginService

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

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

      • ServerPluginServiceBase

        public ServerPluginServiceBase()
    • Method Detail

      • setServerPluginService

        public void setServerPluginService​(com.soffid.iam.service.ServerPluginService serverPluginService)
        Sets reference to serverPluginService.
      • getServerPluginService

        public com.soffid.iam.service.ServerPluginService getServerPluginService()
        Gets reference to serverPluginService.
      • getAgentDescriptor

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.AgentDescriptor getAgentDescriptor​(String className)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAgentDescriptor in interface es.caib.seycon.ng.servei.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetAgentDescriptor

        protected abstract es.caib.seycon.ng.comu.AgentDescriptor handleGetAgentDescriptor​(String className)
                                                                                    throws Exception
        Throws:
        Exception
      • getServerVersion

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String getServerVersion()
                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getServerVersion in interface es.caib.seycon.ng.servei.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAgentDescriptorWorkflows

        @Transactional(rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.AgentDescriptorWorkflow> findAgentDescriptorWorkflows​(es.caib.seycon.ng.comu.AgentDescriptor agent)
                                                                                            throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAgentDescriptorWorkflows in interface es.caib.seycon.ng.servei.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAgentDescriptorWorkflows

        protected abstract Collection<com.soffid.iam.api.AgentDescriptorWorkflow> handleFindAgentDescriptorWorkflows​(es.caib.seycon.ng.comu.AgentDescriptor agent)
                                                                                                              throws Exception
        Throws:
        Exception
      • getAgentDescriptors

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.AgentDescriptor> getAgentDescriptors()
                                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAgentDescriptors in interface es.caib.seycon.ng.servei.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetAgentDescriptors

        protected abstract Collection<es.caib.seycon.ng.comu.AgentDescriptor> handleGetAgentDescriptors()
                                                                                                 throws Exception
        Throws:
        Exception
      • getAllAgentDescriptorsInfo

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.AgentDescriptor> getAllAgentDescriptorsInfo()
                                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAllAgentDescriptorsInfo in interface es.caib.seycon.ng.servei.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetAllAgentDescriptorsInfo

        protected abstract Collection<es.caib.seycon.ng.comu.AgentDescriptor> handleGetAllAgentDescriptorsInfo()
                                                                                                        throws Exception
        Throws:
        Exception
      • getPluginAgentDescriptors

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.AgentDescriptor> getPluginAgentDescriptors​(es.caib.seycon.ng.comu.ServerPlugin plugin)
                                                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getPluginAgentDescriptors in interface es.caib.seycon.ng.servei.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetPluginAgentDescriptors

        protected abstract Collection<es.caib.seycon.ng.comu.AgentDescriptor> handleGetPluginAgentDescriptors​(es.caib.seycon.ng.comu.ServerPlugin plugin)
                                                                                                       throws Exception
        Throws:
        Exception
      • listServerPlugins

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.ServerPlugin> listServerPlugins()
                                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        listServerPlugins in interface es.caib.seycon.ng.servei.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleListServerPlugins

        protected abstract Collection<es.caib.seycon.ng.comu.ServerPlugin> handleListServerPlugins()
                                                                                            throws Exception
        Throws:
        Exception
      • deletePlugin

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void deletePlugin​(es.caib.seycon.ng.comu.ServerPlugin plugin)
                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        deletePlugin in interface es.caib.seycon.ng.servei.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDeletePlugin

        protected abstract void handleDeletePlugin​(es.caib.seycon.ng.comu.ServerPlugin plugin)
                                            throws Exception
        Throws:
        Exception
      • deployPlugin

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

        protected abstract void handleDeployPlugin​(byte[] i)
                                            throws Exception
        Throws:
        Exception
      • enablePlugin

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void enablePlugin​(es.caib.seycon.ng.comu.ServerPlugin plugin,
                                 boolean status)
                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        enablePlugin in interface es.caib.seycon.ng.servei.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleEnablePlugin

        protected abstract void handleEnablePlugin​(es.caib.seycon.ng.comu.ServerPlugin plugin,
                                                   boolean status)
                                            throws Exception
        Throws:
        Exception
      • updatePlugin

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void updatePlugin​(byte[] i)
                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.seycon.ng.exception.InternalErrorException,
                                 com.soffid.iam.exception.DuplicatedClassException
        Specified by:
        updatePlugin in interface es.caib.seycon.ng.servei.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        com.soffid.iam.exception.DuplicatedClassException
      • handleUpdatePlugin

        protected abstract void handleUpdatePlugin​(byte[] i)
                                            throws Exception
        Throws:
        Exception
      • updatePlugin

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void updatePlugin​(es.caib.seycon.ng.comu.ServerPlugin plugin)
                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updatePlugin in interface es.caib.seycon.ng.servei.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdatePlugin

        protected abstract void handleUpdatePlugin​(es.caib.seycon.ng.comu.ServerPlugin plugin)
                                            throws Exception
        Throws:
        Exception
      • getPrincipal

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