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 StringfindUserByToken(String token)Operation findUserByTokenStringgenerateToken(String user)Operation generateTokenPasswordManagerTokenEntityDaogetPasswordManagerTokenEntityDao()Gets reference topasswordManagerTokenEntityDao.protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.UserEntityDaogetUserEntityDao()Gets reference tousuariEntityDao.protected abstract StringhandleFindUserByToken(String token)protected abstract StringhandleGenerateToken(String user)protected abstract StringhandleRenewToken(String token)StringrenewToken(String token)Operation renewTokenvoidsetPasswordManagerTokenEntityDao(PasswordManagerTokenEntityDao passwordManagerTokenEntityDao)Sets reference topasswordManagerTokenEntityDao.voidsetUserEntityDao(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:PasswordManagerServiceOperation findUserByToken- Specified by:
findUserByTokenin 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:PasswordManagerServiceOperation generateToken- Specified by:
generateTokenin 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:PasswordManagerServiceOperation renewToken- Specified by:
renewTokenin 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 currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-