Package es.caib.seycon.ng.servei
Class ServerPluginServiceBase
- java.lang.Object
-
- es.caib.seycon.ng.servei.ServerPluginServiceBase
-
- All Implemented Interfaces:
es.caib.seycon.ng.servei.ServerPluginService
public abstract class ServerPluginServiceBase extends Object implements es.caib.seycon.ng.servei.ServerPluginService
Spring Service base class for
see es.caib.seycon.ng.servei.ServerPluginServicees.caib.seycon.ng.servei.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(es.caib.seycon.ng.comu.ServerPlugin plugin)
void
deployPlugin(byte[] i)
void
enablePlugin(es.caib.seycon.ng.comu.ServerPlugin plugin, boolean status)
Collection<com.soffid.iam.api.AgentDescriptorWorkflow>
findAgentDescriptorWorkflows(es.caib.seycon.ng.comu.AgentDescriptor agent)
es.caib.seycon.ng.comu.AgentDescriptor
getAgentDescriptor(String className)
Collection<es.caib.seycon.ng.comu.AgentDescriptor>
getAgentDescriptors()
Collection<es.caib.seycon.ng.comu.AgentDescriptor>
getAllAgentDescriptorsInfo()
Collection<es.caib.seycon.ng.comu.AgentDescriptor>
getPluginAgentDescriptors(es.caib.seycon.ng.comu.ServerPlugin plugin)
protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.com.soffid.iam.service.ServerPluginService
getServerPluginService()
Gets reference toserverPluginService
.String
getServerVersion()
protected abstract void
handleDeletePlugin(es.caib.seycon.ng.comu.ServerPlugin plugin)
protected abstract void
handleDeployPlugin(byte[] i)
protected abstract void
handleEnablePlugin(es.caib.seycon.ng.comu.ServerPlugin plugin, boolean status)
protected abstract Collection<com.soffid.iam.api.AgentDescriptorWorkflow>
handleFindAgentDescriptorWorkflows(es.caib.seycon.ng.comu.AgentDescriptor agent)
protected abstract es.caib.seycon.ng.comu.AgentDescriptor
handleGetAgentDescriptor(String className)
protected abstract Collection<es.caib.seycon.ng.comu.AgentDescriptor>
handleGetAgentDescriptors()
protected abstract Collection<es.caib.seycon.ng.comu.AgentDescriptor>
handleGetAllAgentDescriptorsInfo()
protected abstract Collection<es.caib.seycon.ng.comu.AgentDescriptor>
handleGetPluginAgentDescriptors(es.caib.seycon.ng.comu.ServerPlugin plugin)
protected abstract String
handleGetServerVersion()
protected abstract Collection<es.caib.seycon.ng.comu.ServerPlugin>
handleListServerPlugins()
protected abstract void
handleUpdatePlugin(byte[] i)
protected abstract void
handleUpdatePlugin(es.caib.seycon.ng.comu.ServerPlugin plugin)
Collection<es.caib.seycon.ng.comu.ServerPlugin>
listServerPlugins()
void
setServerPluginService(com.soffid.iam.service.ServerPluginService serverPluginService)
Sets reference toserverPluginService
.void
updatePlugin(byte[] i)
void
updatePlugin(es.caib.seycon.ng.comu.ServerPlugin plugin)
-
-
-
Method Detail
-
setServerPluginService
public void setServerPluginService(com.soffid.iam.service.ServerPluginService serverPluginService)
Sets reference toserverPluginService
.
-
getServerPluginService
public com.soffid.iam.service.ServerPluginService getServerPluginService()
Gets reference toserverPluginService
.
-
getAgentDescriptor
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.AgentDescriptor getAgentDescriptor(String className) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getAgentDescriptor
in interfacees.caib.seycon.ng.servei.ServerPluginService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetAgentDescriptor
protected abstract es.caib.seycon.ng.comu.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 interfacees.caib.seycon.ng.servei.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(es.caib.seycon.ng.comu.AgentDescriptor agent) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findAgentDescriptorWorkflows
in interfacees.caib.seycon.ng.servei.ServerPluginService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindAgentDescriptorWorkflows
protected abstract Collection<com.soffid.iam.api.AgentDescriptorWorkflow> handleFindAgentDescriptorWorkflows(es.caib.seycon.ng.comu.AgentDescriptor agent) throws Exception
- Throws:
Exception
-
getAgentDescriptors
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.AgentDescriptor> getAgentDescriptors() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getAgentDescriptors
in interfacees.caib.seycon.ng.servei.ServerPluginService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetAgentDescriptors
protected abstract Collection<es.caib.seycon.ng.comu.AgentDescriptor> handleGetAgentDescriptors() throws Exception
- Throws:
Exception
-
getAllAgentDescriptorsInfo
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.AgentDescriptor> getAllAgentDescriptorsInfo() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getAllAgentDescriptorsInfo
in interfacees.caib.seycon.ng.servei.ServerPluginService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetAllAgentDescriptorsInfo
protected abstract Collection<es.caib.seycon.ng.comu.AgentDescriptor> handleGetAllAgentDescriptorsInfo() throws Exception
- Throws:
Exception
-
getPluginAgentDescriptors
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.AgentDescriptor> getPluginAgentDescriptors(es.caib.seycon.ng.comu.ServerPlugin plugin) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getPluginAgentDescriptors
in interfacees.caib.seycon.ng.servei.ServerPluginService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetPluginAgentDescriptors
protected abstract Collection<es.caib.seycon.ng.comu.AgentDescriptor> handleGetPluginAgentDescriptors(es.caib.seycon.ng.comu.ServerPlugin plugin) throws Exception
- Throws:
Exception
-
listServerPlugins
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.ServerPlugin> listServerPlugins() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
listServerPlugins
in interfacees.caib.seycon.ng.servei.ServerPluginService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleListServerPlugins
protected abstract Collection<es.caib.seycon.ng.comu.ServerPlugin> handleListServerPlugins() throws Exception
- Throws:
Exception
-
deletePlugin
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void deletePlugin(es.caib.seycon.ng.comu.ServerPlugin plugin) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
deletePlugin
in interfacees.caib.seycon.ng.servei.ServerPluginService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDeletePlugin
protected abstract void handleDeletePlugin(es.caib.seycon.ng.comu.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 interfacees.caib.seycon.ng.servei.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(es.caib.seycon.ng.comu.ServerPlugin plugin, boolean status) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
enablePlugin
in interfacees.caib.seycon.ng.servei.ServerPluginService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleEnablePlugin
protected abstract void handleEnablePlugin(es.caib.seycon.ng.comu.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 interfacees.caib.seycon.ng.servei.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(es.caib.seycon.ng.comu.ServerPlugin plugin) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updatePlugin
in interfacees.caib.seycon.ng.servei.ServerPluginService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdatePlugin
protected abstract void handleUpdatePlugin(es.caib.seycon.ng.comu.ServerPlugin plugin) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-