Class ServerPluginServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.ServerPluginService
    Direct Known Subclasses:
    ServerPluginServiceImpl

    public abstract class ServerPluginServiceBase
    extends Object
    implements com.soffid.iam.service.ServerPluginService

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

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

      • ServerPluginServiceBase

        public ServerPluginServiceBase()
    • Method Detail

      • setAgentDescriptorEntityDao

        public void setAgentDescriptorEntityDao​(AgentDescriptorEntityDao agentDescriptorEntityDao)
        Sets reference to agentDescriptorEntityDao.
      • getAgentDescriptorEntityDao

        public AgentDescriptorEntityDao getAgentDescriptorEntityDao()
        Gets reference to agentDescriptorEntityDao.
      • setAuditEntityDao

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

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

        public void setConfigurationService​(com.soffid.iam.service.ConfigurationService configuracioService)
        Sets reference to configuracioService.
      • getConfigurationService

        public com.soffid.iam.service.ConfigurationService getConfigurationService()
        Gets reference to configuracioService.
      • setDefaultAttributeMappingEntityDao

        public void setDefaultAttributeMappingEntityDao​(DefaultAttributeMappingEntityDao defaultAttributeMappingEntityDao)
        Sets reference to defaultAttributeMappingEntityDao.
      • getDefaultAttributeMappingEntityDao

        public DefaultAttributeMappingEntityDao getDefaultAttributeMappingEntityDao()
        Gets reference to defaultAttributeMappingEntityDao.
      • setDefaultObjectMappingEntityDao

        public void setDefaultObjectMappingEntityDao​(DefaultObjectMappingEntityDao defaultObjectMappingEntityDao)
        Sets reference to defaultObjectMappingEntityDao.
      • getDefaultObjectMappingEntityDao

        public DefaultObjectMappingEntityDao getDefaultObjectMappingEntityDao()
        Gets reference to defaultObjectMappingEntityDao.
      • setDefaultObjectMappingPropertyEntityDao

        public void setDefaultObjectMappingPropertyEntityDao​(DefaultObjectMappingPropertyEntityDao defaultObjectMappingPropertyEntityDao)
        Sets reference to defaultObjectMappingPropertyEntityDao.
      • getDefaultObjectMappingPropertyEntityDao

        public DefaultObjectMappingPropertyEntityDao getDefaultObjectMappingPropertyEntityDao()
        Gets reference to defaultObjectMappingPropertyEntityDao.
      • setServerPluginEntityDao

        public void setServerPluginEntityDao​(ServerPluginEntityDao serverPluginEntityDao)
        Sets reference to serverPluginEntityDao.
      • getServerPluginEntityDao

        public ServerPluginEntityDao getServerPluginEntityDao()
        Gets reference to serverPluginEntityDao.
      • setServerPluginModuleEntityDao

        public void setServerPluginModuleEntityDao​(ServerPluginModuleEntityDao serverPluginModuleEntityDao)
        Sets reference to serverPluginModuleEntityDao.
      • getServerPluginModuleEntityDao

        public ServerPluginModuleEntityDao getServerPluginModuleEntityDao()
        Gets reference to serverPluginModuleEntityDao.
      • getAgentDescriptor

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

        protected abstract com.soffid.iam.api.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 com.soffid.iam.service.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAgentDescriptorWorkflows

        @Transactional(rollbackFor=java.lang.Exception.class)
        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.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAgentDescriptorWorkflows

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

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

        protected abstract Collection<com.soffid.iam.api.AgentDescriptor> handleGetAgentDescriptors()
                                                                                             throws Exception
        Throws:
        Exception
      • getAllAgentDescriptorsInfo

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

        protected abstract Collection<com.soffid.iam.api.AgentDescriptor> handleGetAllAgentDescriptorsInfo()
                                                                                                    throws Exception
        Throws:
        Exception
      • getPluginAgentDescriptors

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

        protected abstract Collection<com.soffid.iam.api.AgentDescriptor> handleGetPluginAgentDescriptors​(com.soffid.iam.api.ServerPlugin plugin)
                                                                                                   throws Exception
        Throws:
        Exception
      • listServerPlugins

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

        protected abstract Collection<com.soffid.iam.api.ServerPlugin> handleListServerPlugins()
                                                                                        throws Exception
        Throws:
        Exception
      • deletePlugin

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

        protected abstract void handleDeletePlugin​(com.soffid.iam.api.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 com.soffid.iam.service.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​(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.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleEnablePlugin

        protected abstract void handleEnablePlugin​(com.soffid.iam.api.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 com.soffid.iam.service.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​(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.ServerPluginService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdatePlugin

        protected abstract void handleUpdatePlugin​(com.soffid.iam.api.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