Package com.soffid.iam.service
Class SyncServerServiceBase
- java.lang.Object
-
- com.soffid.iam.service.SyncServerServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.SyncServerService
- Direct Known Subclasses:
SyncServerServiceImpl
public abstract class SyncServerServiceBase extends Object implements com.soffid.iam.service.SyncServerService
Spring Service base class for
see com.soffid.iam.service.SyncServerServicecom.soffid.iam.service.SyncServerService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description SyncServerServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidboostTask(long taskId)voidcancelTask(long taskId)voidcancelUnscheduledTasks()Collection<com.soffid.iam.ui.SeyconTask>findUnscheduledTasks()Collection<com.soffid.iam.api.SyncAgentTaskLog>getAgentTasks(String url, String agentCodi)com.soffid.iam.api.SyncAgentTaskLoggetAgentTasks(String url, String agentName, Long taskId)ConfigEntityDaogetConfigEntityDao()Gets reference toconfiguracioEntityDao.com.soffid.iam.service.ConfigurationServicegetConfigurationService()Gets reference toconfiguracioService.com.soffid.iam.service.DispatcherServicegetDispatcherService()Gets reference todispatcherService.Collection<com.soffid.iam.api.SyncServerInfo>getPendingTasksInfo()Map<String,Vector<Object[]>>getPendingTasksStats()protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.Collection<com.soffid.iam.api.AgentStatusInfo>getServerAgentStatus()Collection<com.soffid.iam.api.AgentStatusInfo>getServerAgentStatus(String url)ServerEntityDaogetServerEntityDao()Gets reference toserverEntityDao.ServerInstanceEntityDaogetServerInstanceEntityDao()Gets reference toserverInstanceEntityDao.ObjectgetServerService(String servicePath)Collection<Object>getServerTasks(String url)InputStreamgetSeyconServerLog(String urlServer)Map<String,int[]>getStats(String server, String metric, int seconds, int step)StatsEntityDaogetStatsEntityDao()Gets reference tostatsEntityDao.com.soffid.iam.service.StatsServicegetStatsService()Gets reference tostatsService.com.soffid.iam.api.SyncServerInfogetSyncServerInfo(String url)Collection<com.soffid.iam.api.Server>getSyncServerInstances()Collection<com.soffid.iam.api.Server>getSyncServers()Collection<com.soffid.iam.api.SyncServerInfo>getSyncServersStatus()SystemEntityDaogetSystemEntityDao()Gets reference todispatcherEntityDao.TaskEntityDaogetTaskEntityDao()Gets reference totasqueEntityDao.TaskLogEntityDaogetTaskLogEntityDao()Gets reference totaskLogEntityDao.TenantEntityDaogetTenantEntityDao()Gets reference totenantEntityDao.protected abstract voidhandleBoostTask(long taskId)protected abstract voidhandleCancelTask(long taskId)protected abstract voidhandleCancelUnscheduledTasks()protected abstract Collection<com.soffid.iam.ui.SeyconTask>handleFindUnscheduledTasks()protected abstract Collection<com.soffid.iam.api.SyncAgentTaskLog>handleGetAgentTasks(String url, String agentCodi)protected abstract com.soffid.iam.api.SyncAgentTaskLoghandleGetAgentTasks(String url, String agentName, Long taskId)protected abstract Collection<com.soffid.iam.api.SyncServerInfo>handleGetPendingTasksInfo()protected abstract Map<String,Vector<Object[]>>handleGetPendingTasksStats()protected abstract Collection<com.soffid.iam.api.AgentStatusInfo>handleGetServerAgentStatus()protected abstract Collection<com.soffid.iam.api.AgentStatusInfo>handleGetServerAgentStatus(String url)protected abstract ObjecthandleGetServerService(String servicePath)protected abstract Collection<Object>handleGetServerTasks(String url)protected abstract InputStreamhandleGetSeyconServerLog(String urlServer)protected abstract Map<String,int[]>handleGetStats(String server, String metric, int seconds, int step)protected abstract com.soffid.iam.api.SyncServerInfohandleGetSyncServerInfo(String url)protected abstract Collection<com.soffid.iam.api.Server>handleGetSyncServerInstances()protected abstract Collection<com.soffid.iam.api.Server>handleGetSyncServers()protected abstract Collection<com.soffid.iam.api.SyncServerInfo>handleGetSyncServersStatus()protected abstract voidhandleReleaseAllTasks()protected abstract voidhandleReleaseTask(long taskId)protected abstract voidhandleResetSyncServer(String url, String server)protected abstract String[]handleTailServerLog(String urlServer)protected abstract voidhandleUpdateDispatcherConfiguration()protected abstract voidhandleUpdatePendingTasks()voidreleaseAllTasks()voidreleaseTask(long taskId)voidresetSyncServer(String url, String server)voidsetConfigEntityDao(ConfigEntityDao configuracioEntityDao)Sets reference toconfiguracioEntityDao.voidsetConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)Sets reference toconfiguracioService.voidsetDispatcherService(com.soffid.iam.service.DispatcherService dispatcherService)Sets reference todispatcherService.voidsetServerEntityDao(ServerEntityDao serverEntityDao)Sets reference toserverEntityDao.voidsetServerInstanceEntityDao(ServerInstanceEntityDao serverInstanceEntityDao)Sets reference toserverInstanceEntityDao.voidsetStatsEntityDao(StatsEntityDao statsEntityDao)Sets reference tostatsEntityDao.voidsetStatsService(com.soffid.iam.service.StatsService statsService)Sets reference tostatsService.voidsetSystemEntityDao(SystemEntityDao dispatcherEntityDao)Sets reference todispatcherEntityDao.voidsetTaskEntityDao(TaskEntityDao tasqueEntityDao)Sets reference totasqueEntityDao.voidsetTaskLogEntityDao(TaskLogEntityDao taskLogEntityDao)Sets reference totaskLogEntityDao.voidsetTenantEntityDao(TenantEntityDao tenantEntityDao)Sets reference totenantEntityDao.String[]tailServerLog(String urlServer)voidupdateDispatcherConfiguration()voidupdatePendingTasks()
-
-
-
Method Detail
-
setConfigEntityDao
public void setConfigEntityDao(ConfigEntityDao configuracioEntityDao)
Sets reference toconfiguracioEntityDao.
-
getConfigEntityDao
public ConfigEntityDao getConfigEntityDao()
Gets reference toconfiguracioEntityDao.
-
setConfigurationService
public void setConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)
Sets reference toconfiguracioService.
-
getConfigurationService
public com.soffid.iam.service.ConfigurationService getConfigurationService()
Gets reference toconfiguracioService.
-
setSystemEntityDao
public void setSystemEntityDao(SystemEntityDao dispatcherEntityDao)
Sets reference todispatcherEntityDao.
-
getSystemEntityDao
public SystemEntityDao getSystemEntityDao()
Gets reference todispatcherEntityDao.
-
setDispatcherService
public void setDispatcherService(com.soffid.iam.service.DispatcherService dispatcherService)
Sets reference todispatcherService.
-
getDispatcherService
public com.soffid.iam.service.DispatcherService getDispatcherService()
Gets reference todispatcherService.
-
setServerEntityDao
public void setServerEntityDao(ServerEntityDao serverEntityDao)
Sets reference toserverEntityDao.
-
getServerEntityDao
public ServerEntityDao getServerEntityDao()
Gets reference toserverEntityDao.
-
setServerInstanceEntityDao
public void setServerInstanceEntityDao(ServerInstanceEntityDao serverInstanceEntityDao)
Sets reference toserverInstanceEntityDao.
-
getServerInstanceEntityDao
public ServerInstanceEntityDao getServerInstanceEntityDao()
Gets reference toserverInstanceEntityDao.
-
setStatsEntityDao
public void setStatsEntityDao(StatsEntityDao statsEntityDao)
Sets reference tostatsEntityDao.
-
getStatsEntityDao
public StatsEntityDao getStatsEntityDao()
Gets reference tostatsEntityDao.
-
setStatsService
public void setStatsService(com.soffid.iam.service.StatsService statsService)
Sets reference tostatsService.
-
getStatsService
public com.soffid.iam.service.StatsService getStatsService()
Gets reference tostatsService.
-
setTaskLogEntityDao
public void setTaskLogEntityDao(TaskLogEntityDao taskLogEntityDao)
Sets reference totaskLogEntityDao.
-
getTaskLogEntityDao
public TaskLogEntityDao getTaskLogEntityDao()
Gets reference totaskLogEntityDao.
-
setTaskEntityDao
public void setTaskEntityDao(TaskEntityDao tasqueEntityDao)
Sets reference totasqueEntityDao.
-
getTaskEntityDao
public TaskEntityDao getTaskEntityDao()
Gets reference totasqueEntityDao.
-
setTenantEntityDao
public void setTenantEntityDao(TenantEntityDao tenantEntityDao)
Sets reference totenantEntityDao.
-
getTenantEntityDao
public TenantEntityDao getTenantEntityDao()
Gets reference totenantEntityDao.
-
getAgentTasks
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.SyncAgentTaskLog getAgentTasks(String url, String agentName, Long taskId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getAgentTasksin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetAgentTasks
protected abstract com.soffid.iam.api.SyncAgentTaskLog handleGetAgentTasks(String url, String agentName, Long taskId) throws Exception
- Throws:
Exception
-
getSyncServerInfo
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.SyncServerInfo getSyncServerInfo(String url) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getSyncServerInfoin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetSyncServerInfo
protected abstract com.soffid.iam.api.SyncServerInfo handleGetSyncServerInfo(String url) throws Exception
- Throws:
Exception
-
getSeyconServerLog
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public InputStream getSeyconServerLog(String urlServer) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getSeyconServerLogin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetSeyconServerLog
protected abstract InputStream handleGetSeyconServerLog(String urlServer) throws Exception
- Throws:
Exception
-
getServerService
@Transactional(rollbackFor=java.lang.Exception.class) public Object getServerService(String servicePath) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getServerServicein interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetServerService
protected abstract Object handleGetServerService(String servicePath) throws Exception
- Throws:
Exception
-
tailServerLog
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public String[] tailServerLog(String urlServer) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
tailServerLogin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleTailServerLog
protected abstract String[] handleTailServerLog(String urlServer) throws Exception
- Throws:
Exception
-
findUnscheduledTasks
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.ui.SeyconTask> findUnscheduledTasks() throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findUnscheduledTasksin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindUnscheduledTasks
protected abstract Collection<com.soffid.iam.ui.SeyconTask> handleFindUnscheduledTasks() throws Exception
- Throws:
Exception
-
getAgentTasks
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.SyncAgentTaskLog> getAgentTasks(String url, String agentCodi) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getAgentTasksin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetAgentTasks
protected abstract Collection<com.soffid.iam.api.SyncAgentTaskLog> handleGetAgentTasks(String url, String agentCodi) throws Exception
- Throws:
Exception
-
getPendingTasksInfo
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.SyncServerInfo> getPendingTasksInfo() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getPendingTasksInfoin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetPendingTasksInfo
protected abstract Collection<com.soffid.iam.api.SyncServerInfo> handleGetPendingTasksInfo() throws Exception
- Throws:
Exception
-
getServerAgentStatus
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.AgentStatusInfo> getServerAgentStatus() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getServerAgentStatusin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetServerAgentStatus
protected abstract Collection<com.soffid.iam.api.AgentStatusInfo> handleGetServerAgentStatus() throws Exception
- Throws:
Exception
-
getServerAgentStatus
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.AgentStatusInfo> getServerAgentStatus(String url) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getServerAgentStatusin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetServerAgentStatus
protected abstract Collection<com.soffid.iam.api.AgentStatusInfo> handleGetServerAgentStatus(String url) throws Exception
- Throws:
Exception
-
getServerTasks
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<Object> getServerTasks(String url) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getServerTasksin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetServerTasks
protected abstract Collection<Object> handleGetServerTasks(String url) throws Exception
- Throws:
Exception
-
getSyncServersStatus
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.SyncServerInfo> getSyncServersStatus() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getSyncServersStatusin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetSyncServersStatus
protected abstract Collection<com.soffid.iam.api.SyncServerInfo> handleGetSyncServersStatus() throws Exception
- Throws:
Exception
-
getSyncServerInstances
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.Server> getSyncServerInstances() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getSyncServerInstancesin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetSyncServerInstances
protected abstract Collection<com.soffid.iam.api.Server> handleGetSyncServerInstances() throws Exception
- Throws:
Exception
-
getSyncServers
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.Server> getSyncServers() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getSyncServersin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetSyncServers
protected abstract Collection<com.soffid.iam.api.Server> handleGetSyncServers() throws Exception
- Throws:
Exception
-
getPendingTasksStats
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Map<String,Vector<Object[]>> getPendingTasksStats() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getPendingTasksStatsin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetPendingTasksStats
protected abstract Map<String,Vector<Object[]>> handleGetPendingTasksStats() throws Exception
- Throws:
Exception
-
getStats
@Transactional(rollbackFor=java.lang.Exception.class) public Map<String,int[]> getStats(String server, String metric, int seconds, int step) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getStatsin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetStats
protected abstract Map<String,int[]> handleGetStats(String server, String metric, int seconds, int step) throws Exception
- Throws:
Exception
-
boostTask
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void boostTask(long taskId) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
boostTaskin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleBoostTask
protected abstract void handleBoostTask(long taskId) throws Exception- Throws:
Exception
-
cancelTask
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void cancelTask(long taskId) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
cancelTaskin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCancelTask
protected abstract void handleCancelTask(long taskId) throws Exception- Throws:
Exception
-
cancelUnscheduledTasks
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void cancelUnscheduledTasks() throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
cancelUnscheduledTasksin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCancelUnscheduledTasks
protected abstract void handleCancelUnscheduledTasks() throws Exception- Throws:
Exception
-
releaseAllTasks
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void releaseAllTasks() throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
releaseAllTasksin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleReleaseAllTasks
protected abstract void handleReleaseAllTasks() throws Exception- Throws:
Exception
-
releaseTask
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void releaseTask(long taskId) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
releaseTaskin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleReleaseTask
protected abstract void handleReleaseTask(long taskId) throws Exception- Throws:
Exception
-
resetSyncServer
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void resetSyncServer(String url, String server) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
resetSyncServerin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleResetSyncServer
protected abstract void handleResetSyncServer(String url, String server) throws Exception
- Throws:
Exception
-
updateDispatcherConfiguration
@Transactional(rollbackFor=java.lang.Exception.class) public void updateDispatcherConfiguration() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updateDispatcherConfigurationin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdateDispatcherConfiguration
protected abstract void handleUpdateDispatcherConfiguration() throws Exception- Throws:
Exception
-
updatePendingTasks
@Transactional(rollbackFor=java.lang.Exception.class) public void updatePendingTasks() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updatePendingTasksin interfacecom.soffid.iam.service.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdatePendingTasks
protected abstract void handleUpdatePendingTasks() throws Exception- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-