public class UserPrefetcher extends Object implements ResourcePrefetcher<UserResourceIdentifier>
ResourcePrefetcher
for UserResourceIdentifier
s. This will attempt to pre-fetch
any ConfluenceUser
objects by their UserKey
.
Note that any UserResourceIdentifier
s with a null UserKey
will not be pre-fetched. Such a condition
is possible (e.g. with unmigrated, pre-userkey data), but not expected to happen in normal usage.
Constructor and Description |
---|
UserPrefetcher(PersonalInformationBulkDao personalInformationBulkDao,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.crowd.embedded.api.ApplicationFactory crowdApplicationFactory,
InternalUserDao crowdUserDao) |
Modifier and Type | Method and Description |
---|---|
Class<UserResourceIdentifier> |
getResourceItentifierType() |
void |
prefetch(Set<UserResourceIdentifier> resourceIdentifiers,
ConversionContext conversionContext)
Attempts to pre-fetch and pre-cache the given resource identifiers.
|
public UserPrefetcher(PersonalInformationBulkDao personalInformationBulkDao, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.crowd.embedded.api.ApplicationFactory crowdApplicationFactory, InternalUserDao crowdUserDao)
public Class<UserResourceIdentifier> getResourceItentifierType()
getResourceItentifierType
in interface ResourcePrefetcher<UserResourceIdentifier>
public void prefetch(Set<UserResourceIdentifier> resourceIdentifiers, ConversionContext conversionContext)
ResourcePrefetcher
prefetch
in interface ResourcePrefetcher<UserResourceIdentifier>
Copyright © 2003–2018 Atlassian. All rights reserved.