Package com.soffid.iam.service
Class StatsServiceBase
- java.lang.Object
-
- com.soffid.iam.service.StatsServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.StatsService
- Direct Known Subclasses:
StatsServiceImpl
public abstract class StatsServiceBase extends Object implements com.soffid.iam.service.StatsService
Spring Service base class for
see com.soffid.iam.service.StatsServicecom.soffid.iam.service.StatsService
, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description StatsServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.soffid.iam.api.Stats
findStats(String name, Date since, Date until, int step)
AccountEntityDao
getAccountEntityDao()
Gets reference toaccountEntityDao
.com.soffid.iam.service.ApplicationService
getApplicationService()
Gets reference toaplicacioService
.AuthorizationEntityDao
getAuthorizationEntityDao()
Gets reference toautoritzacioRolEntityDao
.com.soffid.iam.service.AuthorizationService
getAuthorizationService()
Gets reference toautoritzacioService
.JumpServerGroupEntityDao
getJumpServerGroupEntityDao()
Gets reference tojumpServerGroupEntityDao
.com.soffid.iam.service.PamSessionService
getPamSessionService()
Gets reference topamSessionService
.protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.StatsEntityDao
getStatsEntityDao()
Gets reference tostatsEntityDao
.protected abstract com.soffid.iam.api.Stats
handleFindStats(String name, Date since, Date until, int step)
protected abstract void
handlePurge()
protected abstract void
handleUpdateStats()
void
purge()
void
setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.void
setApplicationService(com.soffid.iam.service.ApplicationService aplicacioService)
Sets reference toaplicacioService
.void
setAuthorizationEntityDao(AuthorizationEntityDao autoritzacioRolEntityDao)
Sets reference toautoritzacioRolEntityDao
.void
setAuthorizationService(com.soffid.iam.service.AuthorizationService autoritzacioService)
Sets reference toautoritzacioService
.void
setJumpServerGroupEntityDao(JumpServerGroupEntityDao jumpServerGroupEntityDao)
Sets reference tojumpServerGroupEntityDao
.void
setPamSessionService(com.soffid.iam.service.PamSessionService pamSessionService)
Sets reference topamSessionService
.void
setStatsEntityDao(StatsEntityDao statsEntityDao)
Sets reference tostatsEntityDao
.void
updateStats()
-
-
-
Method Detail
-
setAccountEntityDao
public void setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.
-
getAccountEntityDao
public AccountEntityDao getAccountEntityDao()
Gets reference toaccountEntityDao
.
-
setApplicationService
public void setApplicationService(com.soffid.iam.service.ApplicationService aplicacioService)
Sets reference toaplicacioService
.
-
getApplicationService
public com.soffid.iam.service.ApplicationService getApplicationService()
Gets reference toaplicacioService
.
-
setAuthorizationEntityDao
public void setAuthorizationEntityDao(AuthorizationEntityDao autoritzacioRolEntityDao)
Sets reference toautoritzacioRolEntityDao
.
-
getAuthorizationEntityDao
public AuthorizationEntityDao getAuthorizationEntityDao()
Gets reference toautoritzacioRolEntityDao
.
-
setAuthorizationService
public void setAuthorizationService(com.soffid.iam.service.AuthorizationService autoritzacioService)
Sets reference toautoritzacioService
.
-
getAuthorizationService
public com.soffid.iam.service.AuthorizationService getAuthorizationService()
Gets reference toautoritzacioService
.
-
setJumpServerGroupEntityDao
public void setJumpServerGroupEntityDao(JumpServerGroupEntityDao jumpServerGroupEntityDao)
Sets reference tojumpServerGroupEntityDao
.
-
getJumpServerGroupEntityDao
public JumpServerGroupEntityDao getJumpServerGroupEntityDao()
Gets reference tojumpServerGroupEntityDao
.
-
setPamSessionService
public void setPamSessionService(com.soffid.iam.service.PamSessionService pamSessionService)
Sets reference topamSessionService
.
-
getPamSessionService
public com.soffid.iam.service.PamSessionService getPamSessionService()
Gets reference topamSessionService
.
-
setStatsEntityDao
public void setStatsEntityDao(StatsEntityDao statsEntityDao)
Sets reference tostatsEntityDao
.
-
getStatsEntityDao
public StatsEntityDao getStatsEntityDao()
Gets reference tostatsEntityDao
.
-
findStats
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Stats findStats(String name, Date since, Date until, int step) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findStats
in interfacecom.soffid.iam.service.StatsService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindStats
protected abstract com.soffid.iam.api.Stats handleFindStats(String name, Date since, Date until, int step) throws Exception
- Throws:
Exception
-
purge
@Transactional(rollbackFor=java.lang.Exception.class) public void purge() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
purge
in interfacecom.soffid.iam.service.StatsService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
updateStats
@Transactional(rollbackFor=java.lang.Exception.class) public void updateStats() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updateStats
in interfacecom.soffid.iam.service.StatsService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-