public class CrowdClientControl extends Object
A class that holds an instance of RestCrowdClient
and of UserGroupCache
, initialised through
system properties or a properties file from the classpath.
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_MINUTES_PROPERTY |
static long |
DEFAULT_CACHE_MINUTES |
Modifier and Type | Method and Description |
---|---|
void |
flush()
Clear the underlying cache of users and groups.
|
com.atlassian.crowd.integration.atlassianuser.UserGroupCache |
getCache() |
com.atlassian.crowd.service.client.CrowdClient |
getClient() |
com.atlassian.crowd.service.client.ClientProperties |
getClientProperties() |
CrowdSynchronisationResult |
getSynchronisationResult()
Get details of the last attempted snapshot retrieval.
|
SnapshotFetchingInfo |
refreshCache()
Unconditionally attempt to refresh the cache and propagate any exceptions.
|
void |
refreshCacheIfNecessary()
Trigger a refresh of the cache unless there is a current valid snapshot.
|
public static final String CACHE_MINUTES_PROPERTY
public static final long DEFAULT_CACHE_MINUTES
public com.atlassian.crowd.service.client.CrowdClient getClient()
public com.atlassian.crowd.integration.atlassianuser.UserGroupCache getCache()
public com.atlassian.crowd.service.client.ClientProperties getClientProperties()
ClientProperties
that were used to construct this clientpublic void flush()
public void refreshCacheIfNecessary()
public SnapshotFetchingInfo refreshCache() throws com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.user.EntityException, com.atlassian.crowd.exception.CrowdException
com.atlassian.crowd.exception.CrowdException
com.atlassian.user.EntityException
com.atlassian.crowd.exception.ApplicationPermissionException
public CrowdSynchronisationResult getSynchronisationResult()
null
.Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.