Package org.exoplatform.addons.ixbus
Class IxbusUserIdentifierCache
java.lang.Object
org.exoplatform.addons.ixbus.IxbusUserIdentifierCache
Remembers the ixbus identifier of each user, and for a limited time that a
user has no ixbus account, so that ixbus is not asked again on every page
a user without an account displays, while an account created later is
still found once the duration has passed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIdentifier(String username) booleanvoidmarkUnknown(String username) Marks the user as having no ixbus account.voidputIdentifier(String username, String identifier)
-
Constructor Details
-
IxbusUserIdentifierCache
-
-
Method Details
-
getIdentifier
- Returns:
- the cached identifier, or null when it is not known
-
putIdentifier
-
isUnknown
- Returns:
- true while the user is known to have no ixbus account
-
markUnknown
Marks the user as having no ixbus account. With a duration of 0 the mark expires at once, so the user is looked up again on the next call.
-