Class NetworkDiscoveryServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.NetworkDiscoveryService
    Direct Known Subclasses:
    NetworkDiscoveryServiceImpl

    public abstract class NetworkDiscoveryServiceBase
    extends Object
    implements com.soffid.iam.service.NetworkDiscoveryService

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

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

      • NetworkDiscoveryServiceBase

        public NetworkDiscoveryServiceBase()
    • Method Detail

      • setAccountEntityDao

        public void setAccountEntityDao​(AccountEntityDao accountEntityDao)
        Sets reference to accountEntityDao.
      • getAccountEntityDao

        public AccountEntityDao getAccountEntityDao()
        Gets reference to accountEntityDao.
      • setSystemEntityDao

        public void setSystemEntityDao​(SystemEntityDao dispatcherEntityDao)
        Sets reference to dispatcherEntityDao.
      • getSystemEntityDao

        public SystemEntityDao getSystemEntityDao()
        Gets reference to dispatcherEntityDao.
      • setDispatcherService

        public void setDispatcherService​(com.soffid.iam.service.DispatcherService dispatcherService)
        Sets reference to dispatcherService.
      • getDispatcherService

        public com.soffid.iam.service.DispatcherService getDispatcherService()
        Gets reference to dispatcherService.
      • setUserDomainService

        public void setUserDomainService​(com.soffid.iam.service.UserDomainService dominiUsuariService)
        Sets reference to dominiUsuariService.
      • getUserDomainService

        public com.soffid.iam.service.UserDomainService getUserDomainService()
        Gets reference to dominiUsuariService.
      • setHostEntryPointEntityDao

        public void setHostEntryPointEntityDao​(HostEntryPointEntityDao hostEntryPointEntityDao)
        Sets reference to hostEntryPointEntityDao.
      • getHostEntryPointEntityDao

        public HostEntryPointEntityDao getHostEntryPointEntityDao()
        Gets reference to hostEntryPointEntityDao.
      • setHostPortEntityDao

        public void setHostPortEntityDao​(HostPortEntityDao hostPortEntityDao)
        Sets reference to hostPortEntityDao.
      • getHostPortEntityDao

        public HostPortEntityDao getHostPortEntityDao()
        Gets reference to hostPortEntityDao.
      • setHostServiceEntityDao

        public void setHostServiceEntityDao​(HostServiceEntityDao hostServiceEntityDao)
        Sets reference to hostServiceEntityDao.
      • getHostServiceEntityDao

        public HostServiceEntityDao getHostServiceEntityDao()
        Gets reference to hostServiceEntityDao.
      • setHostSystemEntityDao

        public void setHostSystemEntityDao​(HostSystemEntityDao hostSystemEntityDao)
        Sets reference to hostSystemEntityDao.
      • getHostSystemEntityDao

        public HostSystemEntityDao getHostSystemEntityDao()
        Gets reference to hostSystemEntityDao.
      • setHostEntityDao

        public void setHostEntityDao​(HostEntityDao maquinaEntityDao)
        Sets reference to maquinaEntityDao.
      • getHostEntityDao

        public HostEntityDao getHostEntityDao()
        Gets reference to maquinaEntityDao.
      • setNetworkDiscoveryAccountEntityDao

        public void setNetworkDiscoveryAccountEntityDao​(NetworkDiscoveryAccountEntityDao networkDiscoveryAccountEntityDao)
        Sets reference to networkDiscoveryAccountEntityDao.
      • getNetworkDiscoveryAccountEntityDao

        public NetworkDiscoveryAccountEntityDao getNetworkDiscoveryAccountEntityDao()
        Gets reference to networkDiscoveryAccountEntityDao.
      • setEntryPointEntityDao

        public void setEntryPointEntityDao​(EntryPointEntityDao puntEntradaEntityDao)
        Sets reference to puntEntradaEntityDao.
      • getEntryPointEntityDao

        public EntryPointEntityDao getEntryPointEntityDao()
        Gets reference to puntEntradaEntityDao.
      • setEntryPointService

        public void setEntryPointService​(com.soffid.iam.service.EntryPointService puntEntradaService)
        Sets reference to puntEntradaService.
      • getEntryPointService

        public com.soffid.iam.service.EntryPointService getEntryPointService()
        Gets reference to puntEntradaService.
      • setScheduledTaskService

        public void setScheduledTaskService​(com.soffid.iam.service.ScheduledTaskService scheduledTaskService)
        Sets reference to scheduledTaskService.
      • getScheduledTaskService

        public com.soffid.iam.service.ScheduledTaskService getScheduledTaskService()
        Gets reference to scheduledTaskService.
      • setSyncStatusService

        public void setSyncStatusService​(com.soffid.iam.sync.service.SyncStatusService syncStatusService)
        Sets reference to syncStatusService.
      • getSyncStatusService

        public com.soffid.iam.sync.service.SyncStatusService getSyncStatusService()
        Gets reference to syncStatusService.
      • setNetworkEntityDao

        public void setNetworkEntityDao​(NetworkEntityDao xarxaEntityDao)
        Sets reference to xarxaEntityDao.
      • getNetworkEntityDao

        public NetworkEntityDao getNetworkEntityDao()
        Gets reference to xarxaEntityDao.
      • setNetworkService

        public void setNetworkService​(com.soffid.iam.service.NetworkService xarxaService)
        Sets reference to xarxaService.
      • getNetworkService

        public com.soffid.iam.service.NetworkService getNetworkService()
        Gets reference to xarxaService.
      • createHostService

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.HostService createHostService​(com.soffid.iam.api.HostService service)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createHostService in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreateHostService

        protected abstract com.soffid.iam.api.HostService handleCreateHostService​(com.soffid.iam.api.HostService service)
                                                                           throws Exception
        Throws:
        Exception
      • updateHostService

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.HostService updateHostService​(com.soffid.iam.api.HostService service)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateHostService in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdateHostService

        protected abstract com.soffid.iam.api.HostService handleUpdateHostService​(com.soffid.iam.api.HostService service)
                                                                           throws Exception
        Throws:
        Exception
      • findNetworkDiscoveryScheduledTask

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.ScheduledTask findNetworkDiscoveryScheduledTask​(com.soffid.iam.api.Network network)
                                                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findNetworkDiscoveryScheduledTask in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindNetworkDiscoveryScheduledTask

        protected abstract com.soffid.iam.api.ScheduledTask handleFindNetworkDiscoveryScheduledTask​(com.soffid.iam.api.Network network)
                                                                                             throws Exception
        Throws:
        Exception
      • createSystemCandidate

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.System createSystemCandidate​(com.soffid.iam.api.Host host,
                                                               String type,
                                                               String userName,
                                                               com.soffid.iam.api.Password password,
                                                               String instance)
                                                        throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createSystemCandidate in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreateSystemCandidate

        protected abstract com.soffid.iam.api.System handleCreateSystemCandidate​(com.soffid.iam.api.Host host,
                                                                                 String type,
                                                                                 String userName,
                                                                                 com.soffid.iam.api.Password password,
                                                                                 String instance)
                                                                          throws Exception
        Throws:
        Exception
      • findHostEntryPoints

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.AccessTree> findHostEntryPoints​(com.soffid.iam.api.Host host)
                                                                throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findHostEntryPoints in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindHostEntryPoints

        protected abstract List<com.soffid.iam.api.AccessTree> handleFindHostEntryPoints​(com.soffid.iam.api.Host host)
                                                                                  throws Exception
        Throws:
        Exception
      • findHostPorts

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.HostPort> findHostPorts​(com.soffid.iam.api.Host host)
                                                        throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findHostPorts in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindHostPorts

        protected abstract List<com.soffid.iam.api.HostPort> handleFindHostPorts​(com.soffid.iam.api.Host host)
                                                                          throws Exception
        Throws:
        Exception
      • findHostServices

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.HostService> findHostServices​(com.soffid.iam.api.Host host)
                                                              throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findHostServices in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindHostServices

        protected abstract List<com.soffid.iam.api.HostService> handleFindHostServices​(com.soffid.iam.api.Host host)
                                                                                throws Exception
        Throws:
        Exception
      • findHostSystems

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.System> findHostSystems​(com.soffid.iam.api.Host host)
                                                        throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findHostSystems in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindHostSystems

        protected abstract List<com.soffid.iam.api.System> handleFindHostSystems​(com.soffid.iam.api.Host host)
                                                                          throws Exception
        Throws:
        Exception
      • findNetworkAccount

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.Account> findNetworkAccount​(com.soffid.iam.api.Network network)
                                                            throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findNetworkAccount in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindNetworkAccount

        protected abstract List<com.soffid.iam.api.Account> handleFindNetworkAccount​(com.soffid.iam.api.Network network)
                                                                              throws Exception
        Throws:
        Exception
      • findSystemHosts

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.Host> findSystemHosts​(com.soffid.iam.api.System system)
                                                      throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findSystemHosts in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindSystemHosts

        protected abstract List<com.soffid.iam.api.Host> handleFindSystemHosts​(com.soffid.iam.api.System system)
                                                                        throws Exception
        Throws:
        Exception
      • createNetworkAccount

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void createNetworkAccount​(com.soffid.iam.api.Network network,
                                         com.soffid.iam.api.Account account)
                                  throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createNetworkAccount in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreateNetworkAccount

        protected abstract void handleCreateNetworkAccount​(com.soffid.iam.api.Network network,
                                                           com.soffid.iam.api.Account account)
                                                    throws Exception
        Throws:
        Exception
      • deleteHostService

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void deleteHostService​(com.soffid.iam.api.HostService service)
                               throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        deleteHostService in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDeleteHostService

        protected abstract void handleDeleteHostService​(com.soffid.iam.api.HostService service)
                                                 throws Exception
        Throws:
        Exception
      • disconnectSystemFromHost

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void disconnectSystemFromHost​(com.soffid.iam.api.Host host,
                                             com.soffid.iam.api.System system)
                                      throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        disconnectSystemFromHost in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDisconnectSystemFromHost

        protected abstract void handleDisconnectSystemFromHost​(com.soffid.iam.api.Host host,
                                                               com.soffid.iam.api.System system)
                                                        throws Exception
        Throws:
        Exception
      • enableNetworkDiscoveryScheduledTask

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void enableNetworkDiscoveryScheduledTask​(com.soffid.iam.api.Network network)
                                                 throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        enableNetworkDiscoveryScheduledTask in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleEnableNetworkDiscoveryScheduledTask

        protected abstract void handleEnableNetworkDiscoveryScheduledTask​(com.soffid.iam.api.Network network)
                                                                   throws Exception
        Throws:
        Exception
      • registerHostEntryPoint

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void registerHostEntryPoint​(com.soffid.iam.api.Host host,
                                           com.soffid.iam.api.AccessTree entryPoint)
                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        registerHostEntryPoint in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRegisterHostEntryPoint

        protected abstract void handleRegisterHostEntryPoint​(com.soffid.iam.api.Host host,
                                                             com.soffid.iam.api.AccessTree entryPoint)
                                                      throws Exception
        Throws:
        Exception
      • registerHostPorts

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void registerHostPorts​(com.soffid.iam.api.Host host,
                                      List<com.soffid.iam.api.HostPort> ports)
                               throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        registerHostPorts in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRegisterHostPorts

        protected abstract void handleRegisterHostPorts​(com.soffid.iam.api.Host host,
                                                        List<com.soffid.iam.api.HostPort> ports)
                                                 throws Exception
        Throws:
        Exception
      • registerHostServices

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void registerHostServices​(com.soffid.iam.api.Host host,
                                         com.soffid.iam.api.System dispatcher,
                                         List<com.soffid.iam.api.HostService> services,
                                         Map<String,​String> domainToSystemMap)
                                  throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        registerHostServices in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRegisterHostServices

        protected abstract void handleRegisterHostServices​(com.soffid.iam.api.Host host,
                                                           com.soffid.iam.api.System dispatcher,
                                                           List<com.soffid.iam.api.HostService> services,
                                                           Map<String,​String> domainToSystemMap)
                                                    throws Exception
        Throws:
        Exception
      • registerHostSystem

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void registerHostSystem​(com.soffid.iam.api.Host host,
                                       com.soffid.iam.api.System system)
                                throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        registerHostSystem in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRegisterHostSystem

        protected abstract void handleRegisterHostSystem​(com.soffid.iam.api.Host host,
                                                         com.soffid.iam.api.System system)
                                                  throws Exception
        Throws:
        Exception
      • removeNetworkAccount

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void removeNetworkAccount​(com.soffid.iam.api.Network network,
                                         com.soffid.iam.api.Account account)
                                  throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        removeNetworkAccount in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRemoveNetworkAccount

        protected abstract void handleRemoveNetworkAccount​(com.soffid.iam.api.Network network,
                                                           com.soffid.iam.api.Account account)
                                                    throws Exception
        Throws:
        Exception
      • startDiscovery

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void startDiscovery​(com.soffid.iam.api.Network network)
                            throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        startDiscovery in interface com.soffid.iam.service.NetworkDiscoveryService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleStartDiscovery

        protected abstract void handleStartDiscovery​(com.soffid.iam.api.Network network)
                                              throws Exception
        Throws:
        Exception
      • getPrincipal

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