@Service public class PersistentTokenCleanupService extends Object
PersistentToken
objects for users for each device, browser, etc.
Also, tokens can be refreshed, resulting in a new row in the database.
To avoid the PersistentToken
table to become too big, this service
comes along ones in a while (configurable) to clean up old tokes (ie its data > max age date).Modifier and Type | Field and Description |
---|---|
protected org.springframework.core.env.Environment |
environment |
Constructor and Description |
---|
PersistentTokenCleanupService() |
Modifier and Type | Method and Description |
---|---|
void |
deleteObsoletePersistentTokens() |
protected long |
getTokenMaxAge() |
Copyright © 2014–2015 Alfresco. All rights reserved.