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 voidconsoleShutdown()com.soffid.iam.service.ApplicationShutdownServicegetApplicationShutdownService()Gets reference toapplicationShutdownService.protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.protected abstract voidhandleConsoleShutdown()protected abstract voidhandleSyncServerShutdown()voidsetApplicationShutdownService(com.soffid.iam.service.ApplicationShutdownService applicationShutdownService)Sets reference toapplicationShutdownService.voidsyncServerShutdown()
-
-
-
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:
consoleShutdownin 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:
syncServerShutdownin 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 currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-