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 voiddeletePlugin(es.caib.seycon.ng.comu.ServerPlugin plugin)voiddeployPlugin(byte[] i)voidenablePlugin(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.AgentDescriptorgetAgentDescriptor(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 PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.com.soffid.iam.service.ServerPluginServicegetServerPluginService()Gets reference toserverPluginService.StringgetServerVersion()protected abstract voidhandleDeletePlugin(es.caib.seycon.ng.comu.ServerPlugin plugin)protected abstract voidhandleDeployPlugin(byte[] i)protected abstract voidhandleEnablePlugin(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.AgentDescriptorhandleGetAgentDescriptor(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 StringhandleGetServerVersion()protected abstract Collection<es.caib.seycon.ng.comu.ServerPlugin>handleListServerPlugins()protected abstract voidhandleUpdatePlugin(byte[] i)protected abstract voidhandleUpdatePlugin(es.caib.seycon.ng.comu.ServerPlugin plugin)Collection<es.caib.seycon.ng.comu.ServerPlugin>listServerPlugins()voidsetServerPluginService(com.soffid.iam.service.ServerPluginService serverPluginService)Sets reference toserverPluginService.voidupdatePlugin(byte[] i)voidupdatePlugin(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:
getAgentDescriptorin 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:
getServerVersionin 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:
findAgentDescriptorWorkflowsin 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:
getAgentDescriptorsin 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:
getAllAgentDescriptorsInfoin 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:
getPluginAgentDescriptorsin 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:
listServerPluginsin 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:
deletePluginin 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:
deployPluginin interfacees.caib.seycon.ng.servei.ServerPluginService- Throws:
es.caib.seycon.ng.exception.InternalErrorExceptioncom.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:
enablePluginin 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:
updatePluginin interfacees.caib.seycon.ng.servei.ServerPluginService- Throws:
es.caib.seycon.ng.exception.InternalErrorExceptioncom.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:
updatePluginin 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 currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-