Package com.soffid.iam.service
Class ServerPluginServiceBase
- java.lang.Object
-
- com.soffid.iam.service.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
see com.soffid.iam.service.ServerPluginServicecom.soffid.iam.service.ServerPluginService
, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description ServerPluginServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
deletePlugin(com.soffid.iam.api.ServerPlugin plugin)
void
deployPlugin(byte[] i)
void
enablePlugin(com.soffid.iam.api.ServerPlugin plugin, boolean status)
Collection<com.soffid.iam.api.AgentDescriptorWorkflow>
findAgentDescriptorWorkflows(com.soffid.iam.api.AgentDescriptor agent)
com.soffid.iam.api.AgentDescriptor
getAgentDescriptor(String className)
AgentDescriptorEntityDao
getAgentDescriptorEntityDao()
Gets reference toagentDescriptorEntityDao
.Collection<com.soffid.iam.api.AgentDescriptor>
getAgentDescriptors()
Collection<com.soffid.iam.api.AgentDescriptor>
getAllAgentDescriptorsInfo()
AuditEntityDao
getAuditEntityDao()
Gets reference toauditoriaEntityDao
.com.soffid.iam.service.ConfigurationService
getConfigurationService()
Gets reference toconfiguracioService
.DefaultAttributeMappingEntityDao
getDefaultAttributeMappingEntityDao()
Gets reference todefaultAttributeMappingEntityDao
.DefaultObjectMappingEntityDao
getDefaultObjectMappingEntityDao()
Gets reference todefaultObjectMappingEntityDao
.DefaultObjectMappingPropertyEntityDao
getDefaultObjectMappingPropertyEntityDao()
Gets reference todefaultObjectMappingPropertyEntityDao
.Collection<com.soffid.iam.api.AgentDescriptor>
getPluginAgentDescriptors(com.soffid.iam.api.ServerPlugin plugin)
protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.ServerPluginEntityDao
getServerPluginEntityDao()
Gets reference toserverPluginEntityDao
.ServerPluginModuleEntityDao
getServerPluginModuleEntityDao()
Gets reference toserverPluginModuleEntityDao
.String
getServerVersion()
protected abstract void
handleDeletePlugin(com.soffid.iam.api.ServerPlugin plugin)
protected abstract void
handleDeployPlugin(byte[] i)
protected abstract void
handleEnablePlugin(com.soffid.iam.api.ServerPlugin plugin, boolean status)
protected abstract Collection<com.soffid.iam.api.AgentDescriptorWorkflow>
handleFindAgentDescriptorWorkflows(com.soffid.iam.api.AgentDescriptor agent)
protected abstract com.soffid.iam.api.AgentDescriptor
handleGetAgentDescriptor(String className)
protected abstract Collection<com.soffid.iam.api.AgentDescriptor>
handleGetAgentDescriptors()
protected abstract Collection<com.soffid.iam.api.AgentDescriptor>
handleGetAllAgentDescriptorsInfo()
protected abstract Collection<com.soffid.iam.api.AgentDescriptor>
handleGetPluginAgentDescriptors(com.soffid.iam.api.ServerPlugin plugin)
protected abstract String
handleGetServerVersion()
protected abstract Collection<com.soffid.iam.api.ServerPlugin>
handleListServerPlugins()
protected abstract void
handleUpdatePlugin(byte[] i)
protected abstract void
handleUpdatePlugin(com.soffid.iam.api.ServerPlugin plugin)
Collection<com.soffid.iam.api.ServerPlugin>
listServerPlugins()
void
setAgentDescriptorEntityDao(AgentDescriptorEntityDao agentDescriptorEntityDao)
Sets reference toagentDescriptorEntityDao
.void
setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao
.void
setConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)
Sets reference toconfiguracioService
.void
setDefaultAttributeMappingEntityDao(DefaultAttributeMappingEntityDao defaultAttributeMappingEntityDao)
Sets reference todefaultAttributeMappingEntityDao
.void
setDefaultObjectMappingEntityDao(DefaultObjectMappingEntityDao defaultObjectMappingEntityDao)
Sets reference todefaultObjectMappingEntityDao
.void
setDefaultObjectMappingPropertyEntityDao(DefaultObjectMappingPropertyEntityDao defaultObjectMappingPropertyEntityDao)
Sets reference todefaultObjectMappingPropertyEntityDao
.void
setServerPluginEntityDao(ServerPluginEntityDao serverPluginEntityDao)
Sets reference toserverPluginEntityDao
.void
setServerPluginModuleEntityDao(ServerPluginModuleEntityDao serverPluginModuleEntityDao)
Sets reference toserverPluginModuleEntityDao
.void
updatePlugin(byte[] i)
void
updatePlugin(com.soffid.iam.api.ServerPlugin plugin)
-
-
-
Method Detail
-
setAgentDescriptorEntityDao
public void setAgentDescriptorEntityDao(AgentDescriptorEntityDao agentDescriptorEntityDao)
Sets reference toagentDescriptorEntityDao
.
-
getAgentDescriptorEntityDao
public AgentDescriptorEntityDao getAgentDescriptorEntityDao()
Gets reference toagentDescriptorEntityDao
.
-
setAuditEntityDao
public void setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao
.
-
getAuditEntityDao
public AuditEntityDao getAuditEntityDao()
Gets reference toauditoriaEntityDao
.
-
setConfigurationService
public void setConfigurationService(com.soffid.iam.service.ConfigurationService configuracioService)
Sets reference toconfiguracioService
.
-
getConfigurationService
public com.soffid.iam.service.ConfigurationService getConfigurationService()
Gets reference toconfiguracioService
.
-
setDefaultAttributeMappingEntityDao
public void setDefaultAttributeMappingEntityDao(DefaultAttributeMappingEntityDao defaultAttributeMappingEntityDao)
Sets reference todefaultAttributeMappingEntityDao
.
-
getDefaultAttributeMappingEntityDao
public DefaultAttributeMappingEntityDao getDefaultAttributeMappingEntityDao()
Gets reference todefaultAttributeMappingEntityDao
.
-
setDefaultObjectMappingEntityDao
public void setDefaultObjectMappingEntityDao(DefaultObjectMappingEntityDao defaultObjectMappingEntityDao)
Sets reference todefaultObjectMappingEntityDao
.
-
getDefaultObjectMappingEntityDao
public DefaultObjectMappingEntityDao getDefaultObjectMappingEntityDao()
Gets reference todefaultObjectMappingEntityDao
.
-
setDefaultObjectMappingPropertyEntityDao
public void setDefaultObjectMappingPropertyEntityDao(DefaultObjectMappingPropertyEntityDao defaultObjectMappingPropertyEntityDao)
Sets reference todefaultObjectMappingPropertyEntityDao
.
-
getDefaultObjectMappingPropertyEntityDao
public DefaultObjectMappingPropertyEntityDao getDefaultObjectMappingPropertyEntityDao()
Gets reference todefaultObjectMappingPropertyEntityDao
.
-
setServerPluginEntityDao
public void setServerPluginEntityDao(ServerPluginEntityDao serverPluginEntityDao)
Sets reference toserverPluginEntityDao
.
-
getServerPluginEntityDao
public ServerPluginEntityDao getServerPluginEntityDao()
Gets reference toserverPluginEntityDao
.
-
setServerPluginModuleEntityDao
public void setServerPluginModuleEntityDao(ServerPluginModuleEntityDao serverPluginModuleEntityDao)
Sets reference toserverPluginModuleEntityDao
.
-
getServerPluginModuleEntityDao
public ServerPluginModuleEntityDao getServerPluginModuleEntityDao()
Gets reference toserverPluginModuleEntityDao
.
-
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 interfacecom.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 interfacecom.soffid.iam.service.ServerPluginService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetServerVersion
protected abstract String handleGetServerVersion() throws Exception
- Throws:
Exception
-
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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-