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 void
boostTask(long taskId)
void
cancelTask(long taskId)
void
cancelUnscheduledTasks()
Collection<com.soffid.iam.ui.SeyconTask>
findUnscheduledTasks()
Collection<com.soffid.iam.api.SyncAgentTaskLog>
getAgentTasks(String url, String agentCodi)
com.soffid.iam.api.SyncAgentTaskLog
getAgentTasks(String url, String agentName, Long taskId)
ConfigEntityDao
getConfigEntityDao()
Gets reference toconfiguracioEntityDao
.com.soffid.iam.service.ConfigurationService
getConfigurationService()
Gets reference toconfiguracioService
.com.soffid.iam.service.DispatcherService
getDispatcherService()
Gets reference todispatcherService
.Collection<com.soffid.iam.api.SyncServerInfo>
getPendingTasksInfo()
Map<String,Vector<Object[]>>
getPendingTasksStats()
protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.Collection<com.soffid.iam.api.AgentStatusInfo>
getServerAgentStatus()
Collection<com.soffid.iam.api.AgentStatusInfo>
getServerAgentStatus(String url)
ServerEntityDao
getServerEntityDao()
Gets reference toserverEntityDao
.ServerInstanceEntityDao
getServerInstanceEntityDao()
Gets reference toserverInstanceEntityDao
.Object
getServerService(String servicePath)
Collection<Object>
getServerTasks(String url)
InputStream
getSeyconServerLog(String urlServer)
Map<String,int[]>
getStats(String server, String metric, int seconds, int step)
StatsEntityDao
getStatsEntityDao()
Gets reference tostatsEntityDao
.com.soffid.iam.service.StatsService
getStatsService()
Gets reference tostatsService
.com.soffid.iam.api.SyncServerInfo
getSyncServerInfo(String url)
Collection<com.soffid.iam.api.Server>
getSyncServerInstances()
Collection<com.soffid.iam.api.Server>
getSyncServers()
Collection<com.soffid.iam.api.SyncServerInfo>
getSyncServersStatus()
SystemEntityDao
getSystemEntityDao()
Gets reference todispatcherEntityDao
.TaskEntityDao
getTaskEntityDao()
Gets reference totasqueEntityDao
.TaskLogEntityDao
getTaskLogEntityDao()
Gets reference totaskLogEntityDao
.TenantEntityDao
getTenantEntityDao()
Gets reference totenantEntityDao
.protected abstract void
handleBoostTask(long taskId)
protected abstract void
handleCancelTask(long taskId)
protected abstract void
handleCancelUnscheduledTasks()
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.SyncAgentTaskLog
handleGetAgentTasks(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 Object
handleGetServerService(String servicePath)
protected abstract Collection<Object>
handleGetServerTasks(String url)
protected abstract InputStream
handleGetSeyconServerLog(String urlServer)
protected abstract Map<String,int[]>
handleGetStats(String server, String metric, int seconds, int step)
protected abstract com.soffid.iam.api.SyncServerInfo
handleGetSyncServerInfo(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 void
handleReleaseAllTasks()
protected abstract void
handleReleaseTask(long taskId)
protected abstract void
handleResetSyncServer(String url, String server)
protected abstract String[]
handleTailServerLog(String urlServer)
protected abstract void
handleUpdateDispatcherConfiguration()
protected abstract void
handleUpdatePendingTasks()
void
releaseAllTasks()
void
releaseTask(long taskId)
void
resetSyncServer(String url, String server)
void
setConfigEntityDao(ConfigEntityDao configuracioEntityDao)
Sets reference toconfiguracioEntityDao
.void
setConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)
Sets reference toconfiguracioService
.void
setDispatcherService(com.soffid.iam.service.DispatcherService dispatcherService)
Sets reference todispatcherService
.void
setServerEntityDao(ServerEntityDao serverEntityDao)
Sets reference toserverEntityDao
.void
setServerInstanceEntityDao(ServerInstanceEntityDao serverInstanceEntityDao)
Sets reference toserverInstanceEntityDao
.void
setStatsEntityDao(StatsEntityDao statsEntityDao)
Sets reference tostatsEntityDao
.void
setStatsService(com.soffid.iam.service.StatsService statsService)
Sets reference tostatsService
.void
setSystemEntityDao(SystemEntityDao dispatcherEntityDao)
Sets reference todispatcherEntityDao
.void
setTaskEntityDao(TaskEntityDao tasqueEntityDao)
Sets reference totasqueEntityDao
.void
setTaskLogEntityDao(TaskLogEntityDao taskLogEntityDao)
Sets reference totaskLogEntityDao
.void
setTenantEntityDao(TenantEntityDao tenantEntityDao)
Sets reference totenantEntityDao
.String[]
tailServerLog(String urlServer)
void
updateDispatcherConfiguration()
void
updatePendingTasks()
-
-
-
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:
getAgentTasks
in 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:
getSyncServerInfo
in 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:
getSeyconServerLog
in 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:
getServerService
in 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:
tailServerLog
in 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:
findUnscheduledTasks
in 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:
getAgentTasks
in 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:
getPendingTasksInfo
in 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:
getServerAgentStatus
in 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:
getServerAgentStatus
in 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:
getServerTasks
in 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:
getSyncServersStatus
in 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:
getSyncServerInstances
in 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:
getSyncServers
in 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:
getPendingTasksStats
in 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:
getStats
in 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:
boostTask
in 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:
cancelTask
in 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:
cancelUnscheduledTasks
in 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:
releaseAllTasks
in 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:
releaseTask
in 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:
resetSyncServer
in 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:
updateDispatcherConfiguration
in 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:
updatePendingTasks
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-