Package es.caib.seycon.ng.servei
Class ApplicationShutdownServiceBase
- java.lang.Object
-
- es.caib.seycon.ng.servei.ApplicationShutdownServiceBase
-
- All Implemented Interfaces:
es.caib.seycon.ng.servei.ApplicationShutdownService
public abstract class ApplicationShutdownServiceBase extends Object implements es.caib.seycon.ng.servei.ApplicationShutdownService
Spring Service base class for
see es.caib.seycon.ng.servei.ApplicationShutdownServicees.caib.seycon.ng.servei.ApplicationShutdownService
, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description ApplicationShutdownServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
consoleShutdown()
com.soffid.iam.service.ApplicationShutdownService
getApplicationShutdownService()
Gets reference toapplicationShutdownService
.protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.protected abstract void
handleConsoleShutdown()
protected abstract void
handleSyncServerShutdown()
void
setApplicationShutdownService(com.soffid.iam.service.ApplicationShutdownService applicationShutdownService)
Sets reference toapplicationShutdownService
.void
syncServerShutdown()
-
-
-
Method Detail
-
setApplicationShutdownService
public void setApplicationShutdownService(com.soffid.iam.service.ApplicationShutdownService applicationShutdownService)
Sets reference toapplicationShutdownService
.
-
getApplicationShutdownService
public com.soffid.iam.service.ApplicationShutdownService getApplicationShutdownService()
Gets reference toapplicationShutdownService
.
-
consoleShutdown
@Transactional(rollbackFor=java.lang.Exception.class) public void consoleShutdown() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
consoleShutdown
in interfacees.caib.seycon.ng.servei.ApplicationShutdownService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleConsoleShutdown
protected abstract void handleConsoleShutdown() throws Exception
- Throws:
Exception
-
syncServerShutdown
@Transactional(rollbackFor=java.lang.Exception.class) public void syncServerShutdown() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
syncServerShutdown
in interfacees.caib.seycon.ng.servei.ApplicationShutdownService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleSyncServerShutdown
protected abstract void handleSyncServerShutdown() throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-