Package com.soffid.iam.service
Class PasswordManagerServiceBase
- java.lang.Object
-
- com.soffid.iam.service.PasswordManagerServiceBase
-
- All Implemented Interfaces:
PasswordManagerService
- Direct Known Subclasses:
PasswordManagerServiceImpl
public abstract class PasswordManagerServiceBase extends Object implements PasswordManagerService
Spring Service base class for
see com.soffid.iam.service.PasswordManagerServicecom.soffid.iam.service.PasswordManagerService
, provides access to all services and entities referenced by this service.
-
-
Field Summary
-
Fields inherited from interface com.soffid.iam.service.PasswordManagerService
SERVICE_NAME
-
-
Constructor Summary
Constructors Constructor Description PasswordManagerServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
findUserByToken(String token)
Operation findUserByTokenString
generateToken(String user)
Operation generateTokenPasswordManagerTokenEntityDao
getPasswordManagerTokenEntityDao()
Gets reference topasswordManagerTokenEntityDao
.protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.UserEntityDao
getUserEntityDao()
Gets reference tousuariEntityDao
.protected abstract String
handleFindUserByToken(String token)
protected abstract String
handleGenerateToken(String user)
protected abstract String
handleRenewToken(String token)
String
renewToken(String token)
Operation renewTokenvoid
setPasswordManagerTokenEntityDao(PasswordManagerTokenEntityDao passwordManagerTokenEntityDao)
Sets reference topasswordManagerTokenEntityDao
.void
setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.
-
-
-
Method Detail
-
setPasswordManagerTokenEntityDao
public void setPasswordManagerTokenEntityDao(PasswordManagerTokenEntityDao passwordManagerTokenEntityDao)
Sets reference topasswordManagerTokenEntityDao
.
-
getPasswordManagerTokenEntityDao
public PasswordManagerTokenEntityDao getPasswordManagerTokenEntityDao()
Gets reference topasswordManagerTokenEntityDao
.
-
setUserEntityDao
public void setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.
-
getUserEntityDao
public UserEntityDao getUserEntityDao()
Gets reference tousuariEntityDao
.
-
findUserByToken
@Transactional(rollbackFor=java.lang.Exception.class) public String findUserByToken(String token) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:PasswordManagerService
Operation findUserByToken- Specified by:
findUserByToken
in interfacePasswordManagerService
- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindUserByToken
protected abstract String handleFindUserByToken(String token) throws Exception
- Throws:
Exception
-
generateToken
@Transactional(rollbackFor=java.lang.Exception.class) public String generateToken(String user) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:PasswordManagerService
Operation generateToken- Specified by:
generateToken
in interfacePasswordManagerService
- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGenerateToken
protected abstract String handleGenerateToken(String user) throws Exception
- Throws:
Exception
-
renewToken
@Transactional(rollbackFor=java.lang.Exception.class) public String renewToken(String token) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:PasswordManagerService
Operation renewToken- Specified by:
renewToken
in interfacePasswordManagerService
- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRenewToken
protected abstract String handleRenewToken(String token) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-