Class DefaultInviteUserTokenService
java.lang.Object
com.atlassian.crowd.service.token.DefaultInviteUserTokenService
- All Implemented Interfaces:
InviteUserTokenService
@Transactional
public class DefaultInviteUserTokenService
extends Object
implements InviteUserTokenService
Default implementation of
InviteUserTokenService backed by a storage DAO.- Since:
- v2.8
-
Field Summary
Fields inherited from interface com.atlassian.crowd.service.token.InviteUserTokenService
DEFAULT_TOKEN_EXPIRY_SECONDS -
Constructor Summary
ConstructorsConstructorDescriptionDefaultInviteUserTokenService(com.atlassian.crowd.dao.token.ExpirableUserTokenDao expirableUserTokenDao, com.atlassian.security.random.SecureTokenGenerator tokenGenerator) -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.crowd.model.token.ExpirableUserTokencreateAndStoreToken(String email, long directoryId, int tokenExpirySeconds) protected InstantOptional<com.atlassian.crowd.model.token.ExpirableUserToken>findByToken(String token) booleanremoveToken(String token)
-
Constructor Details
-
DefaultInviteUserTokenService
public DefaultInviteUserTokenService(com.atlassian.crowd.dao.token.ExpirableUserTokenDao expirableUserTokenDao, com.atlassian.security.random.SecureTokenGenerator tokenGenerator)
-
-
Method Details
-
createAndStoreToken
public com.atlassian.crowd.model.token.ExpirableUserToken createAndStoreToken(String email, long directoryId, int tokenExpirySeconds) throws com.atlassian.crowd.exception.ObjectAlreadyExistsException - Specified by:
createAndStoreTokenin interfaceInviteUserTokenService- Throws:
com.atlassian.crowd.exception.ObjectAlreadyExistsException
-
findByToken
- Specified by:
findByTokenin interfaceInviteUserTokenService
-
removeToken
- Specified by:
removeTokenin interfaceInviteUserTokenService
-
currentTime
-